SerpBase
Back to Blog

Google Finance API: Get Stock Quotes from Google as JSON

Google retired its Finance API. One POST returns the stock card Google shows: price, change, ranges, market cap, P/E and after-hours, plus the results page. Tested.

November 25, 2026
By SerpBase Team2 min read

Short answer: POST a company name or ticker to /google/finance and you get the stock card Google shows as JSON — price, change, open, day and 52-week range, market cap, P/E and after-hours price — plus the rest of the results page.

Google retired its Finance API years ago and Google Finance has no official endpoint. When you only need the quote snapshot that Google itself displays for "apple stock", reading that search page is the simplest route.

The request

curl -X POST 'https://api.serpbase.dev/google/finance' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"query":"apple stock"}'

What comes back

We ran "apple stock" and "NVDA" on 25 November 2026 (Beijing time), after the US close. Both returned in 3–4 seconds. The finance object for NVDA:

FieldValue we got
title, exchangeNVIDIA Corp, NASDAQ: NVDA
price155.38 USD
change−9.67 (−5.86%)
open, previous_close159.10, 165.05
day_range, year_range150.50 - 159.92, 145.71 - 243.37
market_cap, pe_ratio3.74T, 16.70
after_hours_price, after_hours_change151.95, −3.43 (2.21%)
as_ofClosed: Nov 24, 8:01 PM EST

The same response also carries the page around the card: knowledge_graph (for Apple: CEO, founded, headquarters, employees), organic results (8 for NVDA), people_also_ask, top_stories and related_searches.

Python: a small watchlist

import requests

def quote(q):
    r = requests.post(
        "https://api.serpbase.dev/google/finance",
        headers={"X-API-Key": "YOUR_API_KEY"},
        json={"query": q},
        timeout=60,
    ).json()
    if r["status"] != 0:
        return q, None
    return q, r.get("finance")

for t in ["NVDA", "apple stock"]:
    q, f = quote(t)
    if f:
        print(f["exchange"], f["price"], f["change"], f["as_of"])

Things that trip people up

  • Values are strings as displayed, including the Unicode minus sign − and suffixes like T. Strip and convert before doing maths.
  • Check as_of. Outside trading hours you get the close and an after-hours price, not a live quote.
  • This is a snapshot, not a market feed. It is fine for dashboards and research, not for trading.
  • Ambiguous names: send the ticker (NVDA) rather than a word that could be a product.

Related endpoints

For news about a company, use Google News search; for search interest over time, Google Trends.

Cost and limits

Each request costs 1 credit; failed requests are not charged. Responses are HTTP 200 with a status field (0 = success). Credits cost $0.25–$0.50 per 1,000 depending on the plan; new accounts get 500 free credits without a card.