google-news — скилл для Claude Code: новости и установка
Скилл обращается к Google News через HTTP API: ищет заголовки, отдаёт разделы и расшифровывает ссылки. Пригодится для мониторинга тем и упоминаний.
npx skills add fetcher-sh/fetcher-skills --skill google-news -a claude-codeЧто делает google-news
Скилл подключает Google News API через https://google-news.fetcher.sh. Он ищет новости по ключевому слову в выбранной языковой версии, возвращает последние и тематические заголовки, показывает допустимые коды языков и регионов, а также превращает redirect URL Google News в ссылку на исходную статью.
Внутри описаны GET-эндпоинты /api/search, /api/latest, разделы world, business, technology, entertainment, sport, science, health, произвольный /api/topic/{topicId} и MCP-сервер https://google-news.fetcher.sh/mcp. Для оплаты доступны Bearer-ключ с предоплаченными кредитами или x402 в USDC; вызов стоит $0.005/call.
На всех эндпоинтах, кроме /api/language-regions, нужен languageCode; для поиска нужен ещё keyword, а для декодирования ссылки — url. Без languageCode запрос вернёт ошибку 400.
Какие задачи решает
- искать новости по ключевому слову и региону
- собирать заголовки из раздела technology или business
- получать последние новости через API
- расшифровывать redirect URL Google News
- проверять доступные коды языков и регионов
Примеры запросов агенту
- Найди новости по теме
stablecoin regulationдля версииen-US. - Собери последние заголовки раздела technology через Google News.
- Преобразуй эту ссылку Google News в URL исходной статьи и верни результат.
Как установить google-news
1Через Skills CLI (Vercel)
npx skills add fetcher-sh/fetcher-skills --skill google-news -a claude-code2Вручную: положить файлы
~/.claude/skills/google-news/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/google-news/
1Через Skills CLI (Vercel)
npx skills add fetcher-sh/fetcher-skills --skill google-news -a codex2Вручную: положить файлы
.agents/skills/google-news/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add fetcher-sh/fetcher-skills --skill google-news -a cursor2Вручную: положить файлы
.cursor/skills/google-news/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install fetcher-sh/fetcher-skills google-news2Вручную: положить файлы
.github/skills/google-news/SKILL.md1Через Skills CLI (Vercel)
npx skills add fetcher-sh/fetcher-skills --skill google-news -a gemini-cli2Командой платформы
gemini skills install https://github.com/fetcher-sh/fetcher-skills --path skills/google-newsВручную: положить файлы
.devin/skills/google-news/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add fetcher-sh/fetcher-skills --skill google-news -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о google-news
Как установить google-news в Claude Code?
Выполните npx skills add fetcher-sh/fetcher-skills --skill google-news -a claude-code. Скилл появится в ~/.claude/skills/google-news/SKILL.md.
Что делает google-news?
Он ищет заголовки Google News, получает последние и тематические подборки, перечисляет коды языков и регионов и декодирует redirect URL статьи.
Что нужно для запросов к google-news?
Можно использовать Bearer-ключ с предоплаченными кредитами или оплату каждого вызова через x402 в USDC. Для большинства эндпоинтов требуется languageCode.
Исходный текст
SKILL.md · MIT
---
name: google-news
description: >-
A Google News API alternative on fetcher.sh — pay-per-call in USDC via
x402, or prepaid credits with a Bearer key, no RSS scraping. Use when the
user wants keyword search across Google News scoped to a language edition,
section headlines (world, business, technology, entertainment, sport,
science, health, or a specific topic ID), the latest headlines, a list of
supported language-region codes, or to decode a Google News redirect URL
into the real article URL. Also covers news monitoring, headline
aggregation, media tracking, and press-mention alerts without scraping
Google News' RSS feeds directly.
keywords:
- google-news
- google-news-api
- news-api-alternative
- headline-monitoring
- media-monitoring
- x402
- ai-agent
---
# Google News API
Google News headlines and search as clean JSON — one plain HTTP GET per call,
paid as you go. No RSS feed scraping, no redirect-URL decoding by hand, no
undocumented internal endpoints.
Base URL: `https://google-news.fetcher.sh`
## Authentication
Two ways to pay, same data — full mechanics in the [`fetcher`
skill](../fetcher/SKILL.md):
```bash
# 1. Prepaid credits (recommended — get a key at https://fetcher.sh/topup
# or via POST /api/credits/topup, see the fetcher skill)
export FETCHER_API_KEY="bby_live_xxxxxxxxxxxx"
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
"https://google-news.fetcher.sh/api/search?keyword=hello&languageCode=en-US"
# 2. x402 pay-per-call — omit the header; a GET with no payment returns 402
# with machine-readable payment requirements (USDC on Base, Polygon,
# Arbitrum, Monad, or Solana). @x402/fetch signs and retries automatically.
```
Every response is `{ "status": number, "message": string, "data": ... }`; the
HTTP status mirrors `status`.
## Endpoints (12 — all GET, $0.005/call)
| Endpoint | What it returns |
| --- | --- |
| `/api/search` | Headlines matching a keyword, in one language edition |
| `/api/latest` | Latest headlines |
| `/api/world` | World section headlines |
| `/api/business` | Business section headlines |
| `/api/technology` | Technology section headlines |
| `/api/entertainment` | Entertainment section headlines |
| `/api/sport` | Sport section headlines |
| `/api/science` | Science section headlines |
| `/api/health` | Health section headlines |
| `/api/topic/{topicId}` | Headlines for an arbitrary topic ID |
| `/api/language-regions` | Every supported `languageCode` value |
| `/api/decode-article-url` | Resolves a Google News redirect URL to the real article URL |
`languageCode` (e.g. `en-US`, `en-GB`, `fr-FR`) is **required on every
endpoint except `/api/language-regions`**, which takes no parameters at all
and exists specifically to list the valid values. `keyword` is additionally
required on `/api/search`; `url` is required on `/api/decode-article-url`.
## Scenarios
**Keyword search, US English edition:**
```bash
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
--data-urlencode "keyword=stablecoin regulation" -G \
--data-urlencode "languageCode=en-US" \
"https://google-news.fetcher.sh/api/search"
```
**Same search, UK English edition:**
```bash
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
--data-urlencode "keyword=ai policy" -G \
--data-urlencode "languageCode=en-GB" \
"https://google-news.fetcher.sh/api/search"
```
**Section headlines (technology, business):**
```bash
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
--data-urlencode "languageCode=en-US" -G \
"https://google-news.fetcher.sh/api/technology"
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
--data-urlencode "languageCode=en-US" -G \
"https://google-news.fetcher.sh/api/business"
```
**Headlines for a specific topic ID:**
```bash
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
--data-urlencode "languageCode=en-US" -G \
"https://google-news.fetcher.sh/api/topic/CAAqJggKIiBDQkFTRWdvSUwyMHZNRGxqTVdZU0FtVnVHZ0pWVXlnQVAB"
```
**List every supported language/region code before picking one:**
```bash
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
"https://google-news.fetcher.sh/api/language-regions"
```
**Decode a Google News redirect URL into the real article link:**
```bash
curl -H "Authorization: Bearer $FETCHER_API_KEY" -G \
--data-urlencode "url=https://news.google.com/rss/articles/CBMi..." \
"https://google-news.fetcher.sh/api/decode-article-url"
```
## MCP
```json
{
"mcpServers": {
"google-news": {
"url": "https://google-news.fetcher.sh/mcp",
"headers": { "Authorization": "Bearer bby_live_..." }
}
}
}
```
Free: `search_endpoints`, `describe_endpoint`, `check_balance`. Paid:
`fetch_data` (any endpoint above), `topup_credits`, plus the named shortcut
`google_news_search`. Drop the `headers` block to pay per call with x402
instead — see the [`fetcher` skill](../fetcher/SKILL.md) for the full flow.
## Errors
- `400` — missing/invalid parameter (message names it) — most commonly a
missing `languageCode`
- `401` — unknown or rotated key
- `402` — payment required (x402 challenge) or `topup_required` (credits
exhausted)
- `404` — not a priced path
- No rate limits; no refunds on upstream failures (settlement precedes
delivery)
## Reference
- Full agent setup: <https://google-news.fetcher.sh/skill.md>
- OpenAPI 3.1 contract: <https://google-news.fetcher.sh/openapi.json>
- Condensed catalog: <https://google-news.fetcher.sh/llms.txt>
- Payment, credits, and MCP deep dive: [`fetcher` skill](../fetcher/SKILL.md)
- Site: <https://google-news.fetcher.sh>
© fetcher-sh · MIT · fetcher-sh/fetcher-skills