Skip to main content

fetchBookTocs

This action allows you to fetch the table of contents of a publication.

info

The API key must have access rights to commons.

Request​

NameTypeDefaultDescription
apikeyRequired
stringAPI public key
signatureRequired
stringSignature of the request. See how to sign your requests
expires
timestampUNIX timestamp for request expiration (GMT)
output
stringFormat of the response. Either XML (default), JSON or PHP
book_idRequired
stringID of the publication

Response​

This method returns an array of table of contents entries.

NameTypeDefaultDescription
LevelintegerHierarchy level of the item. From 1 to the highest
NamestringLabel of the item
PageNumberintegerPage number linked to the item

Example response​

JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "tARK2K",
"requests": 206,
"content": {
"total": 0,
"items": []
}
}
}