{"uid":"cap_x-QSRNXfn4zEKhRUHYhws","slug":"format-address-api-subdivisions-lookup-cac71fd7","name":"Format Address API – Subdivisions Lookup","description":"Verified postal address formatting for 252 countries based on Google's libaddressinput metadata: per-country format rules, address-block composition, verification of your own output, and subdivision lists. Address formatting per Google's libaddressinput metadata — informational, not legal or postal advice.","url":"https://formataddress.com/v1/subdivisions","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":{"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code, e.g. DE, US, JP, BR"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":47,"label":"prefecture","subdivisions":[{"key":"東京都","code":"JP-13","name":"東京都","latinName":"Tokyo","postalPattern":"1[0-9]|20"}]}},"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":"unknown","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_2CDjsRyBp3AlZrOfuwjlv","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":"Returns the list of administrative subdivisions (states, prefectures, provinces, etc.) for a given country, including their codes, names, Latin names, and postal code patterns.","exampleAgentPrompt":"Can you pull the full list of subdivisions for Japan — including their codes, local names, and postal code patterns — so I can populate an address form dropdown?","exampleUseCases":[{"title":"Address form state/province dropdown","prompt":"I'm building a checkout form and need a dropdown of all provinces for Canada with their official codes and names — can you fetch that list?"},{"title":"Postal validation by region","prompt":"For address validation in Brazil, can you get all the state subdivisions with their postal code patterns so I can check if a given postcode matches the right state?"},{"title":"Localized address UI for Japan","prompt":"I need the complete list of Japanese prefectures with both their local kanji names and Latin equivalents, plus postal patterns, to build a localized address entry screen."}],"resultDescription":"A JSON object containing the total count of subdivisions, the local label for that subdivision level (e.g. 'prefecture', 'state', 'province'), and an array of subdivision objects each with a key, ISO code (e.g. JP-13), local name, Latin name, and an optional postal code regex pattern.","failureModes":["Missing or invalid country code returns an error or empty result","Unsupported or non-existent ISO country codes may return 400 or empty subdivision list","Countries with no subdivision data may return an empty array","Network timeout or service unavailability returns a 5xx error","Malformed query parameter results in a 400 bad request"],"whenToPreferThis":"Use this endpoint when you need authoritative, per-country subdivision lists for populating address forms, validating postal codes against regions, or localizing address UI — especially when you need both local-script names and Latin transliterations, and postal code patterns, all derived from Google's libaddressinput metadata for 252 countries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:45:13.724Z","isFirstParty":false}