# WikiVectors > Search API for current English Wikipedia. One call returns short, citable paragraphs (title, section, text, link, revision id, license), ranked by a mix of keyword and meaning search. `/v1/answer` turns them into the shortest right answer plus a few cited sentences. The index follows Wikipedia edits within the hour. ## Use it - REST: `POST https://wikivectors.com/v1/search` with header `Authorization: Bearer wv_live_…` and JSON body `{"query": "...", "limit": 5}` (limit 1–20). - Pages by title: `POST https://wikivectors.com/v1/pages` with `{"titles": ["Ada Lovelace", "JFK"]}` (1–20 titles, same key). Use it when you already know the names. Ignores case, treats `_` as a space and follows redirects ("JFK" gives "John F. Kennedy", with `redirected_from: "JFK"`). Answer: `{"pages": [...]}`, one per title in the same order, each with `query`, `found`, and when found `page_id`, `title`, `redirected_from` (if the title was a redirect), `description` and `wikidata_id` (left out if the page has none), `disambiguation` (true when the page is a list of namesakes, like "Brookfield" or "Mercury", not one topic: pick a more exact title or use search), `is_person` (true when the page is about one person; a person's name can redirect to an event page, e.g. "Erin Patterson" gives "Leongatha mushroom murders" with `is_person: false`, so check it), `text` (the opening paragraph), `url`, `permalink`, `revision_id`, `license`, `attribution`. A title with no page comes back `{"query": "...", "found": false}`. Each title counts as one search, found or not; if the key can't cover all of them, nothing is used and you get quota_exceeded. - Answers: `POST https://wikivectors.com/v1/answer` with `{"query": "What causes the northern lights?"}` (same key). Optional `options`: 2 to 10 choices (`{"query": "Is Everest over or under 30,000 ft?", "options": ["over 30,000 ft", "under 30,000 ft"]}`); the answer is then one of them exactly as sent (also in `choice`), or "None of these"; a pick that isn't one of them gives `answered: false`. It searches, gives the top 5 passages to an AI model, and answers only from them. Answer: `answer` (the shortest right answer, like "Ada Lovelace", or "Yes"/"No" for yes/no questions; no citations; null when not answered), `detail` (1 to 3 sentences with citation numbers like `[1]`, or null), `answered` (false when the passages don't answer it), `sources` (the cited passages, each a search result plus `ref`, the number used in the text), `model`, `searches_charged`, `mode`, `index_synced_at`, `request_id`. Each answer counts as 5 searches, answered or not. If the AI model fails, nothing is charged and you get `answer_unavailable` (503); answers can also be paused for a while, and `/v1/search` keeps working then. - MCP (Streamable HTTP): `https://wikivectors.com/mcp`, same Bearer key. Claude Code: `claude mcp add --transport http wikivectors https://wikivectors.com/mcp --header "Authorization: Bearer wv_live_…"`. Cursor (`~/.cursor/mcp.json`): `{"mcpServers": {"wikivectors": {"url": "https://wikivectors.com/mcp", "headers": {"Authorization": "Bearer wv_live_…"}}}}`. Tools: `search_wikipedia(query, limit)`, `get_pages(titles)`, `answer_question(question, options)`, `watch_page(page, callback_url)`, `changes_since(pages, since, limit)`. - Change feed: `GET https://wikivectors.com/v1/changes?pages=Ada_Lovelace|Telephone&since=2026-11-24T00:00:00Z` (same key; each call counts as one search). Lists pages that were created, edited, moved or removed on Wikipedia, as our index applied them, with a `diff_url` for each edit. Params: `pages` (up to 50 titles, `|`-separated; leave out for all pages), `since` (RFC 3339, default 24 hours ago, history kept 30 days), `after` (a `change_id`; pass back `next_after` to page on), `limit` (1–500, default 100). Poll it to watch pages. - Page watches (callbacks): `POST https://wikivectors.com/v1/watches` with `{"page": "Ada Lovelace", "callback_url": "https://example.com/hook"}` (title or en.wikipedia.org link; public https only). Answer has the watch `id` and a `secret` (shown once). `GET /v1/watches` lists yours, `DELETE /v1/watches/{id}` removes one. Up to 100 per key; costs no searches. When the page is edited, moved or removed we POST JSON `{"type": "page.changed", "watch_id", "page": {page_id, title, url}, "change": {change_id, kind, old_revision_id, new_revision_id, old_title, changed_at, recorded_at, diff_url}}`. Check header `X-WikiVectors-Signature: t=,v1=`: v1 is HMAC-SHA256 of `.` with the secret. Reply 2xx within 10 s; failures retry for 24 hours, then the watch shows `status: failing`. Error codes add: invalid_callback_url, page_not_found, watch_exists, too_many_watches, watch_not_found. - Docs for people, one page per call: https://wikivectors.com/docs - Guides (Wikipedia API limits, grounding, fact checks): https://wikivectors.com/guides - OpenAPI: https://wikivectors.com/openapi.json - Errors: `{"error": {"code", "message", "request_id"}}`. Codes: missing_api_key, invalid_api_key, invalid_request, rate_limited (10/s per key), quota_exceeded, search_unavailable, answer_unavailable (/v1/answer only: answers paused or the AI failed; nothing charged). - Quota headers: X-RateLimit-Limit (free searches a month), X-RateLimit-Remaining (free ones left), X-RateLimit-Reset (unix time the month resets), X-Credits-Remaining (prepaid searches left; they are used only after the free ones run out, so 0 is normal if you never bought any). - Each search result also has `exact_title_match` (true when the page title is the query, any case; easier to act on than `score`), `description` (the page's short description, e.g. "American financier", or null) and `wikidata_id` (e.g. "Q193156", or null). Use the last two to tell apart people who share a name. For names that are redirects, like "JFK", use `/v1/pages`. ## Keys and pricing - Get a key: https://wikivectors.com/account (email sign-in link, no password; shows usage and makes new keys) or https://wikivectors.com/#get-key (key by email). - Try without a key: the box at https://wikivectors.com/#try. - Free: 1,000 searches a month. Then $2 per 1,000 (prepaid). Over 1M a month: $1 per 1,000. ## License Text is from Wikipedia under CC BY-SA 4.0. Show the `attribution` line (or title + url) with any text you display.