# International Address Formats – Country Postal Layout

> International Address Formats – Country Postal Layout 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 a country's postal address layout including line order template, required fields, uppercase rules, and localized field labels for a given ISO 3166-1 alpha-2 country code.

## Facts

- Endpoint: GET https://address-formats.x402tookit.com/address-format?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-country-postal-layout-e88f5da4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jsR-XKP521bJwrsNy--3h

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-country-postal-layout-e88f5da4
```

Example prompt: What's the correct postal address layout for Japan — the line order, which fields are required, and which should be uppercase?

## When to prefer this

Use this endpoint when you need the authoritative postal layout for a specific country — especially when building address forms, formatting mailing labels, or validating address field order. Prefer this over generic address libraries when you need localized field labels, uppercase rules, and line-order templates per country standard.

## Known failure modes

- Missing or invalid country code returns an error or empty result
- Unsupported or unrecognized ISO alpha-2 code may yield no data
- Data may be marked as degraded if the source is stale or incomplete
- Some countries may have null values for optional fields like postalCodeExample or postalAuthorityUrl

## How this service works

A country's postal address layout: line order template, required fields, uppercase rules and field labels.

## Output

Returns a structured object for the requested country including: a multi-line address template string, an array of address fields with their names, local labels, tokens, required flags, and uppercase flags, the country name, supported languages, postal code label and example, a link to the postal authority, data source attribution, snapshot date, and a summary of the format.

## 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": {
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 code, e.g. US, GB, JP"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "fields": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "field": {
          "type": [
           "null",
           "string"
          ]
         },
         "label": {
          "type": [
           "null",
           "string"
          ]
         },
         "token": {
          "type": [
           "null",
           "string"
          ]
         },
         "required": {
          "type": [
           "boolean",
           "null"
          ]
         },
         "uppercase": {
          "type": [
           "boolean",
           "null"
          ]
         }
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "country": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "template": {
       "type": [
        "null",
        "string"
       ]
      },
      "languages": {
       "type": [
        "null",
        "string"
       ]
      },
      "dataSource": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "t
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/international-address-formats-country-postal-layout-e88f5da4/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)
