Get a published book
GET
/api/v1/books/published/{slug}
const url = 'https://digize.com/api/v1/books/published/example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/books/published/example \ --header 'x-api-key: <x-api-key>'One published book by its slug, for its page on the workspace’s site, with everything books.published has. Null when no published book has that slug.
Needs the books:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
Any of:
object
id
required
string
slug
required
string
title
required
string
subtitle
required
string
language
required
string
author
required
object
name
required
string
bio
required
string
imageUrl
required
string | null
description
required
The blurb: the store description, or the brief’s promise.
string
keywords
required
Array<string>
bisac
required
Array<string>
series
required
isbn
required
string | null
ebookIsbn
required
string | null
cover
required
object
url
required
The front cover.
string | null
thumbnailUrl
required
string | null
trim
required
string
formats
required
buyLinks
required
publishedAt
required
string format: date-time
null
Example
{ "formats": [ { "kind": "print", "buy": [ { "store": "store" } ] } ], "buyLinks": [ { "store": "store", "kind": "print" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}