{"uid":"cap_WvYxmNPj-hs8uXitacAXv","slug":"international-address-formats-postal-code-examples-by-country-2de89803","name":"International Address Formats – Postal Code Examples by Country","description":"Sample postal codes for a country from the dataset's examples, each checked against the country's own pattern.","url":"https://address-formats.x402tookit.com/postal-code-examples?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}},"attribution":{"type":["null","string"]},"snapshotDate":{"type":["null","string"]},"postalCodeLabel":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dbTNZTt7mYRWTvJm3ieSR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns sample postal codes for a given country, each validated against that country's regex pattern, with pattern details and match results.","exampleAgentPrompt":"Can you give me 5 example postal codes for the Netherlands and tell me whether each one matches the official Dutch postal code pattern?","exampleUseCases":[{"title":"Validate address form input examples","prompt":"I'm building an address form and need to show users what a valid postal code looks like for Germany — can you pull 10 example German postal codes and confirm they all match the official pattern?"},{"title":"Explore postal code format for new market","prompt":"We're expanding into Japan and I need to understand what postal codes look like there — can you fetch me some real examples for Japan and show me the pattern they follow?"},{"title":"QA test data for address pipeline","prompt":"I need a handful of example postal codes for Brazil to use as test data — grab me 15 examples and flag which ones actually match Brazil's official postal code pattern."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:30:54.906Z","isFirstParty":false,"canonicalSlug":"international-address-formats-postal-code-examples-by-country-2de89803"}