# Google News Scraper

> Google News Scraper is a paid API for AI agents from agent-data.centorprat.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-29).

Search Google News or fetch topic headlines in any language and country, returning titles, sources, publish times, real publisher URLs, and optionally full article text, author, and images.

## Facts

- Endpoint: POST https://agent-data.centorprat.workers.dev/tools/google-news-scraper?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/google-news-scraper-624baa40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mdx1xCyAy2rqVCe1ux2nh

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability google-news-scraper-624baa40 -d '<json body>'
```

Example prompt: Search Google News for articles about the Fed interest rate decision from the last 24 hours, up to 10 results, decode the real publisher URLs, and pull full article text — I need title, source, publish time, and author for each.

## When to prefer this

Choose this endpoint when you need structured, up-to-date news data from Google News with real publisher URLs rather than Google redirect links, especially when you need full article text, author attribution, or multi-language/country coverage. It is more cost-effective than general web scrapers for news-specific tasks and supports Google search operators for precise filtering. Prefer it over general search APIs when the user specifically wants news articles and journalism rather than general web pages.

## Known failure modes

- Google News may return no results for very niche or recent queries
- Full text extraction may fail if the publisher uses a paywall or heavy JavaScript rendering
- Decoded URL may still be a redirect if Google's encoding is non-standard
- Rate limits or temporary Google-side blocks can reduce result counts
- Language or country combination may not be supported by Google News, returning empty results

## How this service works

Pay-per-call data and tools for AI agents, $0.002-0.01 per call in USDC via x402 (Base, Polygon or Solana), no account or API key; MAX tiers ($0.05-0.25) run deeper jobs. Agent toolkit: web search, search + read top pages, any page as clean markdown with a prompt-injection check, which-x402-API-to-call recommender, seller check. Data: Google Maps places with contacts, YouTube video data and transcripts, job listings (Indeed, LinkedIn, 13 boards), Google Ads Transparency, TikTok comments, Pinterest, Airbnb, Redfin, AliExpress, app stores, live sports, website and SEO checks, Shopify store tech stacks, and onchain token / address risk checks.

## Output

Returns a list of articles per query or topic, each with: title, source name, publish timestamp, snippet, decoded real publisher URL (when decodeUrls=true), and optionally full article text, word count, author name, and lead image URL. Failed article lookups are not charged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "topics": {
   "type": "array",
   "items": {
    "enum": [
     "TOP",
     "WORLD",
     "NATION",
     "BUSINESS",
     "TECHNOLOGY",
     "ENTERTAINMENT",
     "SPORTS",
     "SCIENCE",
     "HEALTH"
    ],
    "type": "string"
   },
   "maxItems": 3,
   "description": "Google News topic sections (current headlines)."
  },
  "country": {
   "type": "string",
   "description": "Two-letter edition country, e.g. US, GB, ES, DE, IN."
  },
  "queries": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 1,
   "description": "Google News searches. Google's operators work: \"exact phrase\", OR, -word, site:reuters.com, intitle:."
  },
  "language": {
   "type": "string",
   "description": "e.g. en-US, en-GB, es-419, de, fr, pt-BR, ja."
  },
  "timeRange": {
   "enum": [
    "any",
    "1h",
    "1d",
    "7d",
    "30d"
   ],
   "type": "string",
   "description": "Only articles from this window."
  },
  "decodeUrls": {
   "type": "boolean",
   "description": "Decode Google's redirect links into the publisher's real URL (included in the article price)."
  },
  "extractText": {
   "type": "boolean",
   "description": "Open each article and return its text, word count, author, image and publish time (billed per article with text)."
  },
  "excludeSources": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 10,
   "description": "Drop articles from these sources, e.g. [\"Yahoo Finance\"]."
  },
  "maxArticlesPerQuery": {
   "type": "integer",
   "maximum": 30,
   "description": "Google News returns up to 100 per search."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "url": "https://www.carbonbrief.org/experts-how-are-climate-scientists-using-artificial-intelligence",
    "query": "artificial intelligence",
    "title": "Experts: How are climate scientists using artificial intelligence?",
    "topic": null,
    "source": "Carbon Brief",
    "country": "US",
    "snippet": "Experts: How are climate scientists using artificial intelligence? Carbon Brief",
    "language": "en-US",
    "sourceUrl": "https://www.carbonbrief.org",
    "publishedAt": "2026-10-22T10:50:49+00:00",
    "googleNewsUrl": "https://news.google.com/rss/articles/CBMilwFBVV95cUxPa3loTFZhbUZ6X1NzNnBZQXMwUGVwbHFvMmM0TVl6QTgyeUVYUHJjQ3dsX2ZWRS1DYmp2b29lMUdaTHl4RDMyYVVyT2V5YnE0d0thajZtU0x4ZDN3N3VuS2JqeTB5TXhhdXREcDAzUUlmb0NweC1ZdHdyODZEaXRCbkVLak5vWEk3NnRua3haakZWaEpnTm1n?oc=5"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/google-news-scraper-624baa40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data.centorprat.workers.dev](https://www.zero.xyz/host/agent-data.centorprat.workers.dev/llms.txt)
