# AgentShield Postal Code Format Validator

> AgentShield Postal Code Format Validator is a paid API for AI agents from agentshield.live, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-21).

Validates whether a given postal code matches the expected format stored for a specific country.

## Facts

- Endpoint: GET https://agentshield.live/postcode?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshield-postal-code-format-validator-fe2aca13
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-eaU8rKrJGMfVhG6IMGgC

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 agentshield-postal-code-format-validator-fe2aca13
```

Example prompt: Can you check whether '10115' is the right format for a postal code in Germany?

## When to prefer this

Use this endpoint when you need to check only whether a postal code string matches the expected format for a country — not for full address validation, delivery feasibility, geocoding, or city lookups. Ideal for form validation pipelines, data quality checks, or pre-processing steps before submitting address data to a carrier or payment system.

## Known failure modes

- Unknown or unsupported country returns 404
- Postal code missing from request returns validation error
- Country code malformed or unrecognized returns 404
- Format mismatch returns a negative/false result rather than an error
- Network timeout or service unavailability

## How this service works

Call when an agent needs to know whether a postal code matches the stored format for a country. Not an address, a city, or a delivery check. Unknown countries return 404.

## Output

Returns whether the provided postal code matches the stored format for the given country. Returns a validation result (match or mismatch). Returns a 404 if the country is unknown or not supported.

## 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",
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "Postal code to check against the stored format."
      },
      "country": {
       "type": "string",
       "description": "ISO country code or English short name."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": "10115",
  "known": true,
  "valid": true,
  "country": "DE"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshield-postal-code-format-validator-fe2aca13/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshield.live](https://www.zero.xyz/host/agentshield.live/llms.txt)
