# Wikidata Entity Search

Search Wikidata entities by label or alias. Supply a search term and language to retrieve entity IDs, labels, descriptions and Wikidata links.

Documentation: https://openany.si/market/apis/wikipedia/wikidata-entity-search/
API ID: 15cdfd6c-dfb8-4a80-876a-9e38fb73d163
Provider: wikimedia
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/wikidata/entity-search
Page update time: 2026-12-03T02:36:39.425Z
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.425Z. 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 Search 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 wbsearchentities.",
          "enum": [
            "wbsearchentities"
          ]
        },
        "search": {
          "type": "string",
          "description": "Entity name or alias."
        },
        "language": {
          "type": "string",
          "description": "Search language code, such as en or zh."
        },
        "limit": {
          "type": "integer",
          "description": "Maximum number of search results.",
          "minimum": 1,
          "maximum": 20
        },
        "format": {
          "type": "string",
          "description": "Set this parameter to json.",
          "enum": [
            "json"
          ]
        }
      },
      "required": [
        "action",
        "search",
        "language",
        "limit",
        "format"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "search": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "concepturi": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "display": {
            "type": "object",
            "properties": {
              "description": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  }
                }
              },
              "label": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "match": {
            "type": "object",
            "properties": {
              "language": {
                "type": "string"
              },
              "text": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          },
          "pageid": {
            "type": "integer"
          },
          "repository": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "search-continue": {
      "type": "integer"
    },
    "searchinfo": {
      "type": "object",
      "properties": {
        "search": {
          "type": "string"
        }
      }
    },
    "success": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/wikidata/entity-search?action=wbsearchentities&format=json&language=en&limit=1&search=Earth' \
  -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
{
  "search": [
    {
      "concepturi": "http://www.wikidata.org/entity/Q2",
      "description": "third planet from the Sun in the Solar System",
      "display": {
        "description": {
          "language": "en",
          "value": "third planet from the Sun in the Solar System"
        },
        "label": {
          "language": "en",
          "value": "Earth"
        }
      },
      "id": "Q2",
      "label": "Earth",
      "match": {
        "language": "en",
        "text": "Earth",
        "type": "label"
      },
      "pageid": 130,
      "repository": "wikidata",
      "title": "Q2",
      "url": "//www.wikidata.org/wiki/Q2"
    }
  ],
  "search-continue": 1,
  "searchinfo": {
    "search": "Earth"
  },
  "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
