# 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.

Documentation: https://openany.si/market/apis/wikipedia/wikidata-entity-details/
API ID: c46893d0-012e-41f7-ba95-ce9b6c97406d
Provider: wikimedia
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/wikidata/entity
Page update time: 2026-12-03T02:36:39.533Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:36:39.533Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wikidata Entity Details API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "description": "Set this parameter to wbgetentities.",
          "enum": [
            "wbgetentities"
          ]
        },
        "ids": {
          "type": "string",
          "description": "Wikidata entity ID, such as Q2."
        },
        "props": {
          "type": "string",
          "description": "Fields to retrieve.",
          "enum": [
            "labels",
            "descriptions",
            "aliases",
            "claims",
            "sitelinks",
            "labels|descriptions"
          ]
        },
        "languages": {
          "type": "string",
          "description": "Language code for localized fields, such as en or zh."
        },
        "format": {
          "type": "string",
          "description": "Set this parameter to json.",
          "enum": [
            "json"
          ]
        }
      },
      "required": [
        "action",
        "ids",
        "props",
        "languages",
        "format"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "entities": {
      "type": "object",
      "properties": {
        "Q2": {
          "type": "object",
          "properties": {
            "descriptions": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "id": {
              "type": "string"
            },
            "labels": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "type": {
              "type": "string"
            }
          }
        }
      }
    },
    "success": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  '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'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "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
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
