Skip to content
GET /v1/places

Postal codes for a place

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/postalcode-api

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

Get an API key

Code snippets

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_..."}
)

Example response

A real response from this endpoint, captured by the latest 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
}