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.
36 lines (26 loc) • 1.03 kB
Markdown
Returns reviews from Tripadvisor businesses.
In case no reviews were found by your search criteria, your search request will consume the usage of one review. [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Reviews-and-Comments/paths/~1tripadvisor-reviews/get).
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
// Get information about business:
client.tripadvisorReviews(['https://www.tripadvisor.com Restaurant_Review-g187147-d12947099-Reviews-Mayfair_Garden-Paris_Ile_de_France.html']).then(response => {
console.log(response);
});;
```