Google News Scraper avatar
Google News Scraper
Try for free

3 days trial then $20.00/month - No credit card required now

View all Actors
Google News Scraper

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'
Developer
Maintained by Community
Actor metrics
  • 29 monthly users
  • 4 stars
  • 100.0% runs succeeded
  • 15 hours response time
  • Created in Sep 2023
  • Modified about 13 hours ago