- Notifications
You must be signed in to change notification settings - Fork0
The library provides convenient access to the Outscraper API from applications written in server-side JavaScript. Allows using Outscraper's services from your code.
License
outscraper/outscraper-node
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The library provides convenient access to theOutscraper API from applications written in server-side JavaScript. Allows usingOutscraper's services from your code.
Install the package with:
npm install outscraper --save# Oryarn add outscraper
constOutscraper=require('outscraper');// Or using ES modules:importOutscraperfrom'outscraper';letclient=newOutscraper('SECRET_API_KEY');
Link to the profile page to create the API key
// Search for businesses in specific locations:client.googleMapsSearch(['restaurants brooklyn usa'],limit=20,language='en',region='us').then(response=>{console.log(response);});// Or using ES modules and async/await:(async()=>{constresponse=awaitclient.googleMapsSearch(['restaurants brooklyn usa'],limit=20,language='en',region='us');console.log(response);})();// Get data of the specific place by idclient.googleMapsSearch(['rChIJrc9T9fpYwokRdvjYRHT8nI4'],language='en').then(response=>{console.log(response);});// Get reviews of the specific place by idclient.googleMapsReviews(['rChIJrc9T9fpYwokRdvjYRHT8nI4'],reviewsLimit=20,language='en').then(response=>{console.log(response);});// Get reviews of the specific place by id using async modeclient.googleMapsReviews(['rChIJrc9T9fpYwokRdvjYRHT8nI4'],reviewsLimit=20,limit=1,sort='most_relevant',skip=0,start=null,cutoff=null,cutoffRating=null,ignoreEmpty=false,language='en',region=null,reviewsQuery=null,lastPaginationId=null,asyncRequest=true// Enable async mode).then(response=>{console.log('Request ID:',response.requestId);// You can use the requestId to check the status of the request laterclient.getRequestArchive(response.requestId).then(status=>{console.log('Request Status:',status);});});// Search contacts from websiteclient.emailsAndContacts(['outscraper.com']).then(response=>{console.log(response);});
Bug reports and pull requests are welcome on GitHub athttps://github.com/outscraper/outscraper-node.
About
The library provides convenient access to the Outscraper API from applications written in server-side JavaScript. Allows using Outscraper's services from your code.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.