PostalCodes.info · JSON Structure

Postalcodes Info Postal Record Structure

Tabular postal-code reference record describing the fields exported by PostalCodes.info country downloads (CSV, XLSX, JSON).

Type: Properties: 0
Postal CodesGeocodingOpen DataAddress ValidationLogistics

Postalcodes Info Postal Record Structure is a JSON Structure definition published by PostalCodes.info. It conforms to the https://json-structure.org/draft/2025-01/schema meta-schema.

Meta-schema: https://json-structure.org/draft/2025-01/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2025-01/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/postalcodes-info/main/json-structure/postalcodes-info-postal-record-structure.json",
  "title": "PostalRecord",
  "description": "Tabular postal-code reference record describing the fields exported by PostalCodes.info country downloads (CSV, XLSX, JSON).",
  "kind": "record",
  "primaryKey": ["country_code", "postal_code", "place_name"],
  "fields": [
    {
      "name": "country_code",
      "type": "string",
      "constraint": {"pattern": "^[A-Z]{2}$"},
      "description": "ISO 3166-1 alpha-2 country code. Always uppercase in exports."
    },
    {
      "name": "postal_code",
      "type": "string",
      "description": "Text postal identifier. Always treat as string; leading zeros and punctuation are meaningful."
    },
    {
      "name": "place_name",
      "type": "string",
      "description": "Locality / city / town associated with this code."
    },
    {
      "name": "admin_name1",
      "type": "string?",
      "description": "First-level admin area (state, region, autonomous community)."
    },
    {
      "name": "admin_name2",
      "type": "string?",
      "description": "Second-level admin area (province, county)."
    },
    {
      "name": "admin_name3",
      "type": "string?",
      "description": "Third-level admin area (district, municipality)."
    },
    {
      "name": "latitude",
      "type": "number?",
      "unit": "degrees",
      "datum": "WGS84",
      "description": "Locality centroid latitude. Not a delivery-point coordinate."
    },
    {
      "name": "longitude",
      "type": "number?",
      "unit": "degrees",
      "datum": "WGS84",
      "description": "Locality centroid longitude. Not a delivery-point coordinate."
    }
  ],
  "examples": [
    {
      "country_code": "ES",
      "postal_code": "28001",
      "place_name": "Madrid",
      "admin_name1": "Madrid",
      "admin_name2": "Madrid",
      "admin_name3": null,
      "latitude": 40.4189,
      "longitude": -3.6919
    }
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/postalcodes-info-postal-record-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.