SerpBase
Back to Blog

Currency Converter API from Google Search: Rates as JSON

Search 100 usd to eur and Google's currency converter card comes back as featured_snippet. Three pairs tested, with a parser for the converted amount.

December 2, 2026
By SerpBase Team2 min read

Short answer: send the conversion as a normal query — 100 usd to eur — to /google/search. Google's currency converter comes back as featured_snippet with the converted amount in one sentence, for 1 credit.

The request

curl -X POST 'https://api.serpbase.dev/google/search' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"q":"100 usd to eur","gl":"us","hl":"en","device":"desktop"}'

What came back

Three conversions on 2 December 2026:

QueryLayoutfeatured_snippet.snippet
100 usd to eurdesktop100 United States Dollar equals 92.10 Euro
50 gbp to usdphone50 Pound sterling equals 65.08 United States Dollar
1000 jpy to usddesktop1000 Japanese Yen equals 6.22 United States Dollar

The block itself:

"featured_snippet": {
  "title": "Currency Converter",
  "snippet": "100 United States Dollar equals 92.10 Euro",
  "position": 1
}

title is always "Currency Converter" for this card, which is how you tell it apart from an ordinary featured snippet. The rest of the answer is the usual organic list (finance and converter sites) and related_searches.

Python: get the rate as a number

import re, requests

def convert(amount, src, dst):
    r = requests.post(
        "https://api.serpbase.dev/google/search",
        headers={"X-API-Key": "YOUR_API_KEY"},
        json={"q": f"{amount} {src} to {dst}", "gl": "us", "hl": "en",
              "device": "desktop"},
        timeout=60,
    ).json()
    if r["status"] != 0:
        raise SystemExit(r.get("error"))
    card = r.get("featured_snippet") or {}
    if card.get("title") != "Currency Converter":
        return None
    m = re.search(r"equals ([\d,.]+)", card["snippet"])
    return float(m.group(1).replace(",", "")) if m else None

value = convert(100, "usd", "eur")
print(value, "EUR; rate", value / 100 if value else None)

Things that trip people up

  • Two decimals. The card rounds to cents, so convert a large amount (100 or 1000) and divide if you need the rate with more precision.
  • It is a display rate. Google's converter is for reference, not a dealing rate; do not settle payments on it.
  • The words follow hl. With another interface language the sentence and currency names are translated; keep hl: "en" if you parse with a regex like the one above.
  • Codes or names both work in the query ("usd", "US dollars"); codes are the most predictable.

Related

Cost and docs

A Google search is 1 credit, with or without operators. Failed requests are not charged, and new accounts get 500 free credits.