Naar de inhoud
GET /v1/lookup

Full details for a postcode

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/postcode-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/postcode-api/v1/lookup" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/postcode-api/v1/lookup", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/postcode-api/v1/lookup");
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/postcode-api/v1/lookup",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "postcode": {
            "ccg": "NHS North West London",
            "lsoa": "Westminster 018C",
            "msoa": "Westminster 018",
            "nuts": "Westminster",
            "incode": "1AA",
            "parish": "Westminster, unparished area",
            "region": "London",
            "country": "England",
            "outcode": "SW1A",
            "quality": 1,
            "eastings": 529090,
            "latitude": 51.50101,
            "postcode": "SW1A 1AA",
            "longitude": -0.141563,
            "northings": 179645,
            "admin_ward": "St James's",
            "admin_county": null,
            "admin_district": "Westminster",
            "primary_care_trust": "Westminster",
            "nhs_health_authority": "London",
            "european_electoral_region": "London",
            "parliamentary_constituency": "Cities of London and Westminster"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:19:43.312Z",
        "request_id": "f1a99214-d985-43f0-afe5-69128e33ab32"
    },
    "status": "ok",
    "message": "Postcode retrieved successfully",
    "success": true
}