Skip to main content
POST
/
api
/
wikidata
/
items
/
search
/wikidata/items/search
curl --request POST \
  --url https://api.anysite.io/api/wikidata/items/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "keyword": "<string>",
  "count": 2,
  "timeout": 300,
  "language": "en",
  "type": "item"
}
'
[
  {
    "id": "<string>",
    "@type": "@wikidata_search_result",
    "label": "<string>",
    "description": "<string>",
    "aliases": [],
    "concept_url": "<string>",
    "matched_text": "<string>",
    "matched_type": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
keyword
string
required

Text to search in entity labels and aliases

Minimum string length: 1
count
integer
required

Max number of results to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
language
string
default:en

Language to search in and to return labels/descriptions in

Examples:

"en"

"de"

"ru"

type
enum<string>
default:item

Which kind of entity to search for

Available options:
item,
property,
lexeme,
form,
sense

Response

Successful Response

id
string
required
@type
string
default:@wikidata_search_result
label
string | null
description
string | null
aliases
string[]
concept_url
string | null
matched_text
string | null
matched_type
string | null