Dev.to WebDev 🛠 Dev 👁 0 📖 2 min read

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

  1. The ~590 KB HTML Offset Trap: Google now places data-n-a-id, data-n-a-ts, and data-n-a-sg near 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.
  2. HTTP 429 on 1-by-1 RPC Calls: Calling batchexecute individually for 50 articles triggers rate limits fast. Batching 5 tokens into a single f.req POST cuts RPC requests by 5x.
  3. EU consent.google.com Redirects: From EU cloud IPs, Google often returns a 302 to consent.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)

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.