# International Address Formatter

> International Address Formatter 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).

Renders address fields into a country's standard multi-line mailing format with correct ordering, casing, and missing-field reporting.

## Facts

- Endpoint: GET https://address-formats.x402tookit.com/format-address?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-formatter-4c2d7ad3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yPb1oUHxWmXMFgrb9eceH

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-formatter-4c2d7ad3
```

Example prompt: Can you format this address for a German mailing label? Recipient is Hans Müller, company is Bayerische GmbH, street is Hauptstraße 42, city is Munich, postal code 80331, country DE.

## When to prefer this

Choose this endpoint when you need to render address components into a country-specific postal format with correct line ordering, uppercase rules, and field validation — particularly for international shipping labels, CRM display, or checkout flows. Prefer it over generic address validators when you need the formatted output lines themselves, not just a pass/fail signal.

## Known failure modes

- Missing required 'country' or 'street' parameters returns an error
- Invalid or unrecognized ISO 3166-1 alpha-2 country code results in an error or degraded response
- Postal code pattern mismatch flagged in missingRequired or postalCodeFormatValid field
- Truncated or ambiguous street input may produce incomplete formatting
- Network timeout or service unavailability returns a non-200 response

## How this service works

Render address parts into a country's standard multi-line mailing format with its uppercase rules; reports missing fields.

## Output

Returns a structured object containing the formatted address as an array of lines and as a single multi-line string, a version appended with the country name, a flag indicating whether a Latin-script layout was used, a list of any missing required fields for that country, and whether the postal code format is valid.

## 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",
      "street"
     ],
     "properties": {
      "city": {
       "type": "string",
       "description": "City or locality"
      },
      "latin": {
       "type": "boolean",
       "description": "Use the Latin-script layout where the country has one"
      },
      "state": {
       "type": "string",
       "description": "State/province code or name"
      },
      "street": {
       "type": "string",
       "description": "Street line(s); separate several lines with |"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 code, e.g. GB"
      },
      "recipient": {
       "type": "string",
       "description": "Recipient name"
      },
      "postal_code": {
       "type": "string",
       "description": "Postal code"
      },
      "organization": {
       "type": "string",
       "description": "Company or organization"
      },
      "sorting_code": {
       "type": "string",
       "description": "CEDEX or similar sorting code"
      },
      "dependent_locality": {
       "type": "string",
       "description": "District/suburb where used"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "lines": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "country": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/international-address-formatter-4c2d7ad3/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)
