Paper 2 theory question with practice or full rubric view.
const url = 'https://api.utmelab.com/api/v1/theory/example/example/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/theory/example/example/example \ --header 'X-API-Key: <X-API-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Exam code, e.g. WAEC.
Subject slug, e.g. physics.
Theory question identifier.
Query Parameters
Section titled “Query Parameters”Whether to include full marking rubric (defaults to false).
Responses
Section titled “Responses”Served representation of a theory question.
object
object
object
object
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.
object
Example
{ "stem": { "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"}Question not found
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"}