# Google News→Markdown｜AI News zh/EN/TW/HK (`ahuang/google-news-md`) Actor

Search Google News (EN + zh-CN / TW / HK) → deduped stories with real article URLs + optional LLM-ready Markdown body. Paywalls / body fails → title+link still returned; body not charged. No login.

搜 Google News（英文 + 简中/繁中港台）→ 去重新闻列表，含真实文章链接 + 可选 Markdown 正文。付费墙/正文失败仍返回标题+链接，正文不计费。无登录。

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

## Pricing

from $2.00 / 1,000 news items

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→Markdown｜AI News zh/EN/TW/HK

Turn a **Google News** query (or topic + region) into a clean news feed for **AI agents, RAG corpora, and media monitoring**: decoded **original article URLs**, source metadata, and **optional LLM-ready Markdown** body (reuse of our web2md / cn2md extractors). Editions: **en-US**, **zh-CN**, **zh-TW**, **zh-HK**.

把 Google News 查询变成面向 **智能体 / RAG / 舆情** 的新闻流：解码后的 **原站链接**、来源元数据，以及可选的 **干净 Markdown 正文**（复用 web2md / cn2md 抽取）。支持 **英文 + 简中 + 繁中港台**。

> **MVP scope｜MVP 范围：** Always deliver **title + real link + source**. Body Markdown is **best-effort / optional**. We do **not** promise full text from paywalled or anti-bot sites (e.g. NYT / Bloomberg / Reuters often block cloud fetches). Body fail → row still useful, **body event = $0**.

> **Honest limits｜诚实说明：** Early access. No uptime SLA. List comes from public Google News **RSS**; real URLs need Google’s redirect decode (undocumented path — may break or rate-limit). No login, no residential proxy by default. Failures / empty body → explicit fields, **never charged for the failed part**.

### Quick start｜三步上手

1. **Query + edition｜查询与地区** — set `query` (keywords / topic) and `hl` / `gl` / `ceid` (or pick a preset: `en-US`, `zh-CN`, `zh-TW`, `zh-HK`).
2. **Body optional｜正文可选** — default `fetchBody: false` = title + decoded link only (cheaper). Set `fetchBody: true` for Markdown when the publisher allows; paywalls return title+link only.
3. **Run & export｜运行导出** — Start → dataset JSON/CSV, or API / MCP. Body failures and decode failures are marked and **not billed** for the failed event.

Example｜示例：

```json
{
  "query": "artificial intelligence",
  "edition": "en-US",
  "maxItems": 10,
  "fetchBody": true,
  "since": null,
  "dedupe": true
}
```

The Console prefill is a small trial: `artificial intelligence`, 10 items, title + link only (`fetchBody: false`). Raise `maxItems` (up to 100) or turn on `fetchBody` for real runs.
Console 预填是小试用：`artificial intelligence`、10 条、只要标题 + 链接（`fetchBody: false`）；正式使用可调高 `maxItems`（最多 100）或打开 `fetchBody`。

中文示例：

```json
{
  "query": "人工智能",
  "edition": "zh-CN",
  "maxItems": 50,
  "fetchBody": true
}
```

### Editions｜地区 / 语言

| Preset `edition` | Typical Google params | Notes |
|---|---|---|
| `en-US` | `hl=en-US&gl=US&ceid=US:en` | Default English |
| `zh-CN` | `hl=zh-CN&gl=CN&ceid=CN:zh-Hans` | 简体中文 |
| `zh-TW` | `hl=zh-TW&gl=TW&ceid=TW:zh-Hant` | 繁体（台湾） |
| `zh-HK` | `hl=zh-HK&gl=HK&ceid=HK:zh-Hant` | 繁体（香港） |
| custom | pass `hl` / `gl` / `ceid` yourself | Advanced |

### Use cases｜用例

