Batch retrieve reading passages by IDs.
const url = 'https://api.utmelab.com/api/v1/passages';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/passages \ --header 'X-API-Key: <X-API-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Comma-separated passage IDs to fetch in a single round-trip.
Responses
Section titled “Responses”A stimulus shared by many questions: one comprehension passage serving five questions, one cloze serving ten. Questions carry only the id; consumers resolve it here, never ignore it.
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.
Example
[ { "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"}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"}