SerpBase
Back to Blog

Google Search Result Dates via API: Read the Published Date of Each Result

Google shows a date on some results; the API returns it as the date field. In 27 searches 39% of results had one. How to parse and sort by it.

December 4, 2026
By SerpBase Team3 min read

Short answer: when Google shows a date next to a result, /google/search returns it in that result's date field, as text such as "Oct 17, 2025". Not every result has one: across 27 searches we ran on 4 December 2026, 85 of 220 organic results (39%) carried a date.

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":"python 3.14 release notes","gl":"us","hl":"en"}'

What came back

For "python 3.14 release notes", 5 of 9 results had a date:

{
  "status": 0,
  "credits_charged": 1,
  "organic": [
    {
      "position": 1,
      "title": "https://docs.python.org/release/3.14.8/",
      "display_link": "https://docs.python.org"
    },
    {
      "position": 5,
      "title": "Python 3.14 Pre-Release",
      "display_link": "https://news.ycombinator.com",
      "date": "Jan 13, 2025",
      "published_at": "Jan 13, 2025"
    },
    {
      "position": 7,
      "title": "🚀 Python 3.14 is out — here's what you really need to know",
      "display_link": "https://www.linkedin.com",
      "date": "Oct 17, 2025",
      "published_at": "Oct 17, 2025"
    }
  ]
}

published_at holds the same text as date. How often a date appears depends on the kind of page that ranks:

query (4 December 2026)resultswith a date
flat feet running shoes (desktop)97
how to change a flat tire (desktop)76
python 3.14 release notes95
best laptops 2026 (desktop)104
coffee shops82
events in new york this weekend80

Articles, blog posts and forum threads usually have one; home pages, documentation, store and listing pages usually do not.

Python: newest first, and how old page one is

import datetime, requests

def parse_date(text):
    try:
        return datetime.datetime.strptime(text, "%b %d, %Y").date()
    except (TypeError, ValueError):
        return None          # no date, or a relative one such as "3 days ago"

r = requests.post(
    "https://api.serpbase.dev/google/search",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={"q": "python 3.14 release notes", "gl": "us", "hl": "en"},
    timeout=60,
).json()
if r["status"] != 0:
    raise SystemExit(r.get("error"))

dated = [(parse_date(o.get("date")), o) for o in r["organic"]]
dated = [(d, o) for d, o in dated if d]
today = datetime.date.today()

for d, o in sorted(dated, key=lambda x: x[0], reverse=True):
    print(d.isoformat(), f"{(today - d).days:>5} days  #{o['position']:<3}", o["title"][:60])

print(f"{len(dated)} of {len(r['organic'])} results have a date")
if dated:
    ages = sorted((today - d).days for d, _ in dated)
    print("median age:", ages[len(ages) // 2], "days")

The median age of page one is a useful number on its own: a low value means Google prefers fresh pages for that query, so an old article will need updating to compete.

Things that trip people up

  • A missing date is normal. 61% of the results in our runs had none. Read it with .get("date").
  • It is the date Google displays, taken from the page: sometimes the publish date, sometimes the last update. It is not when Google crawled the page.
  • The text follows the result language. With "hl":"en" every date we saw was in the form Jan 13, 2025. Very recent pages can show a relative form ("3 days ago") instead; the function above returns None for those, so handle them if freshness matters to you.
  • Reading dates is not filtering by date. To get only recent results, use the date filter (tbs) or the before: and after: operators.

Cost and docs

A Google search is 1 credit, $0.25–$0.50 per 1,000 depending on the pack. Failed requests are not charged, and new accounts get 500 free credits.