PostalCodes.info · Schema

PostalRecord

A single postal-code reference record as published by PostalCodes.info. Postal codes are always strings.

Postal CodesGeocodingOpen DataAddress ValidationLogistics

Properties

Name Type Description
country_code string ISO 3166-1 alpha-2 country code.
postal_code string Postal identifier as text. May contain leading zeroes, spaces, letters or punctuation.
place_name string Locality, town, or city name associated with the postal code.
admin_name1 stringnull First-level administrative subdivision (state, region, autonomous community).
admin_name2 stringnull Second-level administrative subdivision (province, county).
admin_name3 stringnull Third-level administrative subdivision (district, municipality).
latitude numbernull WGS84 locality or area centroid latitude. Not a delivery-point coordinate.
longitude numbernull WGS84 locality or area centroid longitude. Not a delivery-point coordinate.
View JSON Schema on GitHub

JSON Schema

postalcodes-info-postal-record-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/postalcodes-info/main/json-schema/postalcodes-info-postal-record-schema.json",
  "title": "PostalRecord",
  "description": "A single postal-code reference record as published by PostalCodes.info. Postal codes are always strings.",
  "type": "object",
  "properties": {
    "country_code": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code.",
      "pattern": "^[A-Z]{2}$",
      "examples": ["ES", "US", "IN", "JP"]
    },
    "postal_code": {
      "type": "string",
      "description": "Postal identifier as text. May contain leading zeroes, spaces, letters or punctuation.",
      "examples": ["28001", "08001", "100-0001", "AB1 0AA"]
    },
    "place_name": {
      "type": "string",
      "description": "Locality, town, or city name associated with the postal code."
    },
    "admin_name1": {
      "type": ["string", "null"],
      "description": "First-level administrative subdivision (state, region, autonomous community)."
    },
    "admin_name2": {
      "type": ["string", "null"],
      "description": "Second-level administrative subdivision (province, county)."
    },
    "admin_name3": {
      "type": ["string", "null"],
      "description": "Third-level administrative subdivision (district, municipality)."
    },
    "latitude": {
      "type": ["number", "null"],
      "description": "WGS84 locality or area centroid latitude. Not a delivery-point coordinate.",
      "minimum": -90,
      "maximum": 90
    },
    "longitude": {
      "type": ["number", "null"],
      "description": "WGS84 locality or area centroid longitude. Not a delivery-point coordinate.",
      "minimum": -180,
      "maximum": 180
    }
  },
  "required": ["country_code", "postal_code", "place_name"],
  "additionalProperties": false
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 Schema
curl "https://apis.io/api/v1/json-schemas/postalcodes-info-postal-record"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

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

Get an API key

Free tier, no email required.

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