Browse the documentation

Included

Search the catalogue

GET/api/v1/searchIncluded
Scope
curriculum:read
Price
Included once you've topped up

Type-ahead search across subjects, topics, subtopics, community lessons, quizzes, flashcard sets and mocks. Built for a search box, so it answers a partial word.

What to know

  • Results are deduplicated by name. The same subtopic exists across many board variants, and an undeduplicated list is forty identical rows.
  • `kind` is one of subject, subjectGroup, topic, subtopic, lesson, quiz, flashcards or mock.
  • There are no people and no personal content in these results. An API key is not a person, so there is no viewer whose notes or classes could be returned.
  • No links are returned. The hrefs the search engine builds point into our own app, so you get the ids and build your own routes.

Parameters

FieldTypeRequiredDescription
qstringYesThe search text. At least 2 characters.

Example request

curl
curl "https://www.revisiongenie.com/api/v1/search?q=photosynth" \
  -H "Authorization: Bearer rgk_live_YOUR_KEY_HERE"

Example response

json
{
  "query": "photosynth",
  "results": [
    {
      "kind": "subtopic",
      "title": "Photosynthesis",
      "context": "Bioenergetics",
      "subjectId": "6612f0a1c3b4d5e6f7a80912"
    },
    {
      "kind": "lesson",
      "title": "Limiting factors in photosynthesis",
      "context": "Biology"
    }
  ],
  "count": 2
}

Errors

Every error carries the same shape: a stable error code to branch on and a message for a human. Codes specific to this endpoint come first.

CodeStatusWhen
topup_required402This developer account has never topped up. The data endpoints are included from your first top-up onwards, whatever your balance does afterwards. The body carries a top-up link.
invalid_query400The "q" parameter is missing or shorter than 2 characters.
invalid_key401The key is missing, malformed, revoked, expired, or is not a developer key.
forbidden403The key is valid but does not hold the scope this endpoint requires.
suspended403The developer account is suspended. Data reads stop as well as billable calls.
rate_limited429The key went past its ceiling: 120 calls a minute overall, 30 a minute on the paid endpoints. Also returned after repeated failed authentication from one address.
server_error500Something failed on our side. Retry; a paid call is refunded.

Revision Genie is an independent product and is not affiliated with or endorsed by AQA, Pearson Edexcel, OCR, WJEC or Eduqas.

Use of this API is governed by the developer terms. Questions: support@revisiongenie.com.