Search Wikidata
Search Wikidata entities by label, alias or description.
Headers
Get your API keyAPI key (`sfk_...`)
Text to search for.
min 1 chars · max 300 chars
Edition code for labels, aliases and descriptions. Default: `en`.
Entity type to search: `item` (default), `property`, `lexeme`, `form` or `sense`.
pattern: ^[a-z]{2,20}$
Results per page, 1 to 50. Default: 50. The walk stops at 100 results in total.
≥ 1 · ≤ 50
Cursor from `page.nextCursor` of the previous response. It only works with the same filters.
min 1 chars · max 2048 chars
Endpoint-specific response payload.
Whether the entity, page or data set exists. A missing entity is `not_found`; an existing entity with no rows is `found` with `empty: true`.
one of: found, not_found
Edition code searched.
The search text.
Entity type searched.
Entity hits in this page.
Entity id.
Entity title, usually the id.
Wikidata page id.
Concept URI.
Repository, e.g. `wikidata`.
Absolute entity URL.
Label and description as displayed.
A label or description in one language.
Language code.
Text in that language.
A label or description in one language.
Language code.
Text in that language.
Matched label.
Matched description.
What the query matched.
What matched, e.g. `label`.
Language of the match.
Matched text.
Matched aliases.
Pagination state. `nextCursor` is null on the last page.
Whether another page is available.
Cursor to pass in the next request when more pages exist; null on the last page.
Whether the answer is a valid empty result rather than missing.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/wikipedia/wikidata/search?query=einstein" \
-H "x-api-key: YOUR_API_KEY"Responses
Search Wikidata