POST /v1/identify · 1 search

Find which page a name means

Many people and companies share a name. Send the name and a hint ("CEO, OpenAI") and get back the right Wikipedia page, a score for how sure we are, and why.

Request

curl https://wikivectors.com/v1/identify \
  -H "Authorization: Bearer $WIKIVECTORS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Michael Jordan", "hint": "professor, machine learning", "kind": "person"}'

Reply (shortened)

{
  "match": {
    "title": "Michael I. Jordan",
    "description": "American scientist (born 1956)",
    "is_person": true, "score": 0.86,
    "why": ["title holds every word of the name",
            "every hint word is on the page",
            "a page about one person"],
    "url": "https://en.wikipedia.org/wiki/Michael_I._Jordan", …
  },
  "sure": true,
  "candidates": [
    { "title": "Michael I. Jordan", "score": 0.86, … },
    { "title": "Michael Jordan", "score": 0.55,
      "description": "American basketball player and businessman (born 1963)", … },
    …
  ]
}

What you send

FieldTypeWhat it is
namestringThe name as written. Required.
hintstringWords that tell namesakes apart: a job, company, place or field. "CEO" and "chief executive" count as the same, and so do "founder" and "co-founded".
kindstringperson or organization, when you know. Pages of the wrong kind score much lower.

What you get back

match is the best page, or null if nothing came close. candidates lists up to 5 pages, best first. Each has score (0 to 1), why (the reasons, in plain words), the opening paragraph and the usual link, revision and license fields.

sure is true only when the match is a clear winner: score at least 0.6, at least 0.15 ahead of the next page, and its title really is the name. When it is false, read the candidates or send a better hint. A name that leads to an event page ("Erin Patterson" gives "Leongatha mushroom murders") is never sure for a person.

How it works

We look at the page with that exact title (or its redirect), namesakes like "John Smith (explorer)", longer titles like "Apple Inc.", and a search for the name plus the hint. Then we score each page on how well its title matches the name, and how many hint words are in its description, opening paragraph or fact box. Lists of namesakes are never returned. We only rank real Wikipedia pages. We never guess facts.

Cost

Each call counts as one search.