Why Google News CBMi Base64 Decoding Broke in 2026 (Pure-HTTP Fix + Free Online Decoder)
If you built a Google News RSS parser, n8n workflow, or AI/RAG ingestion script before mid-2024, you probably noticed that https://news.google.com/rss/articles/CBMi... links stopped decoding via Base64 slicing. Here is
If you built a Google News RSS parser, n8n workflow, or AI/RAG ingestion script before mid-2024, you probably noticed that https://news.google.com/rss/articles/CBMi... links stopped decoding via Base64 slicing.
Here is why it broke, the exact working pure-HTTP 2-step fix (no Playwright or Puppeteer required), and a zero-login browser tester + MIT CLI you can run in 2 seconds.
1. Why Offline Base64 Decoding Stopped Working
Google migrated /rss/articles/ from self-contained protobuf Base64 strings to opaque encrypted tokens (commonly prefixed with AU_yqL). Because the real publisher URL is no longer embedded inside the Base64 bytes, you have to resolve it through Google's internal batchexecute RPC (Fbv4je / garturlreq).
2. Three Gotchas That Break Most Naive Decoders
-
The ~590 KB HTML Offset Trap: Google now places
data-n-a-id,data-n-a-ts, anddata-n-a-sgnear byte 590,508 of the/rss/articles/wrapper response. If your HTTP client truncates HTML at 250 KB, you will get 0% decode rates. Use a streaming tail-buffer scanner so you keep RAM under 32 KB while reading up to 1 MB. -
HTTP 429 on 1-by-1 RPC Calls: Calling
batchexecuteindividually for 50 articles triggers rate limits fast. Batching 5 tokens into a singlef.reqPOST cuts RPC requests by 5x. -
EU
consent.google.comRedirects: From EU cloud IPs, Google often returns a302toconsent.google.com. Detect that redirect explicitly and fall back to Bing News RSS (?format=rss&mkt=en-US&setlang=en&cc=US), which embeds the direct publisher URL inside the?url=query param.
3. Minimal Working Pure-HTTP Node.js Snippet
// Step 1: Extract data-n-a-{sg,ts,id} from /rss/articles/ HTML (~590KB offset)
const sg = html.match(/data-n-a-sg="([^"]+)"/)?.[1];
const ts = Number(html.match(/data-n-a-ts="(\d+)"/)?.[1]);
const id = html.match(/data-n-a-id="([^"]+)"/)?.[1];
// Step 2: POST to batchexecute (batch up to 5 tokens in one array!)
const inner = JSON.stringify([
'garturlreq',
[['X','X',['X','X'],null,null,1,1,'US:en',null,1,null,null,null,null,null,0,1],'X','X',1,[1,1,1],1,1,null,0,0,null,0],
id, ts, sg,
]);
const body = 'f.req=' + encodeURIComponent(JSON.stringify([[['Fbv4je', inner, null, '1']]]));
4. Try It Live Right Now (Zero Login / Zero Install)
- Free Instant Web Decoder (No Login, Excel-Safe CSV): Google News URL Decoder & Live Story Extractor
-
Zero-Dependency MIT CLI (
npx): github.com/wonderpick/google-news-url-decoder-cli - Need 100–5,000+ Full-Text Articles + 512-Token RAG Chunks + Crisis Triggers? Our hosted 128 MB pure-HTTP Actor (Google News Full-Text RAG & Trigger Monitor) runs free on Apify's $5/mo starter credits (~3,300 full-text articles, $0 proxy).
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.