STANDS4 Web Services:
ZIP Codes API
The ZIP Codes API from STANDS4 enables you to instantly get the US location behind the zip code.
Request URL:
https://www.stands4.com/services/v2/zip.php
Request parameters:
Parameter | Value | Required | Default | Description |
---|---|---|---|---|
uid | string | Y | Your API user id |
|
tokenid | string | Y | Your valid developer token id |
|
zip | string | Y | The zip code you would like to look for |
|
format | string | N | xml | The format in which you want the result returned (xml or json) |
Sample request URL:
https://www.stands4.com/services/v2/zip.php?uid=1001&tokenid=tk324324324&zip=90210&format=xml
Response elements:
Element | Description |
---|---|
results | Contains all of the query responses |
location | The US location behind the posted zip code |
Sample response:
<?xml version="1.0" encoding="UTF-8"?>
<results>
<location>Beverly Hills, California</location>
<longitude>-118.4061250000</longitude>
<latitude>34.0888080000</latitude>
</results>
{
"results": {
"location": "Beverly Hills, California",
"longitude": "-118.4061250000",
"latitude": "34.0888080000"
}
}
Want to use this service?
The ZIP Codes API service is free to use for up to 100 queries per day.
For a premium commercial license, please contact us.