# Wikidata Entity (`wikidata.entity`)

Structured facts of a Wikidata entity: label, description, aliases, claims by property id and the linked Wikipedia article.

- **Route:** `POST /v1/run/wikidata.entity`
- **Price:** $0.0005 per request ($0.50 per 1,000) · `cost_usd` on every response
- **Source:** Wikidata (`wikidata`) · failover: no
- **Measured latency:** not enough calls measured yet
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `id` | string | yes |  | Wikidata id, e.g. Q42 |
| `language` | string | no | "en" | Language edition, e.g. en, de, fr |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `label` | Name in the requested language. |
| `description` | Short description. |
| `claims` | Values per property id (up to 80 properties, 10 values each). |
| `wikipedia_url` | Wikipedia article in that language. |
| `sitelink_count` | Number of wiki pages about the entity. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/wikidata.entity \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"Q42"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('wikidata.entity', {'id': 'Q42'})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run wikidata.entity '{"id":"Q42"}'
```

Quote first (free, validates input): `POST /v1/quote/wikidata.entity` with the same body.
