/v1/location
A location by id or filtered search
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/rickandmorty-api/v1/location" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rickandmorty-api/v1/location", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rickandmorty-api/v1/location");
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/rickandmorty-api/v1/location",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"location": {
"id": 3,
"url": "https://rickandmortyapi.com/api/location/3",
"name": "Citadel of Ricks",
"type": "Space station",
"dimension": "unknown",
"resident_count": 101
}
},
"meta": {
"timestamp": "2026-06-01T00:04:35.307Z",
"request_id": "d94f2779-6009-4577-a93a-d9b9cc8ec2d6"
},
"status": "ok",
"message": "Location retrieved",
"success": true
}