The Zipcodebase is a SaaS platform that provides an easy to use API to lookup zip codes, extract address information, and much more. The Zipcodebase platform provides the developer an easy to use, fast, and global address data API.

Zipcodebase provides the following features:

  • Easy to use API.
  • Lighting fast API response.
  • Accurate data assurance.
  • Zip Code radius search and more.
  • Free plan and affordable premiums plans.

How to use Zipcodebase API

To use Zipcodebase crawling API, you need to create an account on Zipcodebase and obtain an api token key.

You can simply navigate to the sign up page and create a new free account.

Once you have created your account, Zipcodebase will send an email to your account to verify your address. Once your email address is verified, Zipcodebase will generate an API key for you. Make sure that you don’t share it with unauthorized users.

Let’s call a simple API to observe how it works. Here is a CURL command to lookup my zip code where I stay in Mumbai, India.

curl "https://app.zipcodebase.com/api/v1/search?codes=400008" \
    -H "apikey: YOUR_API_KEY"

Once you hit the request, Zipcodebase will lookup the zip code in the database and return you the data instantly. Simple as that.

Integrating with Node.js

Here is a sample code to Integrate Zipcodebase API with Node.js.

Create a new Node project.

npm init --y

Install the Axios node module.

npm install --save axios

Replace the apikey variable with your own API key.

const axios = require('axios');
const params = {
  codes: '400008,400003',
  apikey: 'YOUR_API_KEY'
}

axios.get('https://app.zipcodebase.com/api/v1/search', {params})
  .then(response => {
    const apiResponse = response.data;
    console.log(apiResponse);
  }).catch(error => {
    console.log(error);
  });

Save the file and name it app.js. Run the code using the following command.

node app.js

You should see the following output in the terminal.

Awesome. We made the integration in a minute. This is how easy it is to use Zipcodebase address lookup API.

This is just a tip of the iceberg, Zipcodebase provides lots of useful information related to their API’s in the documentation page.