Skip to content
Peachtree Data

← All API documentation

API Documentation

ZIP Code Information.

Basic facts about a ZIP Code: the preferred city and state, plus the latitude and longitude of its geographic center. The classic use is auto-filling city and state the moment someone types a ZIP into your form.

Endpoint
https://rapid.peachtreedata.com/api/v1/zipcodeinformation
Methods
GET — one ZIP Code per request
Formats
JSON by default; append .xml for XML

Authentication

Every request carries your API key in the query string. The API is HTTPS-only, so the key is encrypted in transit. Query parameters can appear in any order, and responses are JSON by default — append .xml to the endpoint for XML.

https://rapid.peachtreedata.com/api/v1/zipcodeinformation?apikey={apikey}&…

Don't have a key? Sign up under plans & pricing below — keys work immediately.

Request

ParameterRequiredDescription
apikeyYesYour unique API key.
zipcodeYesThe ZIP Code to look up. Example: 30097.

Examples

Lookup (GET)
curl "https://rapid.peachtreedata.com/api/v1/zipcodeinformation?apikey={apikey}&zipcode=30097"
Response
{
  "status": "Found",
  "zipCode": "30097",
  "city": "Duluth",
  "city13": "Duluth",
  "state": "GA",
  "latitude": "34.020208",
  "longitude": "-84.144343"
}

Response reference

FieldTypeDescription
statusString(8)Result of the lookup: Found or NotFound.
zipCodeString(5)The five-digit ZIP Code.
cityString(28)Preferred city for the ZIP Code.
city13String(13)Thirteen-character short name for the city.
stateString(2)Two-letter abbreviation for the state or US territory.
latitudeString(9)Latitude for the geographic center of the ZIP Code — 34.020208.
longitudeString(10)Longitude for the geographic center of the ZIP Code — -84.144343.

HTTP response codes

CodeDescription
200Processed successfully.
400Bad request — the API key format is invalid, the key is missing, or the input wasn't properly passed.
401Unauthorized — the API key is inactive or invalid.
403Forbidden — the request exceeds the max items allowed per call, or the account isn't set up for this service.
408Request timeout — processing exceeded the max processing time.
500Internal server error during processing.

Plans & pricing

ZIP Code Information is included in the Address Validation subscription — one plan covers this service, US Address Cleanse, and Canadian Address Cleanse, all sharing the same API key and monthly pool of lookups.

Free

250 lookups per month

Hard limit of 250 lookups per month — perfect for evaluating.

Sign up

$30/mo

1,000 lookups per month

$0.03 per lookup above 1,000 in a month.

Sign up

$100/mo

10,000 lookups per month

$0.01 per lookup above 10,000 in a month.

Sign up

$400/mo

50,000 lookups per month

$0.008 per lookup above 50,000 in a month.

Sign up

$600/mo

100,000 lookups per month

$0.006 per lookup above 100,000 in a month.

Sign up

$1,250/mo

250,000 lookups per month

$0.005 per lookup above 250,000 in a month.

Sign up

Above 250,000 lookups a month, or if you'd rather be invoiced, talk to us — we'll set up a plan that fits.

Auto-filling city and state from ZIP Codes?

Tell us what you're building and we'll get you moving — usually the same day.