{"uid":"cap_b-giTj_vE8Msya2v_Vj6F","slug":"postal-code-format-3fb2d3ea","name":"postal-code-format","description":"Postal / ZIP code format check: the expected pattern and an example for 30 countries, and whether a given code matches it. Address validation without an address API. $0.01 per check.","url":"https://intel.rallylive.ca/data/postal-format","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j-N8dI4iGuKdzI3e2WLoe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether a postal/ZIP code matches the expected format for a given country, and returns the expected pattern and example for 30 countries.","exampleAgentPrompt":"Can you check whether 'SW1A 1AA' is a valid postal code format for the UK, and show me the expected pattern?","exampleUseCases":[{"title":"E-commerce checkout address validation","prompt":"Before we submit this order, can you verify that '10001' is a correctly formatted postal code for the United States?"},{"title":"International form input validation","prompt":"A user entered 'H0H 0H0' as their Canadian postal code — does that match the expected format for Canada, and what pattern should Canadian postal codes follow?"},{"title":"Data quality audit on address database","prompt":"I have a German postal code '1234' in my database — can you check if it matches the correct format for Germany and show me what the pattern should look like?"}],"resultDescription":"Returns the expected regex pattern and a format example for the specified country's postal codes, plus a boolean or match result indicating whether the provided code conforms to that pattern.","failureModes":["Country not in the supported 30-country list returns an error or empty result","Malformed query parameters result in a 400 error","Payment failure (x402) if USDC funds are insufficient","Edge cases with territories or overseas regions not matching base country patterns"],"whenToPreferThis":"Use this endpoint when you need lightweight postal code format validation without integrating a full address verification API — ideal for form validation, data quality checks, or pre-screening user input across 30 supported countries at $0.01 per check.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:12:43.369Z","isFirstParty":false}