List a chapter's pages from a source
GET
/api/v1/me/extensions/{extensionId}/pages
const url = 'http://localhost:8080/api/v1/me/extensions/example/pages?chapterId=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8080/api/v1/me/extensions/example/pages?chapterId=example' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”extensionId
required
string
The extension’s reverse-DNS id.
Query Parameters
Section titled “Query Parameters”chapterId
required
string
The source’s own chapter id.
Responses
Section titled “Responses”The pages in reading order.
Media typeapplication/json
object
items
required
Array<object>
object
index
required
integer
url
required
A path on this server, relative to its base URL, that serves the image.
string
Example
{ "items": [ { "url": "/api/v1/me/extensions/org.example.comics/image?ref=eyJ1cmwiOi" } ]}The request has no valid session token.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The signed-in user may not do this. demo_account when the user is a
shared demo account, named in CHEK_DEMO_USERS, which can’t change
its password, sessions, sign-in providers, extensions or annotations.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The resource does not exist.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The server failed; details are in its log.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The extension reported an error, went over a limit, or the image couldn’t be fetched.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}