# GlobalRules Country Postal Format Lookup

> GlobalRules Country Postal Format Lookup is a paid API for AI agents from globalrules-api.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the postal/ZIP code format and structure rules for a specified country

## Facts

- Endpoint: GET https://globalrules-api.onrender.com/api/v1/country/DE/postal_format
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/globalrules-country-postal-format-lookup-0f344b75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CqyK2xgY4qO8CJBX6DXJl

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 globalrules-country-postal-format-lookup-0f344b75
```

Example prompt: What is the postal code format used in Germany? I need to know the correct structure so I can validate addresses before shipping.

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.01) single-fact lookup of postal/ZIP code formatting rules for a specific country. Ideal for address validation workflows, shipping integrations, or CRM configuration where you need to know the expected postal code pattern for a given country. Covers 106 countries with verified data. Best suited for one-country-at-a-time lookups rather than bulk data needs.

## Known failure modes

- Invalid or unsupported country code returns an error or empty response
- Country not among the 106 supported countries returns 404 or null
- Field identifier 'postal_format' may not be available for all countries if data is missing
- Network timeout from Render.com free-tier hosting causing slow cold starts
- Stale data if the verified sources have not been updated recently

## How this service works

One specific fact for one country: VAT/GST rate, public holidays by country, visa requirements for travelers, tipping customs, power plug type, minimum wage, corporate tax, digital nomad visa, customs duty-free allowance and more. 138 countries, 55 fields, verified sources. Example: /api/v1/country/JP/vat

## Output

Returns a JSON object containing the country code (e.g. 'DE'), the postal format pattern or structure description for that country, and a timestamp indicating when the data was last verified/updated.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "country": {
       "type": "string"
      },
      "updated": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/globalrules-country-postal-format-lookup-0f344b75/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from globalrules-api.onrender.com](https://www.zero.xyz/host/globalrules-api.onrender.com/llms.txt)
