Wikidata Entity Details API
Get Wikidata Entity Details via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Wikimedia, pass parameters such as action, format, ids, and retrieve structured data including entity identifier, entity type, <language>, and action API success indicator to enrich a knowledge record, build multilingual labels, and connect wikimedia resources.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Wikidata Entity Details API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Overview
Wikidata Entity Details API
Call wbgetentities with ids, props, languages and format=json. The response places entity records in an entities object keyed by entity ID; the returned sections depend on the selected props value.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Query: action=wbgetentities, ids, props, languages and format=json. |
| Selected implementation | wikimedia · Wikidata Entity Details |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Enrich a knowledge record: Resolve a stable entity ID into selected descriptive or structured sections.
- Build multilingual labels: Request supported language options and retain the language keys in the response.
- Connect Wikimedia resources: Select sitelinks when links to related Wikimedia projects are needed.
Returned Data
| Field | Meaning |
|---|---|
entities.<id>.id |
Entity identifier |
entities.<id>.type |
Entity type |
entities.<id>.labels.<language> |
Localized label object when labels are selected |
entities.<id>.descriptions.<language> |
Localized description object when descriptions are selected |
success |
Action API success indicator |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/wikimedia/wikidata/entity \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode action=wbgetentities \
--data-urlencode format=json \
--data-urlencode ids=Q2 \
--data-urlencode languages=en \
--data-urlencode 'props=labels|descriptions'
Request and Response Examples
The response example is a documentation reference and may be abbreviated. The request below is a calling template; use the published contract and returned response for the selected implementation.
Published Wikidata Entity Details API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
wikimediaCurrent Wikidata Entity Details API · GET · View API reference | $0 / call | 0 | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/wikimedia/wikidata/entity- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
action | URL query parametersquery | string | Yes | Set this parameter to wbgetentities. enum: "wbgetentities" |
ids | URL query parametersquery | string | Yes | Wikidata entity ID, such as Q2. |
props | URL query parametersquery | string | Yes | Fields to retrieve. enum: "labels", "descriptions", "aliases", "claims", "sitelinks", "labels|descriptions" |
languages | URL query parametersquery | string | Yes | Language code for localized fields, such as en or zh. |
format | URL query parametersquery | string | Yes | Set this parameter to json. enum: "json" |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
entitiesobjectQ2objectdescriptionsobjectenobjectlanguagestringvaluestring
idstringlabelsobjectenobjectlanguagestringvaluestring
typestring
successinteger
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 5
Review these request fields before running. Keep the published provider and request method unchanged.
action- Set this parameter to wbgetentities.
ids- Wikidata entity ID, such as Q2.
props- Fields to retrieve.
languages- Language code for localized fields, such as en or zh.
format- Set this parameter to json.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/wikimedia/wikidata/entity?action=wbgetentities&format=json&ids=Q2&languages=en&props=labels%7Cdescriptions' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "entities": { "Q2": { "descriptions": { "en": { "language": "en", "value": "third planet from the Sun in the Solar System" } }, "id": "Q2", "labels": { "en": { "language": "en", "value": "Earth" } }, "type": "item" } }, "success": 1 }