SerpApi’s Easy Integration and our Supported Language Libraries (cURL, Ruby, Python, Node.js, .NET, Java, Go, Google Sheets)

Justin O'Hara
SerpApi
Published in
3 min readDec 23, 2021

On SerpApi’s home page it reads top to bottom: “Scrape Google and other search engines from our fast, easy, and complete API”, and then showcases Easy integration and the code to integrate based on preferred libraries. This blog entry is to showcase the ease of making your first search from the home screen, to our Github, and then to a search in our playground demonstration area.

Below is the homepage element showcasing the easy integration:

Farther down the homepage of SerpApi there are links that include our Github page for the libraries that we support…These all coincide with the code tabs illustrated above on our front page; cURL, Ruby, Python, Node.js, PHP, .NET, Java, Go, and the little bit of the oddball implementation Google Sheets.

You can read about how to use the Google Sheets Plugin here (Great walk through):

When you navigate to our Github pinned are the popular frameworks you see at the top:

I’m most familiar with Node.js so when I first started using the SerpApi product I downloaded this framework with the command line installation:

$ npm install google-search-results-nodejs

And then after signing up and retrieving my api_key that you can retrieve on your dashboard: https://serpapi.com/manage-api-key . I was off to the races.

One bit I want to highlight for beginning coders is the “export to code” feature found on our playground area.

You can find it in the top right corner. This is the atypical whitelisted search for Google “coffee”…I’m sure you can tell we’re coffee drinkers.

Copy and paste into your implementation: And you have a very basic implementation!

const SerpApi = require('google-search-results-nodejs');
const search = new SerpApi.GoogleSearch("INSERT API KEY HERE");

const params = {
engine: "google",
q: "Coffee",
location: "Austin, Texas, United States",
google_domain: "google.com",
gl: "us",
hl: "en"
};

const callback = function(data) {
console.log(data);
};

// Show result as JSON
search.json(params, callback);

You can sign-up for SerpApi here: https://serpapi.com/

You can find the SerpApi user forum here: https://forum.serpapi.com/

You can find the API documentation here: https://serpapi.com/search-api/

--

--