Get Wikidata Statements
wikidata_get_statementsFetch property claims for a Wikidata entity with qualifier and reference detail. Value QIDs are resolved to human-readable labels by default. Use the properties parameter to fetch only specific P-IDs — omitting it returns every statement, and a well-connected item (a country, a major city) carries hundreds of properties: more than fits inline. An oversized set comes back as kind: "outline" — every available P-ID with its byte size, largest first — instead of the statements; re-call with the same id plus properties:[...] naming the P-IDs you want. Designed for fact verification: "what does Wikidata say about this entity's {property}?". Preferred-rank statements are the most current values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Q-ID (e.g., "Q76") or P-ID of the entity to fetch statements for. | |
| language | No | Language code for label resolution of QID values (e.g., "en", "de"). | en |
| properties | No | P-IDs to fetch (e.g., ["P31", "P569", "P27"]). Omit to return all properties (may be large for major items). | |
| resolve_labels | No | Resolve wikibase-item value QIDs to human-readable labels via a batched label call. Set to false to skip label resolution and return raw QIDs only (faster, smaller payload). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The entity ID whose statements were fetched. | |
| kind | No | full — statements carries the claims. outline — the statement set overflowed the inline byte budget, so sections lists the P-IDs available instead; re-call with properties:[...] to retrieve specific ones. The counts below are reported either way. | |
| error | No | Present when the call failed. Absent on success. | |
| sections | No | Present when kind = outline: the P-IDs this entity carries statements for, largest first. Copy names into the properties input to retrieve them. | |
| statements | No | Map of property ID to array of normalized statements. Each statement has id, rank, property, value (with type-specific fields), and optional qualifiers and references arrays. Present in full mode; omitted in outline mode. | |
| propertyCount | No | Number of distinct properties — those returned in full mode, those offered as sections in outline mode. | |
| labelsResolved | No | True when QID values were resolved to labels. False when resolve_labels was set to false. | |
| statementCount | No | Total number of statement objects across all properties. Counted before any overflow, so it reports the entity's full statement volume in both modes. | |
| retrieval_notice | No | Present when kind = outline: how to re-call for specific properties. |