POST /v1/answer · 5 searches

Answer a question

Ask in plain words. Get the shortest right answer (like "Ada Lovelace"), plus 1 to 3 sentences written only from Wikipedia, with [1] style citations and the sources they point to.

Request

curl https://wikivectors.com/v1/answer \
  -H "Authorization: Bearer $WIKIVECTORS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "What causes the northern lights?"}'

Reply (shortened)

{
  "answer": "Charged particles from the Sun",
  "detail": "The northern lights are a natural light
    display in Earth's sky [1], caused by charged
    particles from the Sun colliding with atoms
    in the atmosphere [4].",
  "answered": true,
  "sources": [
    { "ref": 1, "title": "Northern Lights", "text": "…",
      "url": "https://en.wikipedia.org/wiki/Northern_Lights", … },
    { "ref": 4, "title": "Aurora", "text": "…",
      "url": "https://en.wikipedia.org/wiki/Aurora", … }
  ],
  "model": "deepseek/deepseek-v4.1-flash",
  "searches_charged": 5,
  "mode": "hybrid",
  "index_synced_at": "2026-11-26T00:19:12Z",
  "request_id": "req_7676252784414d1e"
}

What you send

FieldTypeWhat it is
querystringYour question, in plain words. Required.
optionslist of stringsOptional. 2 to 10 choices, each up to 200 characters, like ["over 30,000 ft", "under 30,000 ft"] or ["1905", "1912", "1920"]. The answer is then one of them, exactly as you wrote it, or "None of these". Good for checking a claim. Same cost.

What you get back

FieldWhat it is
answerThe shortest right answer: a name, number, date or a few words ("Ada Lovelace"). Just "Yes" or "No" for a yes/no question. No citations. null when not answered.
detail1 to 3 sentences with [n] citations that back the answer up, or null
answeredfalse when the paragraphs we found don't answer it. Better than a made-up answer.
choiceOnly when you sent options: the option it picked, exactly as you sent it. Left out when none fits (then answer is "None of these" and detail says why) or when it can't tell (answered is false).
sourcesThe cited paragraphs. Each is a search result plus ref, the number used in the text.
modelThe AI model that wrote it
searches_chargedSearches used: 5, answered or not

How it works

We run a search, give the top 5 paragraphs to an AI model, and ask it to answer only from them. So it can be wrong only where those paragraphs are.

Pick from options

Send options to make it choose. If the model names something that isn't one of your options, you get answered: false, never a guess.

curl https://wikivectors.com/v1/answer \
  -H "Authorization: Bearer $WIKIVECTORS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "Is Mount Everest over or under 30,000 ft?", "options": ["over 30,000 ft", "under 30,000 ft"]}'

Back: "answer": "under 30,000 ft", "choice": "under 30,000 ft", and a detail sentence with the height and its source.

If it fails

503 answer_unavailable: answers are paused or the AI failed. Nothing is charged, and search still works. All codes: Errors and limits.