Paged list of Paper 2 theory questions with filtering.
const url = 'https://api.utmelab.com/api/v1/theory/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 \ --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 or NECO.
Subject slug, e.g. general-mathematics or physics.
Query Parameters
Section titled “Query Parameters”Optional examination year filter, e.g. 2023.
Optional syllabus topic slug filter.
Optional paper section filter, e.g. Section A.
Page number (defaults to 1).
Items per page (1 to 200, defaults to 20).
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
Short summary of a Paper 2 theory question for paged discovery.
object
Example generated
{ "includes_explanation": true, "page": 1, "passages": "example", "per_page": 1, "questions": [ { "exam": "example", "has_diagram": true, "id": "example", "paper": 1, "preview": "example", "question_number": "example", "section": "example", "sub_parts_count": 1, "subject": "example", "subtopic_slug": "example", "topic_slug": "example", "total_marks": 1, "year": 1 } ], "total_pages": 1, "total_records": 1}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"}Exam or subject 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"}