Skip to content

Paged list of Paper 2 theory questions with filtering.

GET
/api/v1/theory/{exam}/{subject}
curl --request GET \
--url https://api.utmelab.com/api/v1/theory/example/example \
--header 'X-API-Key: <X-API-Key>'
exam
required
string

Exam code, e.g. WAEC or NECO.

subject
required
string

Subject slug, e.g. general-mathematics or physics.

year
integer format: int32

Optional examination year filter, e.g. 2023.

topic
string

Optional syllabus topic slug filter.

section
string

Optional paper section filter, e.g. Section A.

page
integer format: int32

Page number (defaults to 1).

per_page
integer format: int32

Items per page (1 to 200, defaults to 20).

Media typeapplication/json

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
includes_explanation
required
boolean
page
required
integer format: int32
passages
object | null
per_page
required
integer format: int32
questions
required
Array<object>

Short summary of a Paper 2 theory question for paged discovery.

object
exam
required
string
has_diagram
required
boolean
id
required
string
paper
required
integer format: int32
preview
required
string
question_number
required
string
section
required
string
sub_parts_count
required
integer format: int32
subject
required
string
subtopic_slug
string | null
topic_slug
required
string
total_marks
required
integer format: int32
year
required
integer format: int32
total_pages
required
integer format: int32
total_records
required
integer

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.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The API key lacks the required scope.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

Exam or subject not found

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The caller has exceeded the applicable rate limit.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The API is temporarily unavailable.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}