The Zenserp is a SaaS platform that provides an easy to use API to extract Google search engine data in a JSON format. The Zenserp platform provides the developer an easy to use, fast and global Google search API.

The Zenserp provides the following features:

  • Easy to use API.
  • Lighting fast API response.
  • Multiple SERP types such as organic, paid, featured snippet, maps,etc.
  • Location-based search engine data.
  • Highly accurate search results data.
  • Free plan and affordable premiums plans.

How to use Zenserp API

To use Zenserp API, you need to create an account on Zenserp 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, Zenserp will send an email to your account to verify your address. Once your email address is verified, Zenserp 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 extract search results in the JSON format.

curl "https://app.zenserp.com/api/v2/search?q=Pied%20Piper" \
-H "apikey: YOUR_API_KEY"

Once you hit the request, Zenserp will extract the SERP records for the given query 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 axios node module.

npm install --save axios

Here is the code to perform forward geocoding. Replace the apikey variable with your own API key.

const axios = require('axios');
const params = {
  q: 'codeforgeek',
  apikey: 'YOUR_API_KEY'
}

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

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 Zenserp SERP API.

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