Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 834 Bytes

Google SERP.md

File metadata and controls

34 lines (25 loc) · 834 Bytes

Google Search Results Scraper With Server-side JavaScript

The library returns search results from Google based on a given search query via Outscraper API.

Installation

Install the package with:

npm install outscraper --save
# Or
yarn add outscraper

Link to the NPM package page

Initialization

const Outscraper = require('outscraper');
// Or using ES modules:
import Outscraper from 'outscraper';

let client = new Outscraper('SECRET_API_KEY');

Link to the profile page to create the API key

Usage

// Search for SERP results:
client.googleSearch(['buy iphone 13 TX'], language='en', region='us').then(response => {
   console.log(response);
});