Follow these steps to set up the Google Maps Scraper API.
-
Log in to your Bright Data account. Click on the Web Scraper API tab.
-
In the search bar, type Map and choose Google Maps Reviews.
-
Click Start setting an API call to start configuring your API.
-
Click Get API Token to generate a unique API token.
-
Click Refresh Token to view your newly created API token.
-
Save your API token securely. You’ll need it to make API calls.
-
To find Dataset ID, go to the Management APIs tab.
-
In the Data Collection APIs tab, use the Add inputs option to add multiple inputs, such as
URL
anddays_limit
. You can also adjust parameters like result limits or error report inclusion. -
As you adjust parameters, a CURL command will generate on the right. You can use this command to Trigger Data Collection API directly or pass these parameters in the
_trigger_collection
function in your code.