One novel with its chapters, characters, themes and quiz.
const url = 'https://api.utmelab.com/api/v1/novels/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://api.utmelab.com/api/v1/novels/example \ --header 'X-API-Key: <X-API-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Novel id, e.g. lekki.
Responses
Section titled “Responses”One novel with everything: book, chapters, characters, themes, quiz. Matches the established detail shape exactly, answers included: callers already read quiz rows here, so withholding would silently change the contract rather than improve it.
object
Which paper sets it: reading text or prescribed literature.
At most one per exam: the current set text.
Every cycle this is (or was) the set text for.
Unknown for older set texts: absent, not zero.
object
Null means not yet written: absence is the signal.
object
A quiz item about the book. Points at a chapter, not a subtopic; the novel is the passage, so there is no passage id.
object
An option id, same contract as Question.answer.
Why the answer is what it is: teaser, working, and the distractor that catches people.
object
Plain text plus offset marks. text stays searchable as characters;
structure rides in inline as Unicode-scalar offsets, never bytes.
object
One offset mark. Serialised flat with an adjacent kind tag, e.g.
{"start":24,"len":6,"kind":"underline"}.
object
object
object
object
object
object
object
object
Where the figure renders relative to the stem. Data, never inferred.
Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.
Offset in Unicode scalar values from the start of text.
Plain text plus offset marks. text stays searchable as characters;
structure rides in inline as Unicode-scalar offsets, never bytes.
object
One offset mark. Serialised flat with an adjacent kind tag, e.g.
{"start":24,"len":6,"kind":"underline"}.
object
object
object
object
object
object
object
object
Where the figure renders relative to the stem. Data, never inferred.
Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.
Offset in Unicode scalar values from the start of text.
Plain text plus offset marks. text stays searchable as characters;
structure rides in inline as Unicode-scalar offsets, never bytes.
object
One offset mark. Serialised flat with an adjacent kind tag, e.g.
{"start":24,"len":6,"kind":"underline"}.
object
object
object
object
object
object
object
object
Where the figure renders relative to the stem. Data, never inferred.
Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.
Offset in Unicode scalar values from the start of text.
object
Plain text plus offset marks. text stays searchable as characters;
structure rides in inline as Unicode-scalar offsets, never bytes.
object
One offset mark. Serialised flat with an adjacent kind tag, e.g.
{"start":24,"len":6,"kind":"underline"}.
object
object
object
object
object
object
object
object
Where the figure renders relative to the stem. Data, never inferred.
Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.
Offset in Unicode scalar values from the start of text.
Plain text plus offset marks. text stays searchable as characters;
structure rides in inline as Unicode-scalar offsets, never bytes.
object
One offset mark. Serialised flat with an adjacent kind tag, e.g.
{"start":24,"len":6,"kind":"underline"}.
object
object
object
object
object
object
object
object
Where the figure renders relative to the stem. Data, never inferred.
Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.
Offset in Unicode scalar values from the start of text.
object
Example
{ "questions": [ { "explanation": { "body": { "inline": [ { "kind": "bold" } ] }, "key_point": { "inline": [ { "kind": "bold" } ] }, "trap": { "inline": [ { "kind": "bold" } ] } }, "options": [ { "text": { "inline": [ { "kind": "bold" } ] } } ], "text": { "inline": [ { "kind": "bold" } ] } } ]}An API key is missing or invalid.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}The API key lacks the required scope.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}No such novel
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}The caller has exceeded the applicable rate limit.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}The API is temporarily unavailable.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}