OpenAny
Get API keyAPI Key
APISearch & Research

Wikidata logo
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
USE THIS API

Wikidata Entity Search

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
Pricing
Connect your agent
On this page

Overview

Overview
Wikidata Entity Search

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Set this parameter to wbsearchentities.
Entity name or alias.
Search language code, such as en or zh.
Maximum number of search results.
Set this parameter to json.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
wikimediaCurrent
Wikidata Entity Search · GET · View API reference
$0 / call1
100.00%successP50390ms
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · wikimediaUSD / call
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.

calls

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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
actionURL query parametersquerystringYes

Set this parameter to wbsearchentities.

enum: "wbsearchentities"

searchURL query parametersquerystringYes

Entity name or alias.

languageURL query parametersquerystringYes

Search language code, such as en or zh.

limitURL query parametersqueryintegerYes

Maximum number of search results.

minimum: 1 · maximum: 20

formatURL query parametersquerystringYes

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

Inferred from examples
  • searchobject[]
    • concepturistring
    • descriptionstring
    • displayobject
      • descriptionobject
        • languagestring
        • valuestring
      • labelobject
        • languagestring
        • valuestring
    • idstring
    • labelstring
    • matchobject
      • languagestring
      • textstring
      • typestring
    • pageidinteger
    • repositorystring
    • titlestring
    • urlstring
  • search-continueinteger
  • searchinfoobject
    • searchstring
  • successinteger

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation example

Published documentation example. Verify the actual response after an approved call.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    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'
  3. 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
    }

Common questions

Is the result a Wikipedia article?

No. Results identify Wikidata entities. A Wikipedia article is a separate resource and may be linked through entity details.

How do I choose between entities with the same name?

Compare the returned label and description with your context before selecting the entity ID.

Does language translate all entity properties?

language controls the search context. It does not request a translation of an entity's entire property graph.

Can I get statements in the same search call?

Search returns candidate entity records. Use Wikidata Entity Details with an appropriate props selection for statements.

Can I send SPARQL in the search field?

No. search is text for entity search, not a SPARQL query interface.

Can I pass the returned continuation value to this endpoint?

The reference response can include search-continue, but this contract exposes no continuation input. Use only declared request parameters.

Use Wikidata Entity Search with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.