# Google News Scraper - Articles & Sources by Keyword (`bin_ai_tools/google-news-source-coverage`) Actor

Pay per delivered row: $0.002 per result row. Failed rows are not charged.

- **URL**: https://apify.com/bin_ai_tools/google-news-source-coverage.md
- **Developed by:** [Bin Bin](https://apify.com/bin_ai_tools) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 news article rows

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

## Google News Source Coverage Report

Find out who is covering a topic. Each run queries Google News for up to 5 terms and returns the article rows it finds — headline, publisher, publication time and the Google News link — plus a free report showing which sources cover each term and how heavily.

### What you get

- **ARTICLE rows** — one row per article found: title, source/publisher, published time, Google News link and the query it matched.
- **SOURCE_REPORT (free)** — per query: articles delivered, counts grouped by publisher, the time range covered, and coverage notes.

### Pricing

- **$0.002 per article row delivered.** You only pay for rows that land in your dataset.
- The source-coverage report is **always free**, including on runs where a term finds nothing.

### If a term returns zero rows

Google News had no current coverage for that exact term in the sampled feed — not an error, and you pay nothing for that term. Try a broader or differently-worded term.

### Honest limits

- Results are a **bounded sample** of Google News RSS (up to about 100 items per query), not exhaustive news coverage.
- Links are Google News links, not direct publisher article URLs, and no article full text is extracted.

### Output fields

- `recordType` — Record Type of the result row.
- `articleId` — Article ID of the result row.
- `query` — Query of the result row.
- `title` — Title of the result row.
- `googleNewsUrl` — Google News URL of the result row.
- `source` — Source of the result row.
- `sourceHomepage` — Source Homepage of the result row.
- `publishedAt` — Published At of the result row.
- `isPublisherArticleUrl` — Is Publisher Article URL of the result row.
- `status` — Status of the result row.
- `articlesDelivered` — Articles Delivered of the result row.
- `rawFeedItems` — Raw Feed Items of the result row.
- `rejectedItems` — Rejected Items of the result row.
- `uniqueSources` — Unique Sources of the result row.
- `topSources` — Top Sources of the result row.
- `oldestPublishedAt` — Oldest Published At of the result row.
- `newestPublishedAt` — Newest Published At of the result row.
- `errorCode` — Error Code of the result row.
- `coverageWarning` — Coverage Warning of the result row.
- `reportMarkdown` — Report Markdown of the result row.

Each run returns one dataset row per input item. Rows that fail are returned as error rows with an error code and message, and are not charged.

# Actor input Schema

## `query` (type: `string`):

First-run example only; API users must supply a real supported input.

## `queries` (type: `array`):

Optional advanced batch 1–5; overrides the single field when provided.

## `country` (type: `string`):

Country code for results.

## `language` (type: `string`):

Language code for results.

## `timeWindow` (type: `string`):

Time window for results, e.g. 7d.

## `maxArticlesPerQuery` (type: `integer`):

Maximum articles per query.

## `maxTotalResults` (type: `integer`):

Overall cap on returned rows.

## Actor input object example

```json
{
  "query": "OpenAI",
  "queries": [
    "OpenAI"
  ],
  "country": "US",
  "language": "en",
  "timeWindow": "7d",
  "maxArticlesPerQuery": 5,
  "maxTotalResults": 10
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "query": "OpenAI",
    "country": "US",
    "language": "en",
    "maxArticlesPerQuery": 5,
    "maxTotalResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("bin_ai_tools/google-news-source-coverage").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 = {
    "query": "OpenAI",
    "country": "US",
    "language": "en",
    "maxArticlesPerQuery": 5,
    "maxTotalResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("bin_ai_tools/google-news-source-coverage").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 '{
  "query": "OpenAI",
  "country": "US",
  "language": "en",
  "maxArticlesPerQuery": 5,
  "maxTotalResults": 10
}' |
apify call bin_ai_tools/google-news-source-coverage --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bin_ai_tools/google-news-source-coverage"
        }
    }
}
```

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/VaAwiBrt4ZRKbIYOQ/builds/uZRk92u9CyNXIcDX2/openapi.json
