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.
47 lines (37 loc) • 1.05 kB
Markdown
Using enrichments with [Outscraper API](https://app.outscraper.com/api-docs).
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
client.googleMapsSearch(
["bars ny usa"],
limit=10, // limit of palces per each query
language='en',
region='US',
skip=0,
dropDuplicates=false,
enrichment=['domains_service', 'emails_validator_service']
).then(response => {
response.forEach(queryPlaces => {
queryPlaces.forEach(place => {
console.log('name: ', place);
});
});
});
```