Questions, filtered and paged. The answer is withheld unless asked for.
const url = 'https://api.utmelab.com/api/v1/questions';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/questions \ --header 'X-API-Key: <X-API-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Drill by topic slug.
Drill one subtopic id.
Scope to an exam.
Scope to a subject within that exam.
Only human-checked questions. Default: no filter.
Scope to one cohort year.
Scope to a provenance, e.g. past_paper.
Substring search over the question text.
Scope to a country; a question with no stated scope survives any.
Include the answer and the working. Default: false.
Include companion passages for questions referencing them. Default: false.
1-based page. Default: 1.
Rows per page, clamped. Default: 50, cap: 200.
Responses
Section titled “Responses”One page of a collection in the shape every paged endpoint serves.
The envelope lives here, once, so a new paged endpoint cannot
re-derive the counts: total_pages comes from total_records and
per_page through [Page::new], never from the call site.
The collection field is questions because both surfaces that page
today page questions; a future non-question page renames it there.
object
One question as served. Identical to storage except the answer and
working, which are present only when explicitly requested. An answer
in a default payload gets rendered by somebody, eventually, by
accident. verified comes from the verification log, never a stored flag.
object
Present only when explanations were requested.
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.
Lessons that teach the idea assessed by this question.
object
Canonical position of this reference within its parent.
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.
The attached stimulus if requested.
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.
A stimulus this row belongs to. Fetch it, never ignore it: the stem may be unanswerable without it.
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.
The syllabus topic tag for this question when the catalogue provides one.
Example
{ "questions": [ { "explanation": { "body": { "inline": [ { "kind": "bold" } ] }, "key_point": { "inline": [ { "kind": "bold" } ] }, "trap": { "inline": [ { "kind": "bold" } ] } }, "options": [ { "text": { "inline": [ { "kind": "bold" } ] } } ], "passage": { "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"}A filter naming a subject the bank never had
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"}