wikidata

Fetch a Wikidata entity (Q42, P31, etc.) - structured...

Fetch a Wikidata entity (Q42, P31, etc.) — structured knowledge-graph record with labels + descriptions + aliases in selectable languages, claims (property → value statements grouped by property ID), sitelinks (Wikipedia article title per language). 110M+ entities. CC0 public domain. Pass languages= as comma-separated codes (default "en") to control which language strings are included; pass maxClaimsPerProperty to cap how many statements come back per property (default 10).

get/api/wikidata/entity

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/wikidata/entity
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

idstring required

Unique identifier of the record to fetch.

languagesstring

Languages.

includeClaimsboolean

Include claims.

maxClaimsPerPropertyinteger

Max claims per property.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.