UNPKG

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) 824 B
# Trustpilot Search Scraper With Server-side JavaScript Returns search results from Trustpilot. [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Trustpilot/paths/~1trustpilot~1search/get). ## Installation Install the package with: ```bash npm install outscraper --save # Or yarn add outscraper ``` [Link to the NPM package page](https://www.npmjs.com/package/outscraper) ## Initialization ```js 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](https://app.outscraper.com/profile) ## Usage ```js // Get information about the search results from Trustpilot: client.trustpilotSearch(['real estate']).then(response => { console.log(response); });; ```