# Wikidata Entity Search

> Wikidata Entity Search is a paid API for AI agents from wikidata-facts.x402tookit.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-21).

Search Wikidata by name and return candidate Q-ids with labels, descriptions, and instance-of hints for disambiguation.

## Facts

- Endpoint: GET https://wikidata-facts.x402tookit.com/entity-search?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wikidata-entity-search-d02583b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YxkQPnpMcS0P9nPDB7q2f

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability wikidata-entity-search-d02583b3
```

Example prompt: Search Wikidata for 'Mercury' and give me up to 5 candidate entities with their Q-ids and descriptions — use 'planet' as a hint to prioritize the astronomical body.

## When to prefer this

Use this endpoint as the first step when you have an entity name and need its Wikidata Q-id before fetching detailed facts, properties, or linked identifiers. It is ideal when the name is ambiguous (e.g. 'Paris', 'Mercury', 'Victoria') and you need instance-of and description hints to pick the right entity. Prefer this over direct property lookups when you don't already know the Q-id.

## Known failure modes

- No candidates found for very obscure or misspelled names — returns empty results array
- Rate limiting or payment failure (x402) if USDC payment is not completed
- Ambiguity not resolved if hint is too vague — multiple high-scoring candidates returned
- Language code not supported — falls back to English or returns error
- Limit parameter outside 1–10 range may be rejected or clamped

## How this service works

Search Wikidata by name; returns candidate Q-ids with descriptions and instance-of hints to disambiguate.

## Output

Returns a ranked list of up to 10 candidate Wikidata entities matching the search query, each with a Q-id, Wikidata URL, display label, short description, the text and type that triggered the match, and a list of instance-of type labels. Also includes query metadata, source attribution, a summary, an ambiguity flag, and the language used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Name to search, e.g. Mercury or Paris"
      },
      "hint": {
       "type": "string",
       "description": "Optional words; candidates whose text contains them are listed first"
      },
      "limit": {
       "type": "integer",
       "description": "Candidates 1 to 10 (default 5)"
      },
      "language": {
       "type": "string",
       "description": "Language code for labels (default en), e.g. fr"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "query": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "results": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": [
           "null",
           "string"
          ]
         },
         "url": {
          "type": [
           "null",
           "string"
          ]
         },
         "label": {
          "type": [
           "null",
           "string"
          ]
         },
         "matchedOn": {
          "type": [
           "null",
           "object"
          ],
          "properties": {
           "text": {
            "type": [
             "null",
             "string"
            ]
           },
           "type": {
            "type": [
             "null",
             "string"
            ]
           }
          }
         },
         "instanceOf": {
          "type": [
           "array",
           
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikidata-entity-search-d02583b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wikidata-facts.x402tookit.com](https://www.zero.xyz/host/wikidata-facts.x402tookit.com/llms.txt)
