List published books
GET
/api/v1/books/published
const url = 'https://digize.com/api/v1/books/published?offset=0&limit=20';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?offset=0&limit=20' \ --header 'x-api-key: <x-api-key>'The workspace’s published books, newest first, for its own site’s books page: title, subtitle, author and bio, the blurb, cover, page count, a sample chapter’s web HTML, formats and prices, and buy links (the store, Amazon, Lulu and others). Read it on the site’s server with a secret API key.
Needs the books:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”offset
integer
limit
integer
Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
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
total
required
number
Example
{ "data": [ { "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" }}