US Zipcodes

FREEMIUM
By ayyildiz | Updated a month ago | Data
Popularity

7.8 / 10

Latency

352ms

Service Level

100%

Health Check

100%

README

Setup

  • Log into your rapidapi.com account
  • Check the details for subscription plans and click subscribe
  • Go to the endpoint page and click Test Endpoint
  • Click the panel on the left to change the request snippet to the technology you are familiar with.
  • Copy the example and run it in your favorite programming environment.

First API call

After completing the setup guide, you should verify that you are able to make a successful request.

curl --get --include 'https://us-zipcodes.p.rapidapi.com/codes/5033' \
       -H 'X-RapidAPI-Key: SIGN-UP-FOR-KEY' \
       -H 'X-RapidAPI-Host: us-zipcodes.p.rapidapi.com'

A success request would return a HTTP Status code of 200 and response looking similar to:

{
  "zip_code": "05033",
  "state": "Vermont",
  "state_code": "VT",
  "city": "Bradford",
  "population": 2572,
  "timezone": "America/New_York",
  "latitude": 44.00888,
  "longitude": -72.15799
}

Search City

Search using city name and return all macthed zip codes. It returns first 20 result.

curl --get --include 'https://us-zipcodes.p.rapidapi.com/codes?q=abc' \
       -H 'X-RapidAPI-Key: SIGN-UP-FOR-KEY' \
       -H 'X-RapidAPI-Host: us-zipcodes.p.rapidapi.com'

A success request would return a HTTP Status code of 200 and response looking similar to:

[
  {
    "zip_code": "54413",
    "state": "Wisconsin",
    "state_code": "WI",
    "city": "Babcock",
    "population": 149,
    "timezone": "America/Chicago",
    "latitude": 44.28432,
    "longitude": -90.13183
  }
]

A sample postman collection can be found here

Followers: 0
API Creator:
Rapid account: Ayyildiz
ayyildiz
ayyildiz
Log In to Rate API
Rating: 5 - Votes: 1