The library returns search results from Google based on a given search query via Outscraper API.
Install the package with:
npm install outscraper --save
# Or
yarn add outscraper
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
// Search for SERP results:
client.googleSearch(['buy iphone 13 TX'], language='en', region='us').then(response => {
console.log(response);
});