Get Wikidata entity
Get a Wikidata item, property, lexeme or media entity, or resolve a wiki title to its entity.
Headers
Get your API keyAPI key (`sfk_...`)
Wikidata entity id (`Q937`, `P31`, `L1`, `M925243`), or a page title when `site` is given; `props` is then required.
min 1 chars · max 300 chars
Wikimedia site id (`enwiki`, `dewiki`, `commonswiki`). When set, `id` is a page title on that site and the entity it links to is returned; `props` is required.
pattern: ^[a-z0-9-]{2,32}$
Languages to return labels, descriptions and aliases in, comma-separated, e.g. `en,de`. Default: every language.
Entity parts to return, comma- or pipe-separated: `info`, `sitelinks`, `labels`, `descriptions`, `aliases`, `claims`. Required with `site`. Default: all six; without `site` or `languages`, the full entity.
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
Entity id asked for, or the id the title resolved to.
The entity when found; otherwise null.
Entity id, e.g. `Q937`, `P31`, `L1`.
`item`, `property`, `lexeme` or `mediainfo`.
Property datatype.
Wikidata page id.
Wikidata namespace id.
Latest revision id.
When it was last changed.
Labels in every language; null when not requested.
Descriptions in every language; null when not requested.
Aliases in every language; null when not requested.
Statements by property, with qualifiers, references and rank; null when not requested.
Sitelinks by site; null when not requested.
Lexeme lemmas; null when not requested.
Lexeme lexical category id.
Lexeme language id.
Lexeme forms; null when not requested.
Lexeme senses; null when not requested.
Site used for a title lookup.
Title used for a title lookup.
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/entities/Q937" \
-H "x-api-key: YOUR_API_KEY"Responses
Get Wikidata entity