Search Wikidata Entities
wikidata_search_entitiesSearch Wikidata for items or properties by text query. Returns QIDs or PIDs with labels, descriptions, and match metadata indicating whether the hit was on a label or alias. Use type="item" for real-world concepts (people, places, works) and type="property" to find predicate P-IDs. The endpoint returns no total count: page by sending each page's nextOffset as offset until a page returns no results or no nextOffset. Only the first 10,000 results are reachable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "wikidata_search_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Entity type to search. Use "item" for Q-IDs (people, places, concepts) or "property" for P-IDs (predicates). | item |
| limit | No | Results per page. Default 10; a value above 500, the search endpoint's page maximum, returns at most 500 and says so. | |
| query | Yes | Search terms to match against entity labels, aliases, and descriptions. | |
| offset | No | Pagination offset, 0–9,999: the endpoint serves only the first 10,000 results. Start at 0, then send each page's nextOffset. | |
| language | No | Wikidata language code for returned labels and descriptions (e.g., "en", "de", "zh-hant"). Case-insensitive; "_" is read as "-"; blank means "en". | en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The limit in effect for this page, at most 500. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of results returned on this page. | |
| notice | No | Guidance for this page, every case that applies in one notice: no matches at offset 0, results that ended before this offset, a full page and where to continue, the 10,000-result window, or a limit served at the page maximum. | |
| results | No | Ranked list of matching entities. Empty when no results found. | |
| language | No | The language used for label and description display. | |
| truncated | No | True when this page filled the limit. More results may follow at nextOffset. | |
| nextOffset | No | The offset to send for the next page: offset + limit. Present on every page that returned results while it stays below 10,000. It marks where to continue, not that more results exist — the endpoint returns no total, and a short page can still be followed by more. A walk ends at the first page with no results or no nextOffset. | |
| searchType | No | The entity type that was searched ("item" or "property"). | |
| effectiveQuery | No | The search query that was executed. |