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.15 kB
Markdown
Returns Google Maps photos from places when using search queries (e.g., restaurants, Manhattan, NY, USA) or from a single place when using IDs or names (e.g., NoMad Restaurant, NY, USA, 0x886916e8bc273979:0x5141fcb11460b226, ChIJu7bMNFV-54gR-lrHScvPRX4).
In case no photos were found by your search criteria, your search request will consume the usage of one photo.[Outscraper API](https://app.outscraper.cloud/api-docs#tag/Google/paths/~1maps~1photos-v3/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');
```
[](https://app.outscraper.com/profile)
```js
// Get information about the places photos:
client.getGoogleMapsPhotos(['The NoMad Restaurant, NY, USA']).then(response => {
console.log(response);
});;
```