---
title: "Wikidata API: Get a Wikidata item with its claims"
description: "One Wikidata item by Q id: label, description, aliases, claims flattened to property, value and labels, and Wikipedia sitelinks."
url: https://perceptlayer.com/apis/wikidata/entity
---

[APIs](https://perceptlayer.com/apis) / [Wikidata](https://perceptlayer.com/apis/wikidata) / Get a Wikidata item with its claims

# Wikidata: Get a Wikidata item with its claims

One Wikidata item by Q id: label, description, aliases, claims flattened to property, value and labels, and Wikipedia sitelinks.

GET `/v1/wikidata/entity`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `id` | string | Required | Up to 13 characters Wikidata id, such as Q42 (an item) or P31 (a property). |
| `language` | string | Optional | Up to 20 characters Language code for labels, descriptions and aliases, such as en or de. Default en. |
| `claims_limit` | integer | Optional | Any Claims to return, 1 to 500. Default 50. Labels are resolved for the first 50 ids. |

## Example request

Wikidata

GET /v1/wikidata/entity?id=Q42 

```
{
  "success": true,
  "data": {
    "id": "Q42",
    "type": "item",
    "language": "en",
    "label": "Douglas Adams",
    "description": "British science fiction writer and humorist (1952–2001)",
    "aliases": [
      "Douglas Noël Adams",
      "Douglas Noel Adams",
      "Douglas N. Adams"
    ],
    "claim_count": 355,
    "claims": [
      {
        "property": "P31",
        "property_label": "instance of",
        "datatype": "wikibase-item",
        "value": "Q5",
        "value_label": "human",
        "rank": "normal"
      },
      {
        "property": "P21",
        "property_label": "sex or gender",
        "datatype": "wikibase-item",
        "value": "Q6581097",
        "value_label": "male",
        "rank": "normal"
      },
      {
        "property": "P106",
        "property_label": "occupation",
        "datatype": "wikibase-item",
        "value": "Q214917",
        "value_label": "playwright",
        "rank": "normal"
      }
    ],
    "sitelinks": [
      {
        "site": "abstractwiki",
        "title": "Q42",
        "url": "https://abstract.wikipedia.org/wiki/Q42"
      },
      {
        "site": "afwiki",
        "title": "Douglas Adams",
        "url": "https://af.wikipedia.org/wiki/Douglas_Adams"
      },
      {
        "site": "arwiki",
        "title": "دوغلاس آدمز",
        "url": "https://ar.wikipedia.org/wiki/%D8%AF%D9%88%D8%BA%D9%84%D8%A7%D8%B3_%D8%A2%D8%AF%D9%85%D8%B2"
      }
    ],
    "url": "https://www.wikidata.org/wiki/Q42"
  },
  "meta": {
    "request_id": "req_d8c542b624184b2394ebee0425537770",
    "credits_charged": 1,
    "credits_remaining": 481
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/wikidata?try=entity#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 10 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `id` | string |
| `type` | string |
| `language` | string |
| `label` | string |
| `description` | string |
| `aliases` | string\[\] |
| `claim_count` | integer |
| `claims` | object\[\] |
| `sitelinks` | object\[\] |
| `url` | url |
