Skip to main content
POST
/
api
/
wikidata
/
items
/
statements
/wikidata/items/statements
curl --request POST \
  --url https://api.anysite.io/api/wikidata/items/statements \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "item": "<string>",
  "timeout": 300,
  "property": "P69"
}
'
[
  {
    "property_id": "<string>",
    "@type": "@wikidata_statement",
    "id": "<string>",
    "data_type": "<string>",
    "rank": "<string>",
    "value": {
      "@type": "@wikidata_statement_value",
      "type": "<string>",
      "content": "<unknown>"
    },
    "qualifiers": [],
    "references": []
  }
]

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
property
string | null

Restrict the result to statements of a single property (P-id)

Example:

"P69"

Response

Successful Response

property_id
string
required
@type
string
default:@wikidata_statement
id
string | null
data_type
string | null
rank
string | null
value
WikidataStatementValue · object
qualifiers
WikidataQualifier · object[]
references
WikidataReference · object[]