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.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 1Selected implementation · last 30 days
- Success rate · 30d
- 100.00%Selected implementation · last 30 days
Wikidata Entity Search
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Overview
Wikidata Entity Search API
Use the wbsearchentities action with search text, language, limit and JSON format in the query string. The search array contains entity identifiers and human-readable labels rather than a full property graph.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Query: action=wbsearchentities, search, language, limit and format=json; use the declared parameter options. |
| Selected implementation | wikimedia · Wikidata Entity Search |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Link names to entities: Offer a shortlist of Wikidata IDs for user or application selection.
- Disambiguate mentions: Compare labels and descriptions before attaching an entity to a document.
- Start a knowledge lookup: Send a selected ID to the Wikidata Entity Details API.
Returned Data
| Field | Meaning |
|---|---|
search[].id |
Wikidata entity identifier |
search[].label |
Entity label |
search[].description |
Short entity description |
search[].concepturi |
Canonical entity URI |
search[].url |
Entity page URL, which may be protocol-relative |
search[].match |
Matched label or alias information |
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-search \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode action=wbsearchentities \
--data-urlencode format=json \
--data-urlencode language=en \
--data-urlencode limit=1 \
--data-urlencode search=Earth
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 Search 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 Search · GET · View API reference | $0 / call | 1 | 100.00%successP50390ms |
- 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-search- 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 wbsearchentities. enum: "wbsearchentities" |
search | URL query parametersquery | string | Yes | Entity name or alias. |
language | URL query parametersquery | string | Yes | Search language code, such as en or zh. |
limit | URL query parametersquery | integer | Yes | Maximum number of search results. minimum: 1 · maximum: 20 |
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
searchobject[]concepturistringdescriptionstringdisplayobjectdescriptionobjectlanguagestringvaluestring
labelobjectlanguagestringvaluestring
idstringlabelstringmatchobjectlanguagestringtextstringtypestring
pageidintegerrepositorystringtitlestringurlstring
search-continueintegersearchinfoobjectsearchstring
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 wbsearchentities.
search- Entity name or alias.
language- Search language code, such as en or zh.
limit- Maximum number of search results.
format- Set this parameter to json.
Terminal · cURLcurl \ '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'Check the response
Sample response · Documented HTTP 200
Sample response{ "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 }