Geocode a US ZIP to Census ZCTA API
Resolve a US 5-digit ZIP to its Census ZIP Code Tabulation Area (ZCTA) internal point and land/water area from the vendored 2026 Gazetteer. Optional toZip returns great-circle distance. Not a street-address geocoder.
The Geocode a US ZIP to Census ZCTA operation is part of the Phone GTIN ISBN Validator API on BRAINIAC.software. Resolve a US 5-digit ZIP to its Census ZIP Code Tabulation Area (ZCTA) internal point and land/water area from the vendored 2026 Gazetteer. Optional toZip returns great-circle distance. Not a street-address geocoder. It is exposed as POST /api/v1/identifiers/us-zcta-geocode and priced at $0.02 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: libphonenumber-js bundled ITU/E.164 metadata GS1 check digit algorithm ISBN/ISSN check digit rules EU EORI structural rules UCUM common unit factors (subset) US Census 2026 Gazetteer ZCTA national file (vendored) Limitations: These endpoints validate format, checksums, heuristics, and published tables only. They do not prove a number, product code, or EORI is issued, assigned, or reachable. ZCTA points are Census interior points, not street addresses. ISO 3166 subdivisions, MIC, and ISO 20022 code sets from issue #81 are not in this slice. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Validate a phone number to E.164, Validate a GTIN check digit, Validate ISBN or ISSN check digits, Validate EORI number format. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/identifiers/us-zcta-geocodeExample request
curl -i -X POST "https://www.brainiac.software/api/v1/identifiers/us-zcta-geocode" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"zip": "10001-2062",
"toZip": "90210"
}
JSONAn unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Validate a phone number to E.164 — $0.02 USDC
- Validate a GTIN check digit — $0.01 USDC
- Validate ISBN or ISSN check digits — $0.01 USDC
- Validate EORI number format — $0.01 USDC