/v1/entity
An entity with a statement summary
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/wikidata-api/v1/entity" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wikidata-api/v1/entity", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wikidata-api/v1/entity");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/wikidata-api/v1/entity",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"entity": {
"id": "Q42",
"type": "item",
"label": "Douglas Adams",
"aliases": [],
"wikipedia": "https://en.wikipedia.org/wiki/Douglas_Adams",
"statements": [
{
"count": 1,
"values": [
{
"type": "entity",
"value": "Q5"
}
],
"property": "P31"
},
{
"count": 1,
"values": [
{
"type": "entity",
"value": "Q6581097"
}
],
"property": "P21"
},
{
"count": 8,
"values": [
{
"type": "entity",
"value": "Q214917"
},
{
"type": "entity",
"value": "Q28389"
},
{
"type": "entity",
"value": "Q6625963"
},
{
"type": "entity",
"value": "Q4853732"
},
{
"type": "entity",
"value": "Q18844224"
}
],
"property": "P106"
},
{
"count": 3,
"values": [
{
"type": "entity",
"value": "Q25169"
},
{
"type": "entity",
"value": "Q20736364"
},
{
"type": "entity",
"value": "Q7758404"
}
],
"property": "P800"
},
{
"count": 1,
"values": [
{
"type": "time",
"value": "1952-03-11T00:00:00Z"
}
],
"property": "P569"
},
{
"count": 1,
"values": [
{
"type": "entity",
"value": "Q350"
}
],
"property": "P19"
},
…