![Google News Scraper avatar](https://images.apifyusercontent.com/ZfzjcGMccgEYD0Doz8lSQvq5z_6FNYkxvv6Whv5uPII/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9tZkI4T3NYTGZkZWlRcGtxbC9CaWdzendrV0c1NHVidkFuSi1nb29nbGUtbmV3cy5wbmc.webp)
Google News Scraper
Try for free
3 days trial then $20.00/month - No credit card required now
View all Actors![Google News Scraper](https://images.apifyusercontent.com/ZfzjcGMccgEYD0Doz8lSQvq5z_6FNYkxvv6Whv5uPII/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9tZkI4T3NYTGZkZWlRcGtxbC9CaWdzendrV0c1NHVidkFuSi1nb29nbGUtbmV3cy5wbmc.webp)
![Google News Scraper](https://images.apifyusercontent.com/ZfzjcGMccgEYD0Doz8lSQvq5z_6FNYkxvv6Whv5uPII/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9tZkI4T3NYTGZkZWlRcGtxbC9CaWdzendrV0c1NHVidkFuSi1nb29nbGUtbmV3cy5wbmc.webp)
Google News Scraper
epctex/google-news-scraper
Try for free
3 days trial then $20.00/month - No credit card required now
Unlock timely news insights with our Google News data retrieval tool. Get the latest news on any news at any time, and more. Effortless and powerful. 📰🔍 #NewsData
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "startUrls": [
8 "https://news.google.com/topics/CAAqIggKIhxDQkFTRHdvSkwyMHZNR054ZERrd0VnSmxiaWdBUAE?hl=en-US&gl=US&ceid=US%3Aen",
9 "https://news.google.com/topics/CAAqJggKIiBDQkFTRWdvSUwyMHZNRGx6TVdZU0FtVnVHZ0pWVXlnQVAB?hl=en-US&gl=US&ceid=US%3Aen",
10 "https://news.google.com/search?q=banana&hl=en-US&gl=US&ceid=US%3Aen"
11 ],
12 "query": [
13 "art"
14 ],
15 "maxItems": 20,
16 "maxNewsPerEachItem": 20,
17 "extendOutputFunction": "($) => { return {} }",
18 "customMapFunction": "(object) => { return {...object} }",
19 "proxy": {
20 "useApifyProxy": true
21 }
22}
23EOF
24
25# Run the Actor using an HTTP API
26# See the full API reference at https://docs.apify.com/api/v2
27curl "https://api.apify.com/v2/acts/epctex~google-news-scraper/runs?token=$API_TOKEN" \
28 -X POST \
29 -d @input.json \
30 -H 'Content-Type: application/json'