- **AI agents / MCP** — “what’s the latest on X in zh-CN, with links I can open”
- **RAG news corpora** — store Markdown bodies + stable original URLs (when available)
- **Media / brand monitoring** — cron + `since` incremental pulls
- **Cross-lingual coverage** — same topic across EN + 中文港台 editions
- **Hand-off to cn2md** — when you already have a Chinese article URL, use [Chinese to Markdown](https://apify.com/ahuang/chinese-article-to-markdown) for deeper site-specific extraction

### Why this Actor｜对比（可公开验证）

| | This Actor (MVP) | [lhotanova/google-news-scraper](https://apify.com/lhotanova/google-news-scraper) | [data_xplorer/google-news-scraper-fast](https://apify.com/data_xplorer/google-news-scraper-fast) | [automation-lab/google-news-scraper](https://apify.com/automation-lab/google-news-scraper) | [easyapi/google-news-scraper](https://apify.com/easyapi/google-news-scraper) |
|---|---|---|---|---|---|
| Output | Title + **decoded URL** + optional **LLM Markdown** (+ optional chunks) | Title/link; optional page fetch billed separately | Fast list-oriented | List + per-article PPE | List-oriented |
| zh-CN / TW / HK | **First-class presets** + CN body path via cn2md-style extract | EN-centric READMEs typical | — | — | — |
| Paywall honesty | **Explicit:** no full-text promise; body fail = $0 | Body page is an add-on event | — | — | — |
| Start fee | **$0** custom start | Start **$0.005** + item + decode + page | PPE $0.004/item | Start **$0.005** + ~$0.0023/item | Start **$0.09** + $0.005/item |
| Store signal (2026-11-10) | New | m30 **353**; **109,674** runs/30d; rating 4.59 | m30 **646**; 32,611 runs; 4.9 | m30 197; 18,813 runs | m30 116; 12,010 runs |
| Login / proxy | **None** by default | Runs at volume on Store (weak evidence proxy not required) | — | — | — |

We compete on **Markdown + Chinese editions + clear “body optional / fail=$0” billing**, not on beating lhotanova’s run volume or claiming every publisher yields full text.

### Pricing｜定价（PPE，提案）

| Event | Price |
|---|---|
| `news_item` (title + decoded original URL + source meta) | **$0.002** / successfully returned item |
| `news_item_with_body` (above + Markdown body) | **$0.004** / item **only if** body Markdown is non-empty |
| Body fetch fail / paywall / 403 / empty extract (title+link still ok) | charge **`news_item` only** ($0.002) — **body not billed** |
| Decode fail / RSS empty / upstream error row | **$0** |
| `apify-actor-start` | platform ≈ **$0.00005** / run (**no** custom start fee) |

Optional later: `chunking` for RAG — same body event (no surcharge in MVP) or tiny add-on after 开发部 confirms cost.

### Input｜输入（schema outline）

| Field | Required | Type | Description |
|---|---|---|---|
| `query` | yes\* | string | Search keywords / topic (\*or `topicUrl` / RSS URL if we accept paste-in) |
| `edition` | no | string | `en-US` | `zh-CN` | `zh-TW` | `zh-HK` (default `en-US`) |
| `hl` / `gl` / `ceid` | no | string | Override preset Google News locale params |
| `maxItems` | no | int | Cap items per run (default 50, Console prefill 10, hard max 100) |
| `fetchBody` | no | bool | default `false` — title+link only; `true` = try Markdown body |
| `dedupe` | no | bool | default `true` — collapse near-duplicate headlines / same canonical URL |
| `since` | no | string (ISO 8601) | Keep items with pubDate ≥ this time (incremental monitors) |
| `chunking` | no | bool | default `false` — RAG chunks when body present (`chunkSize` / `chunkOverlap`) |
| `chunkSize` / `chunkOverlap` | no | int | Same defaults as cn2md (512 / 64) when `chunking: true` |
| `proxyConfiguration` | no | object | **Off by default.** Only for users who insist on trying hard sites; GB on **their** Apify account. We still do **not** claim paywall bypass. |

### Output example｜示例

Success with body:

```json
{
  "ok": true,
  "title": "Example AI headline",
  "url": "https://www.theverge.com/...",
  "source": "The Verge",
  "publishedAt": "2026-11-10T01:00:00.000Z",
  "edition": "en-US",
  "query": "artificial intelligence",
  "markdown": "# Example AI headline\n\n...",
  "bodyStatus": "ok",
  "billed": true,
  "billingEvent": "news_item_with_body"
}
```

Paywall / body blocked (still useful, cheaper event):

```json
{
  "ok": true,
  "title": "Example NYT headline",
  "url": "https://www.nytimes.com/...",
  "source": "The New York Times",
  "publishedAt": "2026-11-10T01:05:00.000Z",
  "edition": "en-US",
  "markdown": null,
  "bodyStatus": "BLOCKED",
  "bodyError": "HTTP_403",
  "billed": true,
  "billingEvent": "news_item"
}
```

Hard failure (decode / RSS): `{ "ok": false, "error": "DECODE_FAILED", "billed": false }` — **$0**.

### Reliability｜稳定性

- **RSS list:** public Google News RSS; 开发部本机连续 25 次请求未见 429（JP ISP，**≠** Apify/Lambda 机房 IP — 上线前用免费额度复测）.
- **URL decode:** depends on Google internal `batchexecute` path (undocumented). Cache + low concurrency + backoff; if Google changes it, list may degrade to encrypted links / error rows.
- **Body:** best-effort HTTP extract (trafilatura-class). Open publishers often work; **NYT / Bloomberg / Reuters / similar often 403/401** — expected, not a bug.
- **Proxy:** default **off**. Optional user-paid residential does **not** mean we bypass paywalls or ToS.
- Not an SLA product.

### Compliance｜合规（listing 必写）

- **No login** to Google or publisher accounts — no account-ban surface; risk is mainly **listing takedown** if Google objects to automation **（推断；条款未逐条核对）**.
- **Copyright:** output is for the caller’s analysis / RAG / monitoring — **not** a republishing feed. We **do not** circumvent paywalls or soft paywalls.
- **Robots / rate-limit:** low concurrency, backoff; respect publisher blocks (return `BLOCKED`, don’t retry aggressively).
- **Privacy:** keep bylines as low-sensitivity source metadata; no people-dossier features.
- **Decode disclosure:** README states decode uses undocumented Google endpoints; may break without notice.

### FAQ

**Q: Do I always get full article text?**\
A: **No.** MVP always aims for title + real link. Body is optional and often missing on paywalled / anti-bot sites. You only pay the body event when Markdown is returned.

**Q: Why is my NYT / Bloomberg / Reuters body empty?**\
A: Those hosts frequently return 403/401 to datacenter fetches. Expected. You still get title + URL; body **$0**.

**Q: zh-TW / zh-HK supported?**\
A: Yes — first-class `edition` presets alongside `zh-CN` and `en-US`.

**Q: RapidAPI?**\
A: Apify launches first. HTTP / RapidAPI twin can follow (same events / honest body limits) once Store demand justifies packaging — see §3 below.

**Q: Is this the same as cn2md?**\
A: Complementary. This Actor finds / decodes Google News items; [cn2md](https://apify.com/ahuang/chinese-article-to-markdown) deep-extracts Chinese article URLs you already have.

### You might also like｜同矩阵

- [Chinese to Markdown](https://apify.com/ahuang/chinese-article-to-markdown)
- [YouTube Transcript](https://apify.com/ahuang/youtube-transcript)
- [Web to Markdown Extractor (RapidAPI)](https://rapidapi.com/阿黄/api/web-to-markdown-extractor)
- ATS Job Board API（同批次上架后互链）

# Actor input Schema

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

Google News search keywords / topic. Required unless topicUrl is set. 搜索词；若提供 topicUrl 可省略。

## `edition` (type: `string`):

Locale preset for hl/gl/ceid. Override with hl/gl/ceid fields. 地区预设；可用 hl/gl/ceid 覆盖。

## `hl` (type: `string`):

Override Google News hl (e.g. zh-CN). 覆盖预设 hl。

## `gl` (type: `string`):

Override Google News gl (e.g. CN). 覆盖预设 gl。

## `ceid` (type: `string`):

Override Google News ceid (e.g. CN:zh-Hans). 覆盖预设 ceid。

## `topicUrl` (type: `string`):

Optional paste-in Google News topic or RSS URL (skips query build). 可选：直接贴 Google News 专题/RSS。

## `maxItems` (type: `integer`):

Cap items per run (default 50, hard max 100 — RSS common limit). 默认 50，硬顶 100。

## `fetchBody` (type: `boolean`):

false (default) = title + decoded link only (news_item). true = try Markdown body; paywall/empty → still title+link, body not charged. 默认 false 只要标题+链接；true 尝试正文，失败仍返回列表且正文不计费。

## `dedupe` (type: `boolean`):

Collapse near-duplicate headlines / same canonical URL. 合并近似标题/同一规范 URL。

## `since` (type: `string`):

Keep items with pubDate ≥ this time. 只保留该时间之后的条目。

## `chunking` (type: `boolean`):

When body present, attach chunks\[] (no PPE surcharge in MVP). 有正文时附加 chunks\[]；MVP 不加价。

## `chunkSize` (type: `integer`):

Used when chunking=true (default 512, same as cn2md).

## `chunkOverlap` (type: `integer`):

Used when chunking=true (default 64).

## `maxConcurrency` (type: `integer`):

Low by default (decode hits Google twice per item). 默认低并发。

## `proxyConfiguration` (type: `object`):

Off by default. Optional Apify proxy on YOUR account — we do NOT claim paywall bypass. 默认关闭；可选用户自付代理，不承诺绕过付费墙。

## Actor input object example

```json
{
  "query": "artificial intelligence",
  "edition": "en-US",
  "maxItems": 10,
  "fetchBody": false,
  "dedupe": true,
  "chunking": false,
  "chunkSize": 512,
  "chunkOverlap": 64,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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": "artificial intelligence",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahuang/google-news-md").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": "artificial intelligence",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("ahuang/google-news-md").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": "artificial intelligence",
  "maxItems": 10
}' |
apify call ahuang/google-news-md --silent --output-dataset

```

## MCP server setup

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

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/9R7lIzdPLt7YZ4Ity/builds/gjVlWuXglIVnr3FxC/openapi.json
