Skip to content
GET /v1/outcode

Outcode (area) detail

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/postcode-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "outcode": {
            "parish": [
                "Wandsworth, unparished area",
                "Westminster, unparished area"
            ],
            "country": [
                "England"
            ],
            "outcode": "SW1A",
            "latitude": 51.50454046527776,
            "longitude": -0.13218813888888892,
            "admin_ward": [
                "Nine Elms",
                "St James's"
            ],
            "admin_county": [],
            "admin_district": [
                "Wandsworth",
                "Westminster"
            ]
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:19:43.511Z",
        "request_id": "926480c9-2861-4e22-805b-4813ddb88e41"
    },
    "status": "ok",
    "message": "Outcode retrieved successfully",
    "success": true
}