Follow these steps to set up the Google News API.
-
Log in to your Bright Data account. Navigate to the Web Scraper API tab.
-
In the search bar, type Google News and select it:
-
Click Start setting an API call to start configuring your API:
-
Select Get API Token to generate a unique API token:
-
Click Add token to create a new token:
-
Save your API token securely - you'll need it for making API calls:
-
To find your Dataset ID, navigate to the Management APIs tab
-
In the Data Collection APIs tab, use Add inputs to configure multiple inputs:
-
As you adjust parameters, a CURL command will generate on the right. You can:
- Use this command to Trigger Data Collection API directly
- Pass these parameters in the
_trigger_collection
function in your code