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​

NameTypeDescription
apikeyRequiredstringAPI public key
signatureRequiredstringSignature of the request.
expirestimestampUNIX timestamp for request expiration (GMT)
outputstringFormat of the response. Either XML (default), JSON or PHP
book_idRequiredstringID of the publication

Response​

This method returns an array of table of contents entries.

NameTypeDescription
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": []
}
}
}