outscraper
Version:
The library provides convenient access to the Outscraper API. Allows using Outscraper's services from your code. See https://outscraper.com for details.
35 lines (25 loc) • 834 B
Markdown
The library returns search results from Google based on a given search query via [Outscraper API](https://app.outscraper.com/api-docs#tag/Google-Search).
Install the package with:
```bash
npm install outscraper --save
yarn add outscraper
```
[](https://www.npmjs.com/package/outscraper)
```js
const Outscraper = require('outscraper');
// Or using ES modules:
import Outscraper from 'outscraper';
let client = new Outscraper('SECRET_API_KEY');
```
[](https://app.outscraper.com/profile)
```js
// Search for SERP results:
client.googleSearch(['buy iphone 13 TX'], language='en', region='us').then(response => {
console.log(response);
});
```