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

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
item
string
required

Item identifier — a Wikidata Q-id, an entity URL or a Wikidata article URL

Minimum string length: 1
Examples:

"Q42"

"https://www.wikidata.org/wiki/Q937"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
language
string | null

Restrict the result to a single language code

Example:

"en"

Response

Successful Response

language
string
required
@type
string
default:@wikidata_label
label
string | null
description
string | null
aliases
string[]