Auto-updated JSON mirror of the USPS PostalPro ZIP Locale Detail dataset. Fetch state-level or full data directly from static endpoints — no API key, no rate limits, no server.
https://madhatter349.github.io/postalpro-zip-locale
Returns every ZIP locale record in a single JSON array. Large file — consider using a state-specific endpoint when possible.
fetch('https://madhatter349.github.io/postalpro-zip-locale/data/zip_locale_detail.json') .then(r => r.json()) .then(data => console.log(data.length, 'records'))
Returns all records for a given state. Use the 2-letter state abbreviation in uppercase (e.g. CA, NY, TX).
fetch('https://madhatter349.github.io/postalpro-zip-locale/data/states/CA.json') .then(r => r.json()) .then(data => console.log(data))
Returns the date USPS last published a new version of the dataset. Plain text response.
fetch('https://madhatter349.github.io/postalpro-zip-locale/data/last_updated.txt') .then(r => r.text()) .then(date => console.log('Last updated:', date))
Enter a 2-letter state code to fetch its data live.
| Field | Type | Description |
|---|---|---|
| area_name | string | USPS area name |
| area_code | string | USPS area code |
| district_name | string | USPS district name |
| district_no | string | USPS district number |
| delivery_zipcode | string | 5-digit ZIP code |
| locale_name | string | Post office / locale name |
| physical_delivery_address | string | Street address of the post office |
| physical_city | string | City |
| physical_state | string | 2-letter state code |
| physical_zip | string | Physical location ZIP |
| physical_zip4 | string|null | ZIP+4 extension |
Click any state to view its JSON.