# Google News API (`epctex/google-news-api`) Actor

Google News data over a simple HTTP API: get the latest news by category, search news by keyword, read any topic by ID, list supported languages and regions, and decode Google News article URLs to the original source. Always-on Standby Actor with JSON responses.

- **URL**: https://apify.com/epctex/google-news-api.md
- **Developed by:** [epctex](https://apify.com/epctex) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.70 / 1,000 search news

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 API

Google News API is an Apify actor that retrieves news directly from Google News (news.google.com). Get the latest news by category, search news by keyword, read any topic by its topic ID, list the supported languages and regions, and decode a Google News article URL to the original source URL. Pricing ranges from $0.001 to $0.01 per successful request, depending on the endpoint called.

Google News API exposes 12 endpoints, accepts up to 2 query/path parameters per endpoint, and bills one pay-per-event charge per successful request — the event depends on which endpoint you call — with no subscription and no monthly minimum on paid plans.

### How It Works

Google News API runs as an [Apify Standby Actor](https://docs.apify.com/platform/actors/running/standby): an always-on HTTP server, not a classic Actor run. There is no run to start and no dataset to poll — you send a plain `GET` request to an endpoint and the JSON comes back in the response itself.

| | Classic dataset Actor | Google News API (Standby) |
| --- | --- | --- |
| How you call it | Start a run, wait, then read the dataset | One `GET` request |
| Result | Items accumulate in a dataset | JSON in the HTTP response, synchronously |
| Billing | Per run or per dataset item | Per successful request, by endpoint |

Authenticate with your Apify API token, either as an `Authorization: Bearer <token>` header or a `?token=<token>` query parameter. The token is only used to identify and bill the caller — it is **never forwarded** to the upstream Google News data service.

### Who Uses Google News API?

- **Media monitoring and PR teams** pull the latest headlines (`/latest`) and keyword searches (`/search`) and read the `source`, `publishedAt` and `author` fields to track coverage of a brand or story.
- **Category and vertical news apps** call `/world`, `/business`, `/entertainment`, `/health`, `/science`, `/sport` and `/technology` to fill topic sections without scraping news.google.com themselves.
- **Topic and subject trackers** read a specific Google News topic, category, person or subject by its topic ID (`/topic/{topicId}`).
- **Localized news products** pick the Google News edition with `languageCode` (e.g. `US:en`) and use `/language-regions` to list the supported regions and languages.
- **Data pipelines and aggregators** resolve `news.google.com/read/...` links to the publisher's original URL with `/decode-article-url`.
- **AI agents and chatbots** call it directly as a tool: plain JSON over HTTP with a published OpenAPI spec.

### Endpoints & Parameters

All endpoints are `GET`. Base URL: `https://epctex--google-news-api.apify.actor` — see the note under [Request Example](#request-example).

#### Latest

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/latest` | `languageCode` | string | Google News edition, e.g. `US:en` | required |
| `/world` | `languageCode` | string | Google News edition, e.g. `US:en` | required |
| `/business` | `languageCode` | string | Google News edition, e.g. `US:en` | required |
| `/entertainment` | `languageCode` | string | Google News edition, e.g. `US:en` | required |
| `/health` | `languageCode` | string | Google News edition, e.g. `US:en` | required |
| `/science` | `languageCode` | string | Google News edition, e.g. `US:en` | required |
| `/sport` | `languageCode` | string | Google News edition, e.g. `US:en` | required |
| `/technology` | `languageCode` | string | Google News edition, e.g. `US:en` | required |

#### Topic

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/topic/{topicId}` | `topicId` | string (path) | Google News topic ID, e.g. `CAAqIggKIhxDQkFTRHdvSkwyMHZNRE51ZW1ZeEVnSmxiaWdBUAE` | required |
| | `languageCode` | string | Google News edition, e.g. `US:en` | required |

#### Search

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/search` | `keyword` | string | Search keyword, e.g. `insurance` | required |
| | `languageCode` | string | Google News edition, e.g. `US:en` | required |

#### Utilities

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/language-regions` | — | — | No parameters | — |
| `/decode-article-url` | `url` | string (URI) | A Google News article URL, e.g. `https://news.google.com/read/CBMic0FV...` | required |

### Request Example

> **Standby base URL:** Apify Standby actors are reachable at `https://{apify-username}--{actor-name}.apify.actor`. This actor is published under the epctex account, so its Standby base URL is `https://epctex--google-news-api.apify.actor`, used in the examples below.

Get the latest news:

```bash
curl -G "https://epctex--google-news-api.apify.actor/latest" \
  --data-urlencode "languageCode=US:en" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `latest-news` ($0.01) on success.

Search news by keyword:

```bash
curl -G "https://epctex--google-news-api.apify.actor/search" \
  --data-urlencode "keyword=insurance" \
  --data-urlencode "languageCode=US:en" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `search-news` ($0.01) on success.

List the supported languages and regions:

```bash
curl "https://epctex--google-news-api.apify.actor/language-regions" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `language-regions` ($0.001) on success.

### Pricing Model

Google News API bills one pay-per-event charge per successful request, based on the endpoint called — regardless of how many articles the response contains. A request charges only the called endpoint's event, once. All eight category feeds (`/latest`, `/world`, `/business`, `/entertainment`, `/health`, `/science`, `/sport`, `/technology`) share the `latest-news` event.

| Endpoint | Event | Price |
| --- | --- | --- |
| `/latest` | `latest-news` | $0.01 |
| `/world` | `latest-news` | $0.01 |
| `/business` | `latest-news` | $0.01 |
| `/entertainment` | `latest-news` | $0.01 |
| `/health` | `latest-news` | $0.01 |
| `/science` | `latest-news` | $0.01 |
| `/sport` | `latest-news` | $0.01 |
| `/technology` | `latest-news` | $0.01 |
| `/topic/{topicId}` | `topic-news` | $0.01 |
| `/search` | `search-news` | $0.01 |
| `/language-regions` | `language-regions` | $0.001 |
| `/decode-article-url` | `decoded-article-url` | $0.001 |

| Status | Meaning | Charged? |
| --- | --- | --- |
| `200` | Successful response, contains `data` | Yes — the called endpoint's event |
| `400` | Bad request — a param failed validation | No |
| `403` | Standby access disabled, or your access was restricted by the developer | No |
| `404` | Endpoint not matched, or nothing found upstream | No |
| `429` | Monthly free-request limit reached | No |
| `502` | Upstream request failed (`Bad gateway`) | No |
| `503` | Plan/quota could not be checked right now | No |

#### Cost examples

| Scenario | Requests | Cost |
| --- | --- | --- |
| List the supported languages and regions once | 1 | $0.001 |
| Decode 1 article URL | 1 | $0.001 |
| Fetch the latest news feed once | 1 | $0.01 |
| Search a keyword, then decode 1 article URL | 2 | $0.01 + $0.001 = $0.011 |
| Pull all 8 category feeds once | 8 | 8 x $0.01 = $0.08 |
| 100 feed, topic or search requests | 100 | $1.00 |
| 1,000 article URL decodes | 1,000 | $1.00 |
| 1,000 keyword searches | 1,000 | $10.00 |

**Cost optimization tips:** don't retry on `400`/`403`/`404`/`429` — they're not charged but they also won't succeed on retry without changing the request; cache `/language-regions` instead of re-fetching it; only decode the article URLs you need, since each decode is its own request.

#### Demo Mode

Apify Free-plan users can try Google News API without a subscription, capped at **10 requests per calendar month**. Once that limit is used up, every call answers `429` ("You have used all free requests for this month. Upgrade your Apify plan to keep going.") until the next month. A paid Apify plan removes the monthly cap entirely.

### Output Example

A news feed (`/latest`, the category feeds, `/topic/{topicId}` and `/search` all return a `data` array of articles):

```json
{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "title": "What to Know About Medical Insurance When Traveling Abroad",
      "articleUrl": "https://news.google.com/read/CBMie0FVX3lxTE5MblpIN2Y5RDFGQ0lUTXBwa3VQSlJnbGY2VUltc29XSHhsRXhGREJGSGpZMG5mT1FSUWJFbGgzaGFNbEpYTjh3elRXcUh5aG16ZXU4RFRDYkRQOUlvdlNCMTNRVG9iaDVmNG9CaFBUZVNIU2EzWWpLUDhsYw?hl=en-US&gl=US&ceid=US%3Aen",
      "publishedAt": "2025-07-29T09:00:35.000Z",
      "imageUrl": "/api/attachments/CC8iK0NnNDNhbFY2ZDJoQ2RsUnllVU5LVFJDcUJCaXFCQ2dLTWdhZFlvcU1xUVU=-w200-h112-p-df-rw",
      "source": "The New York Times",
      "sourceIconUrl": "https://encrypted-tbn2.gstatic.com/faviconV2?url=https://www.nytimes.com&client=NEWS_360&size=96&type=FAVICON&fallback_opts=TYPE,SIZE,URL",
      "author": "By Elaine Glusac"
    }
  ]
}
```

Supported languages and regions (`GET /language-regions`, `data` is an array of `{ code, name }`):

```json
{
  "status": 200,
  "message": "OK",
  "data": [
    { "code": "de-DE", "name": "Deutsch (Deutschland)" }
  ]
}
```

A decoded article URL (`GET /decode-article-url`, `data` is the original source URL):

```json
{
  "status": 200,
  "message": "OK",
  "data": "https://www.example.com/original-article-url"
}
```

An error response (no `data`, not charged):

```json
{
  "status": 404,
  "message": "Not found"
}
```

### Limitations

- **`languageCode` is required** on every news feed endpoint (`/latest`, the category feeds, `/topic/{topicId}`, `/search`); a missing or empty value is rejected with `400`.
- **`/decode-article-url` needs a valid URL** in `url`; anything that is not a valid URL is rejected with `400`.
- **No pagination parameters** — the endpoints take no cursor, page or limit parameter.
- **Per-endpoint pricing, not per-article pricing.** Every endpoint charges a fixed event regardless of how many articles it returns, and the eight category feeds share one event.
- **Topic IDs are Google News topic IDs** (as used in news.google.com topic URLs); there is no endpoint here to look them up.

### Which Google News API Questions Come Up Most Often?

#### Does Google News API need a Google account or API key?

No. You only need an Apify API token. Google News API proxies a backend Google News data service itself.

#### How much does it cost?

It depends on the endpoint: $0.01 for the news feeds (`/latest` and the category endpoints, `/topic/{topicId}`, `/search`) and $0.001 for `/language-regions` and `/decode-article-url`. Failed, invalid or rejected responses are not charged, and a request never charges more than one event.

#### Am I charged per article, or per request?

Per request. A response with many articles costs the same as one with few.

#### What is `languageCode`?

It selects the Google News edition, for example `US:en`. Use `/language-regions` to list the regions and languages Google News supports.

#### How do I get news for a specific topic or subject?

Call `/topic/{topicId}` with a Google News topic ID and a `languageCode`, or use `/search` with a `keyword`.

#### What happens when I hit the free-plan limit?

Every call returns `429` with "You have used all free requests for this month. Upgrade your Apify plan to keep going." until the next calendar month, or until you move to a paid Apify plan.

#### Why did my request return `403`?

Either Standby access isn't available on your current Apify plan, or your access to this Actor has been specifically restricted by its developer.

#### Can I retry a `502` or `503`?

Yes. `502` means the request to the upstream data service failed; `503` means your plan/quota couldn't be checked. Neither is charged, and both are safe to retry after a short delay.

#### Can I use this from an AI agent or bot?

Yes. It's a plain HTTP JSON API with a published OpenAPI spec, so it fits LLM tool calls, bots, backends, and any no-code tool that can make HTTP requests.

### Contact

Google News API is published by epctex. Visit [epctex.com](https://epctex.com) to see all available products. For custom integrations, reach out through the chat box on epctex.com. For support, contact business@epctex.com.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `overview` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/google-news-api").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("epctex/google-news-api").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 epctex/google-news-api --silent --output-dataset

```

## MCP server setup

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

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/nY1Xec5nYdwrsP9pU/builds/qxsrskzTTz7sx7Po9/openapi.json
