# Awesome Google News Scraper (`sync-network/awesome-google-news-scraper`) Actor

This tool scrapes content from Google News, streamlining the collection of latest the information on any topic. Its key feature is the ability to extract full-length articles, not just headlines. Customize results from brief summaries to complete content, revolutionizing your news gathering process.

- **URL**: https://apify.com/sync-network/awesome-google-news-scraper.md
- **Developed by:** [Alam](https://apify.com/sync-network) (community)
- **Categories:** News, Integrations, Automation
- **Security:** Limited permissions
- **Stats:** 109 total users, 1 monthly users, 100.0% runs succeeded, 9 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Awesome Google News Scraper

Unlock the power of comprehensive news analysis with this cutting-edge Apify actor! Designed to revolutionize how you gather and process information, this tool doesn't just scrape headlines – it delivers entire articles right to your fingertips. By leveraging Google News as its source, our actor offers an unparalleled ability to extract, filter, and aggregate full-length news content on any topic you choose.

### Features

• Full Article Extraction: Unlike standard RSS feeds or basic scrapers, this actor can retrieve the complete text of articles, giving you access to in-depth content without leaving the platform.
• Customizable Content Length: Whether you need a quick summary or the entire story, you're in control. Choose between a specific word count or opt for the full article.
• Smart Filtering: Easily exclude unwanted content with customizable keyword filters.
• Flexible Time Ranges: Stay current or research past events with adjustable time frame options.
• Streamlined Data Structure: Receive well-organized output including titles, URLs, publication dates, sources, and more.
• Optional Image Retrieval: Choose whether to fetch image URLs for articles, balancing between comprehensive data and faster performance.

Transform your news gathering process and gain deeper insights with our actor's unique ability to provide complete article content. Say goodbye to surface-level summaries and hello to comprehensive news analysis at your fingertips!

### Who Uses This Scraper?

#### Content Creators & Newsletter Writers

> "I use this scraper to track crypto news daily. The full article extraction lets me read and summarize without visiting 50 different sites."
> — Newsletter operator, 200+ subscribers

#### AI & Machine Learning Teams

> "Perfect for building news sentiment analysis models. The structured output makes it easy to feed directly into our NLP pipeline."
> — ML Engineer at fintech startup

#### Market Researchers

> "I monitor competitor mentions across 50+ news sources. Keyword filtering cuts out irrelevant noise and saves hours of manual work."
> — Market research analyst

#### Journalists & Researchers

> "The time-range filtering is incredible for historical research. I pulled 200 articles from 2023 to write a trend analysis piece."
> — Freelance journalist

### Example Workflows

#### 1. Crypto Trading Signals

{
"keyword": "Bitcoin",
"numberOfItems": 50,
"filterBadKeywords": \["scam", "fraud", "giveaway"],
"contentLength": "full",
"timeRange": "Past 24 hours",
"retrieveImage": false
}
Use case: Get full articles from the last 24 hours for sentiment analysis and trading decisions.

2. AI Industry News Monitoring

{
"keyword": "AI regulation",
"numberOfItems": 30,
"filterBadKeywords": \["clickbait"],
"contentLength": 500,
"timeRange": "Past week",
"retrieveImage": true
}
Use case: Weekly digest of AI regulation news with 500-word summaries and images.

3. Brand Reputation Tracking

{
"keyword": "OpenAI",
"numberOfItems": 100,
"filterBadKeywords": \["ads", "sponsored"],
"contentLength": "full",
"timeRange": "Past month",
"retrieveImage": false
}

Use case: Comprehensive analysis of OpenAI coverage over the last month.

### Input

The actor accepts the following input parameters:

| Parameter | Type | Description |
|-----------|------|-------------|
| keyword | String | The search term for news (e.g., "BRICS", "Politics") |
| numberOfItems | Number | The number of news items to fetch (default: 10, maximum: 100) |
| filterBadKeywords | Array | Optional array of keywords to filter out unwanted news items |
| contentLength | String/Number | Number of words to extract from the article or 'full' for entire content |
| timeRange | String | Time range for news articles (e.g., "Past hour", "Past 24 hours", "Past week", "Past year") |
| retrieveImage | Boolean | Whether to retrieve image URLs for articles (default: false) |

Example input:

{
"keyword": "Bitcoin",
"numberOfItems": 20,
"filterBadKeywords": \["scam", "fraud"],
"contentLength": "200",
"timeRange": "Past week",
"retrieveImage": false
}

### Output

The actor outputs a dataset with the following structure for each news article:

- title: The title of the news article
- link: The resolved URL of the article
- pubDate: The publication date of the article
- source: The source (news outlet) of the article
- imageUrl: The URL of the article's main image (if retrieveImage is set to true)
- summary: A brief summary of the article
- content: The extracted content of the article (based on contentLength parameter)

### Pricing

Pay per event — you only pay for results:

- **$3 per 1,000 news results** (primary event, charged per scraped article)
- Actor start event covers startup; runs that return nothing cost cents, not dollars
- Platform usage (compute) is included in the event price — no hidden costs

Typical runs:

- 50 articles = ~$0.15
- 100 articles = ~$0.30

### Usage

1. Configure your desired input parameters
2. Run the actor
3. Retrieve the results from the dataset

### Performance

The performance of this actor can vary based on the number of items requested and the complexity of the articles being scraped. Here are some general guidelines:

- Processing Time: On average, the actor takes about 5-10 seconds per article for full content extraction.
- Scalability: The actor is designed to handle up to 100 items per run efficiently.
- Concurrent Requests: To balance performance and politeness to source websites, the actor processes up to 5 articles concurrently.

For optimal performance, we recommend:

- Limiting requests to 50 items or fewer for quicker results.
- Using more specific keywords to target relevant articles and reduce processing time.
- Setting a reasonable `contentLength` if you don't need the full article text.
- Keeping `retrieveImage` set to false unless image URLs are necessary, as this can significantly speed up the scraping process.

Note: Performance can be affected by factors such as network latency and the responsiveness of source websites.

### Error Handling

This actor is designed with robust error handling to ensure smooth operation:

- Network Issues: If a connection to Google News fails, the actor will retry up to 3 times before moving on to the next item.
- Rate Limiting: The actor implements a delay between requests to avoid triggering Google's rate limits. If rate limiting is detected, the actor will pause for 60 seconds before retrying.
- Article Extraction: If the full text of an article cannot be extracted, the actor will fall back to providing the summary from the RSS feed.
- Invalid Inputs: The actor validates all inputs and will provide meaningful error messages for any invalid parameters.

In case of any unrecoverable errors, the actor will log the error details and continue processing the remaining items where possible.

### 🚀 Related actors

- [Awesome Crypto News Scraper](https://apify.com/sync-network/awesome-crypto-news-scraper) — same fast Google News engine, pre-tuned for crypto keywords.

# Actor input Schema

## `keyword` (type: `string`):

The keyword to search for in news articles

## `numberOfItems` (type: `integer`):

The number of news items to fetch (default: 1, maximum: 100)

## `filterBadKeywords` (type: `array`):

List of keywords to filter out from results

## `contentLength` (type: `string`):

Number of words to extract from the article content or 'full' for entire content

## `timeRange` (type: `string`):

Time range for news articles

## `retrieveImage` (type: `boolean`):

Whether to retrieve image URLs for articles (may slow down the actor)

## Actor input object example

```json
{
  "keyword": "london",
  "numberOfItems": 1,
  "contentLength": "50",
  "timeRange": "Any time",
  "retrieveImage": false
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("sync-network/awesome-google-news-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("sync-network/awesome-google-news-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call sync-network/awesome-google-news-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sync-network/awesome-google-news-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4BeCCd2uql6kfHgFS/builds/fOajBrZWuRLo0Ht4P/openapi.json
