SerpBase
Back to Blog

Google News API by Country: Local Editions with gl and hl

Send gl and hl with a Google News request to get another country's edition. Tested UK, India, Germany and Japan: different publishers, language and time text.

December 2, 2026
By SerpBase Team2 min read

Short answer: send gl (country) and hl (language) with your /google/news/search request. Each pair gives you that country's Google News edition — different publishers, different stories and a different language — for 1 credit per request.

The request

curl -X POST 'https://api.serpbase.dev/google/news/search' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"q":"Inflation","gl":"de","hl":"de"}'

Four editions, same topic

On 2 December 2026 we asked four editions about inflation (the Japanese query in Japanese). Each returned 10 stories:

gl / hlQueryFirst publishersTime text
gb / eninflationThe Guardian, BBC, Reuters, Trustnet"15 hours ago"
in / eninflationBloomberg, WSJ, CNBC, Reuters"1 day ago"
de / deInflationtagesschau.de, DIE ZEIT, ARD Mediathek, FAZ"vor 15 Stunden"
jp / jaインフレBusiness Insider Japan, Yahoo!ファイナンス, 日本経済新聞"39 分前"

The German edition was all German outlets (also Handelsblatt, STERN.de, Spiegel, ZDFheute); the British one mixed UK papers with Reuters, CNBC and The Economist. One German story, trimmed:

{
  "rank": 1,
  "title": "Inflation im Euroraum fällt auf 3,7 Prozent",
  "link": "https://www.tagesschau.de/wirtschaft/konjunktur/inflation-eurozone-november-100.html",
  "source": "tagesschau.de",
  "published_at": "vor 15 Stunden"
}

Python: one keyword across several markets

import requests

EDITIONS = [("us", "en", "inflation"), ("gb", "en", "inflation"),
            ("de", "de", "Inflation"), ("jp", "ja", "インフレ")]

for gl, hl, q in EDITIONS:
    r = requests.post(
        "https://api.serpbase.dev/google/news/search",
        headers={"X-API-Key": "YOUR_API_KEY"},
        json={"q": q, "gl": gl, "hl": hl},
        timeout=60,
    ).json()
    if r["status"] != 0:
        print(gl, "error:", r.get("error"))
        continue
    print(f"== {gl}/{hl}")
    for n in r.get("news", [])[:5]:
        print(" ", n.get("source"), "-", n["title"])

Things that trip people up

  • Translate the keyword yourself. gl:"jp" with an English query mostly returns English-language coverage; ask in the market's language to see what local readers see.
  • The time text is localised. published_at follows hl: "15 hours ago", "vor 15 Stunden", "39 分前". Record your own request time if you need a timestamp.
  • hl alone does not move you. gl decides the edition; hl decides the interface language. Send both.
  • Some links can be Google redirect addresses. When a story's link starts with google.com/goto, source still names the publisher.

Related

Cost and docs

Each news request is 1 credit. Failed requests are not charged, and new accounts get 500 free credits.