Naar de inhoud
GET /v1/places

Postal codes for a place

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "city": "Beverly Hills",
        "state": "California",
        "country": "United States",
        "post_codes": [
            {
                "latitude": 33.7866,
                "longitude": -118.2987,
                "post_code": "90209",
                "place_name": "Beverly Hills"
            },
            {
                "latitude": 34.0901,
                "longitude": -118.4065,
                "post_code": "90210",
                "place_name": "Beverly Hills"
            },
            {
                "latitude": 34.0652,
                "longitude": -118.383,
                "post_code": "90211",
                "place_name": "Beverly Hills"
            },
            {
                "latitude": 34.0619,
                "longitude": -118.3995,
                "post_code": "90212",
                "place_name": "Beverly Hills"
            },
            {
                "latitude": 33.7866,
                "longitude": -118.2987,
                "post_code": "90213",
                "place_name": "Beverly Hills"
            }
        ],
        "country_code": "US"
    },
    "meta": {
        "timestamp": "2026-05-30T04:15:37.320Z",
        "request_id": "d58f08f8-b20e-42c2-93f0-125c5ce42465"
    },
    "status": "ok",
    "message": "Places resolved",
    "success": true
}