{"uid":"cap_3BHmQgnijkiyhoy4ycVA5","slug":"fastx402-postal-code-validator-971605d6","name":"FastX402 Postal Code Validator","description":"216 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/postal-code-validate?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","code"],"properties":{"code":{"type":"string","description":"Postal code to validate"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (e.g. US, GB, CA, DE)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"code":{"type":"string"},"valid":{"type":"boolean"},"format":{"type":"string"},"country":{"type":"string"},"normalized":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"code":"12345-6789","valid":true,"format":"##### or #####-####","country":"US","normalized":"12345-6789"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OMRsZ-voLuETGSEaHNlBj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a postal code for a given country and returns whether it is valid, its normalized form, and the expected format.","exampleAgentPrompt":"Can you check if '10001' is a valid postal code for the US and tell me its normalized format?","exampleUseCases":[{"title":"Validate customer shipping address zip code","prompt":"Before I process this order, can you check whether 'SW1A 1AA' is a valid postal code in the UK?"},{"title":"Form input validation for international checkout","prompt":"A user entered 'H3Z 2Y7' as their postal code with country CA — is that a valid Canadian postal code and what's the expected format?"},{"title":"Verify postal code before geocoding","prompt":"I need to geocode an address in Germany — first check if '10115' is a valid German postal code so I know the address is properly formed."}],"resultDescription":"Returns a JSON object with the submitted postal code, a boolean indicating whether it is valid, the normalized version of the postal code, the expected format pattern for that country, and the country code.","failureModes":["Invalid or unsupported country code returns a validation failure or error","Postal code with incorrect characters for the country returns valid:false","Missing required query parameters (code or country) result in a 400-level error","Payment failure via x402 protocol blocks the request before processing"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call postal code validation without setting up an account or API key. Ideal for agents that occasionally need to verify shipping addresses or user-entered postal codes across multiple countries at minimal cost ($0.001 per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T00:25:15.104Z","isFirstParty":false,"canonicalSlug":"fastx402-postal-code-validator-971605d6"}