# International Address Formats – Postal Code Examples by Country

> International Address Formats – Postal Code Examples by Country is a paid API for AI agents from address-formats.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Returns sample postal codes for a given country, each validated against that country's regex pattern, with pattern details and match results.

## Facts

- Endpoint: GET https://address-formats.x402tookit.com/postal-code-examples?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/international-address-formats-postal-code-examples-by-country-2de89803
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WvYxmNPj-hs8uXitacAXv

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability international-address-formats-postal-code-examples-by-country-2de89803
```

Example prompt: Can you give me 5 example postal codes for the Netherlands and tell me whether each one matches the official Dutch postal code pattern?

## When to prefer this

Use this endpoint when you need concrete, real-world postal code examples for a specific country along with pattern validation — ideal for populating UI hints, generating test data, or verifying that a country's postal code format is what you expect. Prefer this over a raw pattern-check endpoint when you want both the pattern and example codes in a single call.

## Known failure modes

- Missing or invalid 'country' query parameter returns an error
- Unsupported or unrecognized country code returns no results or an error
- Country has no postal code system — returns empty examples or a relevant message
- Limit parameter out of range (< 1 or > 50) may be clamped or return an error
- Service degraded flag set to true when data freshness or completeness is reduced

## How this service works

Sample postal codes for a country from the dataset's examples, each checked against the country's own pattern.

## Output

Returns a JSON object containing the country code, the country's postal code pattern (regex), a label for the postal code type, an array of example postal codes each annotated with whether it matches the country pattern, summary text, data source attribution, snapshot date, and optionally a list of codes that could not be checked and a degraded-mode flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "description": "Maximum examples to return (1-50, default 10)"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 code, e.g. NL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "total": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "country": {
       "type": [
        "null",
        "string"
       ]
      },
      "pattern": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "examples": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "code": {
          "type": [
           "null",
           "string"
          ]
         },
         "matchesCountryPattern": {
          "type": [
           "boolean",
           "null"
          ]
         }
        }
       }
      },
      "dataSource": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/international-address-formats-postal-code-examples-by-country-2de89803/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from address-formats.x402tookit.com](https://www.zero.xyz/host/address-formats.x402tookit.com/llms.txt)
