How to Scrape Google Jobs Using Python
AI Summary: Self-built Google Jobs scrapers often return no listings at all. This guide shows how to scrape Google Jobs with Python using ScrapeBadger's API, then dedupe, verify and schedule the results.

A Python Google Jobs scraper can get HTTP 200 and still return zero jobs. In our tests, HTTP clients, a popular open-source scraper, and headless Chromium got none, even from residential IPs. Google's listings need checking too. One listing had 8 apply links, and 5 led to other jobs.
Google Jobs, or Google for Jobs, is the job search feature in Google Search. It aggregates postings from job boards and employers.
This guide builds a daily job feed with Python and ScrapeBadger's Google Jobs API. The feed collects every results page, then verifies each listing against its source page.
TL;DR
Self-built scrapers we tested got zero jobs. HTTP clients got pages requiring JavaScript. After one headless Chromium request, Google briefly blocked our IP address.
ScrapeBadger's Google Jobs API returns listings as JSON. With
mode="serp"(Google Search), the API returned every page of our searches.Check each listing against its source page. One Anthropic listing on Google linked to another company's job. ScrapeBadger's Web Scraping API opened source pages and found dates for 17 undated listings.
A listing missing from Google isn't always closed. Within 8 days, 251 of 338 listings left Google's results, but 17 of 40 checked stayed open.
Why common self-built Google Jobs scrapers get zero listings
Google Jobs requires JavaScript and runs bot detection, so none of the self-built clients in the table below got a listing. The table covers common Python clients, a default headless browser, and a stealth browser through residential proxies, but not every proxy pool or CAPTCHA-solving service. The first 4 clients ran from a residential IP address in India. A regular Chrome browser on that address loaded the same search, so the address itself wasn't blocked:
Client | What Google returned |
|---|---|
| HTTP 200, about 93 KB, a page that requires JavaScript, with no listings |
| The same page that requires JavaScript |
JobSpy 1.5.0, the | The message |
Playwright's default headless Chromium | Google's "unusual traffic" CAPTCHA page ( |
Patchright, a stealth Chromium, through one provider's US residential proxies | Google's "unusual traffic" CAPTCHA page on the first request, on all 11 IPs |
The httpx and curl_cffi responses were soft blocks, which are pages that return HTTP status 200 but have no results. Their only visible text was a <noscript> block that redirects to Google's /httpservice/retry/enablejs page and says "Please click here if you are not redirected within a few seconds." So check each response for job data, not only for status 200, and treat the enablejs link as a soft block. Google has required JavaScript on its main search results since January 2025, as our guide to scraping Google search results with Python shows.
Older URLs and popular libraries don't change the result. The earlier ibp=htl;jobs URL redirected to the current one (udm=8) or to regular web results. JobSpy's maintainers removed Google from the job sites it searches by default in October 2026.
One self-built scraper can interrupt Google Search for other people who share its IP address, such as everyone on an office network. After a single Playwright request, Google flagged the IP address the request came from. A regular Chrome browser on that IP address got the same "unusual traffic" page 5 seconds later. The browser loaded the listings again about 6 minutes later.
A stealth browser on residential proxies didn't get listings either. Through the same proxies, an ordinary web search for "weather" also got the "unusual traffic" page, so the block wasn't specific to Google Jobs. Our guide to scraping Google search results without getting blocked explains how Google rate-limits even residential IP addresses.
A regular browser loads the listings, but it's still hard to use for a feed. Later pages load only through infinite scroll, and Google localizes results to the browser's location. A Chrome session in India showed jobs in India, even when the URL had gl=us, Google's country parameter.
Scrape Google Jobs with ScrapeBadger's Google Jobs API
ScrapeBadger runs each Google Jobs search for you, so the requests to Google don't come from your network. The API returns the listings to your Python code as JSON, with a pagination token for the next page. To get an API key, sign up for a ScrapeBadger account, which comes with free credits and needs no credit card. Copy your API key from the API Keys page of the dashboard.

The scripts need Python 3.10 or newer. In your project folder, create a virtual environment, install ScrapeBadger's official Python SDK, and set your API key:
python3 -m venv .venv
source .venv/bin/activate # Windows: py -m venv .venv, then .venv\Scripts\activate
pip install "scrapebadger>=0.84.0" # 0.84.0 retries concurrency-limit 429s itself
export SCRAPEBADGER_API_KEY="your_api_key" # from the API Keys page of your ScrapeBadger dashboard
# Windows PowerShell: $env:SCRAPEBADGER_API_KEY = "your_api_key"
# For a one-off run without the virtual environment: uv run --with "scrapebadger>=0.84.0" google_jobs_search.pyThe script below searches for data engineer jobs in Austin, Texas, and prints the first 5 listings. Save it as google_jobs_search.py:
import asyncio
import os
from scrapebadger import ScrapeBadger
async def main():
async with ScrapeBadger(os.environ["SCRAPEBADGER_API_KEY"]) as client:
page = await client.google.jobs.search(
"data engineer",
mode="serp", # Google Jobs in Google Search; the default is Google Careers
location="Austin, TX",
gl="us",
hl="en",
)
for job in page["jobs"][:5]:
posted = job["detected_extensions"].get("posted_at") or "-"
via = job["via"] or "-"
print(
f"{job['title'][:38]:<38} {job['company_name'][:18]:<18} "
f"{via[:16]:<16} {posted:<12} {len(job['apply_options'])} links"
)
print("next page token:", bool(page["pagination"]["next"]))
if __name__ == "__main__":
asyncio.run(main())Run it with python google_jobs_search.py. If it raises KeyError: 'SCRAPEBADGER_API_KEY', set the key in the terminal where you run the script. The output lists each job's title, company, source site, posting age, and number of apply links, then whether a next page exists:
Data Engineer with Spark, Scala, PySpa Infosys Indeed 1 day ago 6 links
Engineer II, Enterprise Data Lakehouse LPL Financial LPL Financial 3 days ago 8 links
Senior AI Data Engineer - GPSC Insigh General Motors General Motors C 21 days ago 8 links
THECB - ITS Principal Data Engineer (S Texas Health and H Ladders 1 day ago 3 links
Associate Data Engineer, AI Studio 810 Visa Technolog Workday 2 days ago 8 links
next page token: Truemode="serp" returns the listings that Google Jobs shows in Google Search. The default mode, "rpc", searches Google's own job openings on Google Careers. With gl="us", ScrapeBadger geolocates the search to the US, and location narrows it to a city. For another country, set gl to that country's code, because a London search returned 107 listings with gl="gb" but only 70 with gl="us".
Each page holds about 10 listings, and each page is one API request. Plan a feed with these measurements and ScrapeBadger's documentation:
What you're planning | Measured value, or where to find it |
|---|---|
Price | Billed per page of results, not per job; failed requests aren't billed (pricing) |
Cost of a run before you start it | The quote endpoint is a dry run that returns a call's cost without running it |
Pages in one run of 4 searches (2 roles × 2 cities) | 59 |
Listings per search | 74 to 183 listings on 9 to 20 pages across our feed runs, all that Google returned |
Max concurrency (requests running at once) | Scales with your plan; see the concurrency page |
Opening an apply link | One Web Scraping API request, which follows the link's redirects to the source page, including a page that returns 404 |
To cover more jobs, add keyword and city pairs instead of requesting more pages. Google had no more results past page 20 in any of our searches. The Google Jobs API reference lists the filters, such as date_posted for recent listings.
What a Google Jobs listing contains
Each listing in page["jobs"] includes these fields:
Field | What it contains | What to check |
|---|---|---|
| Google's ID for the listing | Use it as the main deduplication key |
| The values on Google's job card | Remote jobs can show "Anywhere" as the location |
| The site Google names as the listing's source | It names one source, but a merged listing can have several |
| The full text, including the part that Show more expands | It can contain personal data, such as recruiters' names and email addresses |
| The posting age, salary text, employment type ( | The age is relative, and the salary is unstructured text |
| Each apply button's label and link | Open a link to reach the source page |
| Google's lists of qualifications, responsibilities, and benefits | It can be |
Normalize the posting age and the salary indetected_extensions before you store them in a database. The feed script in the next section normalizes both.
Google's posting age is relative and is often missing. Google shows ages such as "3 days ago" instead of dates, so subtract the age from the request timestamp to get an absolute date. In a US-wide "data engineer" search, Google showed no age for 65 of 137 unique listings. A later script, verify_jobs.py, can add dates for those listings from their source pages.
The salary is unstructured text in the searcher's locale. Set hl, Google's language parameter, to "en", and use the same gl for every search that you parse together. A Chrome session in India showed one US salary as "$95K–$1.12L a year" in lakh, the Indian unit for 100,000. With gl="us" and hl="en", the API returned Google's salary text in the "90K–125K a year" format. Google showed no salary for 66 of the same 137 listings.
Collect every page and remove duplicate listings
Each response includes pagination.next, a pagination token for the next page, until Google has no more results. Google's later pages can repeat listings from earlier pages, so deduplicate as you collect. A US-wide "data engineer" search with no location ended after 18 pages, and 15 of the 152 results that Google returned were duplicates.
The pipeline has 2 scripts that share one file, jobs.json. The first collects listings, and the second checks each listing against its source page:

The script below collects each search and saves its listings to jobs.json:
Searches. It starts with one search and has 3 more commented out. For cities outside the US, set
COUNTRYto the country'sglcode, such as"gb"for London.Pages. It follows the next-page token for up to
MAX_PAGESpages per search. Each search took 9 to 20 pages, soMAX_PAGESis 25, which leaves a margin of 5 pages. If a search reachesMAX_PAGES, the script adds "stopped at MAX_PAGES" to its output line. The warning matters because listings on later pages would look as if they had left Google's results.Volume check. It stops without saving when a search returns under
MIN_SHARE(half) of its last run's listings. Without this check, the missing listings would look as if they had left Google's results. Half is low enough for normal variation, because in a second run 13 hours later, each search's page count changed by 1 page at most. If Google really has fewer jobs for a search, setMIN_SHAREto 0 for one run.Normalization and redaction. It converts Google's posting age to an absolute date and the salary text to numbers. It redacts email addresses and US phone numbers in descriptions as
[email]and[phone].Storage. It stores every listing under its
job_id, withfirst_seenandlast_seentimestamps. These timestamps show which listings are new and which left Google's results.
For our run, we uncommented the 3 extra searches, for 4 searches and 59 pages in all. Before you uncomment them, check their cost with the quote endpoint. Save the script as collect_jobs.py:
import asyncio
import json
import os
import re
from collections import Counter
from datetime import datetime, timedelta, timezone
from pathlib import Path
from scrapebadger import InsufficientCreditsError, RateLimitError, ScrapeBadger
SEARCHES = [ # (keywords, place); each page of about 10 jobs is one request
("data engineer", "San Francisco, CA"),
# Add more searches once the first run works:
# ("data engineer", "New York, NY"),
# ("analytics engineer", "San Francisco, CA"),
# ("analytics engineer", "New York, NY"),
]
COUNTRY = "us" # Google's gl code for the searches' country; for UK cities, "gb"
MAX_PAGES = 25 # per search
STORE = Path("jobs.json") # every listing seen so far, keyed by Google's job_id
MIN_SHARE = 0.5 # stop if a search returns under half of its last run's listings
AGE = re.compile(r"(\d+)\s+(minute|hour|day|week|month)s?\s+ago")
DAYS = {"minute": 1 / 1440, "hour": 1 / 24, "day": 1, "week": 7, "month": 30}
# Google's salary text, such as "155K–240K a year" or "£30k–£50k a year"
SALARY = re.compile(
r"([A-Z]*\$|[€£])?(\d[\d.,]*)([KkMm]?)(?:\s*[–-]\s*(?:[A-Z]*\$|[€£])?(\d[\d.,]*)([KkMm]?))?"
r"\s+an?\s+(hour|day|week|month|year)"
)
SCALE = {"": 1, "K": 1_000, "M": 1_000_000}
EMAIL = re.compile(r"[\w.+-]+@[\w-]+(?:\.[\w-]+)+")
PHONE = re.compile(r"\(?\b\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}\b") # US phone numbers
def posted_date(posted_at: str | None, fetched: datetime) -> str | None:
"""Turn Google's "3 days ago" into a date, using the time of the request."""
match = AGE.search(posted_at or "")
if not match:
return None
days = int(match.group(1)) * DAYS[match.group(2)] # a month counts as 30 days
return (fetched - timedelta(days=days)).date().isoformat()
def salary_range(text: str | None) -> dict | None:
"""Turn Google's salary text into numbers, for example min 155000."""
match = SALARY.search(text or "")
if not match:
return None
currency, low, low_x, high, high_x, period = match.groups()
low = float(low.replace(",", "")) * SCALE[low_x.upper()]
high = float(high.replace(",", "")) * SCALE[high_x.upper()] if high else low
# No symbol means the local currency of the search, USD with COUNTRY = "us"
local = "USD" if COUNTRY == "us" else None
return {"min": low, "max": high, "period": period, "currency": currency or local}
def without_contacts(text: str | None) -> str | None:
"""Replace email addresses and US phone numbers in a description."""
return PHONE.sub("[phone]", EMAIL.sub("[email]", text)) if text else text
async def fetch_search(client, keywords, place) -> tuple[list, bool]:
"""Return (pages, complete) for one search, at most MAX_PAGES pages."""
pages, token, waits = [], None, 0
while len(pages) < MAX_PAGES:
try:
page = await client.google.jobs.search(
keywords,
mode="serp",
location=place,
gl=COUNTRY,
hl="en",
next_page_token=token,
)
except RateLimitError as error: # a 429 that outlasted the SDK's own retries
waits += 1
if waits > 5:
raise SystemExit("still rate limited; jobs.json not updated") from None
await asyncio.sleep(max(error.retry_after, 30))
continue
except InsufficientCreditsError: # stop before saving a partial run
raise SystemExit("out of credits; jobs.json not updated") from None
pages.append((page, datetime.now(timezone.utc)))
token = page["pagination"]["next"]
if not token: # Google has no more results for this search
return pages, True
return pages, False
async def main():
store = json.loads(STORE.read_text()) if STORE.exists() else {}
run = datetime.now(timezone.utc).isoformat(timespec="seconds")
last_run = max((row["last_seen"] for row in store.values()), default="")
before = Counter( # unique listings per search in the last run
tuple(search)
for row in store.values()
if row["last_seen"] == last_run
for search in row["searches"]
)
print(
f"searches to collect: {len(SEARCHES)}, up to {MAX_PAGES} pages each",
flush=True,
)
async with ScrapeBadger(os.environ["SCRAPEBADGER_API_KEY"]) as client:
for keywords, place in SEARCHES:
pages, complete = await fetch_search(client, keywords, place)
unique = len({job["job_id"] for page, _ in pages for job in page["jobs"]})
if unique < before[keywords, place] * MIN_SHARE:
# A short run would make its missing listings look as if they left Google
raise SystemExit(
f"{keywords} in {place}: {unique} unique listings, "
f"{before[keywords, place]} in the last run; jobs.json not updated"
)
found = 0
for page, fetched in pages:
for job in page["jobs"]:
found += 1
ext = job["detected_extensions"]
row = store.setdefault(job["job_id"], {"first_seen": run})
if row.get("last_seen") != run: # the searches that return it now
row["searches"] = []
row.update(
job_id=job["job_id"],
title=job["title"],
company=job["company_name"],
location=job["location"],
via=job["via"],
salary=ext.get("salary"),
salary_range=salary_range(ext.get("salary")),
posted_on=row.get("posted_on")
or posted_date(ext.get("posted_at"), fetched),
apply_options=job["apply_options"],
description=without_contacts(job["description"]),
last_seen=run,
)
if [keywords, place] not in row["searches"]:
row["searches"].append([keywords, place])
# Listings past MAX_PAGES would later look as if they left Google
note = "" if complete else ", stopped at MAX_PAGES"
line = f"{keywords} in {place}: {found} listings, {len(pages)} pages{note}"
print(line, flush=True)
temp = STORE.with_suffix(".tmp") # write a copy, so a crash can't corrupt the file
temp.write_text(json.dumps(store, indent=1))
temp.replace(STORE)
seen_now = sum(1 for row in store.values() if row["last_seen"] == run)
new = sum(1 for row in store.values() if row["first_seen"] == run)
print(f"{seen_now} unique listings in this run, {new} new, {len(store)} stored")
if __name__ == "__main__":
asyncio.run(main())The script requests one page at a time, so it runs on every plan. The SDK retries an HTTP 429 from the concurrency limit for you, for example while another script uses the same account. If a 429 outlasts those retries, the script waits at least 30 seconds before each of up to 5 more tries, then stops without saving. For hundreds of searches, run several searches at once, up to your plan's max concurrency, as verify_jobs.py does with PARALLEL.
Run it with python collect_jobs.py. Each search prints its line after all its pages are collected. With all 4 searches, the run printed the listings and pages for each search, then the number of unique listings. By coincidence, the San Francisco data engineer search ended with the same totals as the US-wide search, 152 listings on 18 pages:
searches to collect: 4, up to 25 pages each
data engineer in San Francisco, CA: 152 listings, 18 pages
data engineer in New York, NY: 180 listings, 20 pages
analytics engineer in San Francisco, CA: 86 listings, 10 pages
analytics engineer in New York, NY: 94 listings, 11 pages
464 unique listings in this run, 464 new, 464 storedDuplicates come from overlapping searches and from repeated pages. The 4 searches returned 512 listings, 464 of them unique. Of the 48 duplicates, 21 appeared in both searches for the same city, and 27 came from later pages of the same search.
Deduplicating by Google's job_id doesn't find every duplicate, so when exact counts matter, also deduplicate on company, title, and location. Among the 464 listings, 8 pairs had the same company and title under different job IDs, and some of these pairs named different cities. The other pairs were exact duplicates in title, company, location, source site, and posting date, such as Capital One's Senior Staff Data Engineer listing.
salary_range returned numbers for all 886 salary strings that we collected, 369 of them distinct. It also keeps the currency, which matters even in a US search. One San Francisco listing, a Motive analytics engineer job via JobLeads, showed "MX$900K–MX$1.2M a year" in Mexican pesos. Text in another locale, such as the lakh string "$95K–$1.12L a year" from India, returns None instead of a wrong number.
Google's results also vary between identical requests. When page 1 of one search was requested twice, about 10 minutes apart, only 6 of its 10 listings were the same. That's why a listing missing from one run isn't always a closed job.
Check each listing against its source page
Google merges postings from several sites into one listing when it treats them as one job. Most merged listings described one job, but some mixed different jobs. For an EY data engineer listing in Hartford, Connecticut, Google showed 8 apply links. The screenshot shows 3 of them in the job details panel:

Each apply link led to one of these pages:
EY listing's apply link | Page it led to |
|---|---|
The same job | |
Nexxt, Lensa, Native American Talent, BeBee | A different EY job, Lead AI Security Engineer |
A job at another company, The Hartford | |
Jobrapido | HTTP 404 |
Snagajob | A page without the job's details |
The first apply link usually leads to the job, but links after it need verification before your feed stores one as the job's canonical URL. In a US-wide data engineer search, the first link pointed to the site that via names in all 152 results. In a separate check of 23 first links, 22 pages showed the listing's job title, and 1 showed only a generic title.
Many source pages embed schema.org JobPosting data as JSON-LD, the structured data that Google asks job sites to publish for Google Jobs. The script below opens up to 2 apply links for each listing through ScrapeBadger's Web Scraping API. It keeps Google's order, so it starts with the site that via names. It compares each page's JobPosting title with the listing's title and records the page's posting date, closing date, and salary.
For a match, both titles need the same seniority, such as Senior, and the page's title needs the listing's role keywords, such as Data Engineer. When the page names a company, that name must share a word with the listing's company. On 39 title pairs that we labeled by hand, the title comparison agreed with all 39 labels. The company rule matters, because 2 of those pages had the same title at another company.
Each run checks up to BATCH listings, with up to PARALLEL requests at once, and later runs check the rest. It checks confirmed listings that left Google's results first, then confirmed listings due for their weekly recheck, then new listings, and then unchecked ones. If you search roles other than engineering, replace the role keywords in GENERIC first. Save the script as verify_jobs.py in the same folder as jobs.json:
import asyncio
import html
import json
import os
import re
from collections import Counter
from datetime import datetime, timedelta, timezone
from pathlib import Path
from scrapebadger import (
AuthenticationError,
InsufficientCreditsError,
RateLimitError,
ScrapeBadger,
ScrapeBadgerError,
)
STORE = Path("jobs.json") # written by collect_jobs.py
MAX_LINKS = 2 # apply links to open per listing, until one page confirms the job
BATCH = 50 # listings to check per run; keep it above each run's new listings
RECHECK_DAYS = 7 # recheck confirmed listings that Google still shows; 0 disables it
PARALLEL = 5 # most requests to run at once; your plan's max concurrency caps it
LD_JSON = re.compile(
r"<script[^>]*ld\+json[^>]*>(.*?)</script>", re.DOTALL | re.IGNORECASE
)
LEVELS = {"intern", "junior", "entry", "associate", "mid", "senior", "staff", "lead"}
LEVELS |= {"principal", "manager", "director", "head", "vp", "svp", "chief"}
ALIASES = {"sr": "senior", "jr": "junior"}
# Role words for engineering titles; replace them when you search other roles
GENERIC = {"data", "engineer", "engineering", "software", "developer"}
NOISE = {"remote", "hybrid", "onsite", "on", "site", "us", "usa", "and", "the", "of"}
NOISE |= {"for", "to", "in", "a", "at", "with"}
LEGAL = {"inc", "llc", "ltd", "plc", "corp", "corporation", "co", "company", "group"}
def words(text: str) -> list[str]:
"""Lowercase words, without notes in parentheses."""
text = re.sub(r"\([^)]*\)", " ", html.unescape(text or "")).lower()
found = re.findall(r"[a-z0-9]+", text)
return [ALIASES.get(w, w) for w in found if w not in NOISE]
def same_job(listing: str, page: str) -> bool:
"""True when both titles name the same level, role, and specific words."""
a, b = words(listing), words(page)
if {w for w in a if w in LEVELS} != {w for w in b if w in LEVELS}:
return False # for example, Staff on Google and Entry Level on the page
if not {w for w in a if w in GENERIC} <= set(b):
return False # for example, Data Engineer on Google and Analyst on the page
key_a = {w for w in a if w not in LEVELS | GENERIC}
key_b = {w for w in b if w not in LEVELS | GENERIC}
return not key_a or key_b <= key_a or len(key_a & key_b) > len(key_a) / 2
def same_company(listing: str, page: str) -> bool:
"""True when the page names no company or shares a word with the listing's."""
page_words = set(words(page)) - LEGAL
return not page_words or bool(page_words & (set(words(listing)) - LEGAL))
def job_posting(page_html: str) -> dict:
"""Return the schema.org JobPosting that the page embeds, if any."""
for block in LD_JSON.findall(page_html):
try:
data = json.loads(block)
except ValueError:
continue
if not isinstance(data, (dict, list)): # valid JSON, but not an object
continue
items = data if isinstance(data, list) else data.get("@graph", [data])
for item in items:
if isinstance(item, dict) and item.get("@type") == "JobPosting":
return item
return {}
async def scrape(client, slots, url):
async with slots: # limits how many requests run at once
return await client.web.scrape(url)
async def open_link(client, slots, job, option) -> dict:
"""Open one apply link and compare the page's JobPosting with the listing."""
link = {"source": option["source"], "status": "not checked"}
for _ in range(5): # give up on a link that stays rate limited
try:
page = await scrape(client, slots, option["link"])
break
except RateLimitError as error:
await asyncio.sleep(max(error.retry_after, 30))
except (AuthenticationError, InsufficientCreditsError):
raise # an account problem, not a page problem: stop the run
except ScrapeBadgerError: # no page to compare, so the link stays "not checked"
return link
else:
return link
if page.status_code in (404, 410):
return dict(link, status="gone")
posting = job_posting(page.content or "")
if not isinstance(posting.get("title"), str): # missing, or not plain text
return link
title = html.unescape(posting["title"])
company = posting.get("hiringOrganization") or {}
company = company.get("name", "") if isinstance(company, dict) else company
company = company if isinstance(company, str) else ""
match = same_job(job["title"], title) and same_company(job["company"], company)
return dict(
link,
status="same job" if match else "other job",
page_title=title,
page_company=company,
page_url=posting.get("url"), # the job page's own URL, when it states one
date_posted=posting.get("datePosted"),
valid_through=posting.get("validThrough"),
base_salary=posting.get("baseSalary"),
)
async def verify(client, slots, job):
# Keep Google's order: the first link is the site that `via` names
links = []
for option in job["apply_options"][:MAX_LINKS]:
links.append(await open_link(client, slots, job, option))
if links[-1]["status"] == "same job":
break
found = {link["status"] for link in links}
status = next((s for s in ("same job", "other job") if s in found), None)
if found == {"gone"}: # one site's 404 can come while another still lists the job
status = "gone"
# With no readable page, the job's state is unknown, so it leaves the feed
job["links"], job["status"] = links, status or "not checked"
page = next((link for link in links if link["status"] == "same job"), None)
day = str((page or {}).get("date_posted") or "")[:10]
if re.fullmatch(r"\d{4}-\d{2}-\d{2}", day) and not job.get("posted_on"):
job["posted_on"] = day # the source page's date, when Google showed no age
async def main():
store = json.loads(STORE.read_text()) if STORE.exists() else {}
latest = max((job["last_seen"] for job in store.values()), default="")
new = [job for job in store.values() if "status" not in job]
# A listing that left Google's results can still be open, so ask its page
left = [
job
for job in store.values()
if job["last_seen"] < latest
and job.get("status") == "same job"
and job.get("checked", "") <= job["last_seen"]
]
# A listing with no readable page gets one more try per run while Google shows it
retry = [
job
for job in store.values()
if job.get("status") == "not checked"
and job["last_seen"] == latest
and job.get("checked", "") < latest
]
# A confirmed listing that Google still shows gets a recheck every RECHECK_DAYS
cutoff = datetime.now(timezone.utc) - timedelta(days=RECHECK_DAYS)
stale = [
job
for job in store.values()
if RECHECK_DAYS
and job.get("status") == "same job"
and job["last_seen"] == latest
and job.get("checked", "") < cutoff.isoformat(timespec="seconds")
]
todo = (left + stale + new + retry)[:BATCH] # listings in the feed first
print("listings to check:", len(todo), flush=True)
async with ScrapeBadger(os.environ["SCRAPEBADGER_API_KEY"]) as client:
account = await client.account.get_account_info()
slots = asyncio.Semaphore(min(PARALLEL, account["max_concurrency"]))
await asyncio.gather(*(verify(client, slots, job) for job in todo))
for job in todo:
job["checked"] = latest
temp = STORE.with_suffix(".tmp") # write a copy, so a crash can't corrupt the file
temp.write_text(json.dumps(store, indent=1))
temp.replace(STORE)
for status, count in Counter(job["status"] for job in todo).most_common():
print(f" {status:<12} {count}")
for job in todo:
for link in job["links"]:
if link["status"] == "other job":
print(
f"other job: {job['title'][:36]!r} at {job['company'][:16]!r} "
f"-> {link['page_title'][:36]!r} at {link['page_company'][:16]!r}"
)
if __name__ == "__main__":
asyncio.run(main())
Run it with python verify_jobs.py. It printed how many listings it would check. The 50 listings took 75 Web Scraping API requests, one for each apply link opened. After the batch finished, it printed a count for each result and the pairs it flagged for review:
listings to check: 50
same job 30
not checked 15
other job 5
other job: 'Data Engineer (1042) - Data Enableme' at 'City and County ' -> 'Data Enablement Operations Analyst (' at 'City and County '
other job: 'Data Engineer, GTM' at 'Anthropic' -> 'Autonomy Engineer, Data' at 'Humble Robotics'
other job: 'Data Architect / Data Engineering Le' at 'Accenture Plc' -> 'Entry Level - Financial Services Pro' at 'Equitable Adviso'
other job: 'Azure Data Engineer' at 'TechDigital' -> 'Azure Data Engineer' at 'Bright Vision Te'
other job: 'Partner 16, Data Engineer - Global P' at 'a16z' -> 'Partner 16, Data Engineer - Global P' at 'Andreessen Horow'
For 30 of the 50 listings, a source page confirmed the job, and the first apply link confirmed 22 of them. A single HTTP 404 didn't mean the job was gone. In 2 listings, the first page returned HTTP 404, but the second link still showed the job. So the script sets a listing's status to gone only when every page that it opened returned HTTP 404 or 410.
Of the 5 flags, 4 were true positives. Google's listing for an Anthropic data engineer job, for example, had an apply link to an Autonomy Engineer job at Humble Robotics. A day later, the listing's Lever button still opened that job:

Review the flags, because the feed excludes every listing whose status is other job. The fifth flag was a false positive, because a16z and Andreessen Horowitz are the same firm.
For the 15 unchecked listings, the script didn't get readable JobPosting data from the links it tried. The script retries them after each run of collect_jobs.py, as long as Google still shows them. To try more of each listing's apply links, increase MAX_LINKS. For pages without JobPosting data, our guide to scraping job listings with Python shows how to extract the fields from the page itself.
Every one of the 30 source pages had a datePosted value, and the pages added data that Google's listings lacked:
JobPosting field | Confirmed listings | What it adds to the feed |
|---|---|---|
| 30 of 30 | An absolute date for the 17 listings that had no age on Google |
| 21 of 30 | A closing date, so the feed can remove the listing when it expires |
| 19 of 30 | A structured salary with currency and pay period, including for 1 listing that had no salary on Google |
Where Google and the source page both had a value, they mostly agreed. Google's salary text matched the page's baseSalary for 17 of 18 listings, and posting dates matched within a day for 11 of 13. In the salary mismatch, Google showed $90K to $120K and the page showed $121,500 to $148,500. In the 2 date mismatches, the page dates were 8 and 14 days later than Google's.
Your feed is every row in jobs.json whose status is same job. When Google showed no posting age, verify_jobs.py copies the page's datePosted into posted_on. To open the feed in pandas:
import pandas as pd # pip install pandas
jobs = pd.read_json("jobs.json", orient="index")
feed = jobs[jobs["status"] == "same job"]
feed = feed.drop_duplicates(["company", "title", "location"]) # one job, two job IDs
feed.to_csv("jobs.csv", index=False) # a spreadsheet copy of the feed
To also keep the listings that the script couldn't check, filter with jobs["status"].isin(["same job", "not checked"]).
Recheck listings that leave Google's results
In our runs, most listings left Google's results within 8 days. An earlier run of the same 4 searches, which collected only the first 10 pages of each search, stored 338 unique listings. A run 8 days later that collected every page still found only 87 of them. Google showed 10 of the missing listings again under a new job_id, such as Rogo's Data Engineer: Analytics listing in New York.
Leaving Google's results didn't always mean that a job had closed. We opened the apply links that the earlier run stored for 40 of the missing listings:
Source page of a listing that left Google | Listings (of 40) |
|---|---|
The same job at the same company | 17 |
HTTP 404 or 410 | 8 |
No readable JobPosting data | 15 |
Listings that Google still showed could be wrong too. Of 40 such listings, 3 led to pages that returned HTTP 404 or 410, and 2 led to a different job. Google's listing for a Superhuman data engineer job linked to a Data Solutions Architect page.
Treat the source page, not Google's results, as the source of truth for whether a job is open. After a confirmed listing leaves Google's results, verify_jobs.py rechecks it one time, through the apply links in jobs.json. In a separate sample of 15 listings that Google still showed, links stored 8 days earlier still opened the job for 10. If a recheck finds no readable JobPosting data, the listing's status becomes not checked, so the feed keeps only jobs that their source page confirmed.
To find jobs that close while Google still shows them, verify_jobs.py also rechecks confirmed listings that stay in Google's results. It does this every RECHECK_DAYS days, 7 by default. Each recheck uses one Web Scraping API request per link that it opens. Set RECHECK_DAYS to 0 to disable these rechecks.
Run the feed on a schedule
To run the feed every day, open your crontab with crontab -e and add the entry below. It runs both scripts at 6:00 each morning, in the system time zone. Cron doesn't load your shell profile, so the entry loads your API key from a .env file in the feed's folder:
0 6 * * * cd /path/to/feed && . ./.env && { .venv/bin/python collect_jobs.py && .venv/bin/python verify_jobs.py; } >> feed.log 2>&1
The .env file holds one line, export SCRAPEBADGER_API_KEY="your_api_key". Run chmod 600 .env so only the file's owner can read it, and add .env and jobs.json to .gitignore. If collect_jobs.py exits with a nonzero status, as it does at its MIN_SHARE check, the entry skips verify_jobs.py. The entry appends both scripts' output and errors to feed.log.
To test the entry, run everything after 0 6 * * * in a terminal, then check feed.log. On Windows, run setx SCRAPEBADGER_API_KEY "your_api_key" once, then use Task Scheduler to run both scripts with .venv\Scripts\python.exe.
Run the feed on a machine that keeps jobs.json between runs. An ephemeral CI runner, such as a GitHub-hosted runner in GitHub Actions, starts without the file. Every listing would then look new, and none would count as having left Google's results. In CI, restore the file from persistent storage, such as an S3 bucket, before each run, and save it there after the run.
A JSON file suits a small feed. Ours reached 4.3 MB with 650 listings, because it keeps each description. For a larger feed, store the listings in a database such as SQLite.
Send Google Jobs results to an AI agent
Reduce each Google Jobs page to the fields that the agent needs before the page reaches the model's context window. ScrapeBadger can run a filter written in jq, a JSON query language, server-side at no extra credit cost. On one page of 10 Austin listings, the 5 fields in the examples below used 460 tokens with OpenAI's o200k_base tokenizer. Adding each listing's first apply link and job_id raised the same 10 listings to 3,323 tokens, because apply links are long URLs.
In an agent connected to ScrapeBadger's hosted Model Context Protocol (MCP) server, pass the filter in the jq argument of the call_endpoint tool. With these arguments, call_endpoint returned 10 Austin listings with 5 fields each:
{
"name": "google_jobs_search",
"params": {
"q": "data engineer",
"mode": "serp",
"location": "Austin, TX",
"gl": "us",
"hl": "en"
},
"jq": "[.jobs[] | {title, company: .company_name, via, posted_at: .detected_extensions.posted_at, salary: .detected_extensions.salary}]"
}
From your own Python code, send the search as a GET request to the API endpoint and put the filter in the _jq query parameter. Save this script as google_jobs_trimmed.py:
import os
import httpx # installed with the scrapebadger package
FIELDS = (
"[.jobs[] | {title, company: .company_name, via,"
" posted_at: .detected_extensions.posted_at, salary: .detected_extensions.salary}]"
)
response = httpx.get(
"https://scrapebadger.com/v1/google/jobs/search",
params={
"q": "data engineer",
"mode": "serp",
"location": "Austin, TX",
"gl": "us",
"hl": "en",
"_jq": FIELDS, # ScrapeBadger applies the filter server-side
},
headers={"x-api-key": os.environ["SCRAPEBADGER_API_KEY"]},
timeout=120,
)
response.raise_for_status()
jobs = response.json()
if isinstance(jobs, dict) and "_view_error" in jobs: # the jq filter failed
raise SystemExit(jobs["_view_error"])
print(len(jobs), "listings")
print(jobs[0])
Run it with python google_jobs_trimmed.py. It printed 10 listings, then the first listing with the same 5 fields:
Run it with python google_jobs_trimmed.py. It printed 10 listings, then the first listing with the same 5 fields:
If the agent reads job descriptions, for example because you added description to the fields, treat them as untrusted input. A description can contain a prompt injection, so read descriptions in a step without tools, and keep API keys out of the agent's context.
Collect job data responsibly
Google and job sites run bot detection because bots can slow their pages for human visitors. Bots can also send spam and fake applications. A job feed should collect only what it needs and follow each source's rules:
Minimize personal data in the feed. Job descriptions can contain recruiters' names, email addresses, and phone numbers.
collect_jobs.pyredacts email addresses and US phone numbers before it stores a description. For other countries, extend itsPHONEpattern or use a library such as phonenumbers. Keep the names only if you have a lawful basis to process them under privacy laws such as the GDPR.Check each job site's terms of service and robots.txt. Read them before you scrape a site's pages at scale. When your own code sends the requests, name your bot and a contact URL in its User-Agent header, such as
JobFeedBot/1.0 (+https://example.com/bot).Use an official feed when one exists. If you need one employer's openings, check whether its applicant tracking system (ATS) has a public job board. Greenhouse, Lever, and Ashby offer public job board APIs that need no API key, such as Greenhouse's Job Board API.
Keep your request rate low, and ask site owners before you collect at scale. Scrape only public pages, and limit parallel requests, as
PARALLELdoes inverify_jobs.py. If a job board blocks your bot, pause collection from that site and ask the owner for a data feed or an allowlist. Stop if you receive a cease-and-desist letter.Don't republish full descriptions. Titles, companies, salaries, and dates are facts, but a description's wording can be protected by copyright. A feed that shows jobs to people can link to the source page instead.
Get legal advice before you resell job data or use it to train a commercial model.
How we tested
Our measurements come from these tests, run from November 18 to 30, 2026:
Test | Setup | Size |
|---|---|---|
Self-built clients |
| The same search for each client; Patchright on 11 US residential IPs |
Single searches | ScrapeBadger's Google Jobs API with | 18 pages and 152 results for the US-wide search |
Feed run |
| 59 pages, 512 listings, 464 unique |
Source-page checks |
| 50 listings; 39 labeled pairs |
8-day recheck | A first run that collected 10 pages per search, then a full run 8 days later; stored apply links reopened | 338 listings; 40 that left Google and 40 that stayed |
SDK re-test | Both feed scripts on SDK 0.84.0, at the lowest concurrency setting | 1 search; 50 listings checked |
Final thoughts
In our tests, common self-built scrapers got no Google Jobs listings, but ScrapeBadger's Google Jobs API returned every page of each search with mode="serp". Before you use each Google listing, deduplicate it, convert its relative posting age to an absolute date, and parse its salary text into numbers. Before you store a listing, verify it against its source page through the Web Scraping API, then recheck it weekly and when it leaves Google. The daily feed's 2 scripts, collect_jobs.py and verify_jobs.py, run these steps on a schedule.
Run one search with ScrapeBadger's free credits and verify its listings. Before you add searches, check the cost of the full schedule with the quote endpoint.
Additional Resources
FAQ
Is there a free Google Jobs API?
Google didn't offer a public API for Google Jobs listings when we checked. Google's Cloud Talent Solution is a different product that searches only job postings you add through its API. With mode="serp", ScrapeBadger's Google Jobs API returns the public listings as JSON. New accounts start with free credits and need no credit card.
How much does a Google Jobs API cost?
ScrapeBadger's Google Jobs API charges per page of results, not per job, and each page holds about 10 listings. The pricing page lists the current rates, and failed requests aren't charged. To see what a full schedule costs before you run it, send each planned call to ScrapeBadger's quote endpoint. It returns the price without running the call.
Can you scrape Google Jobs with Python for free?
Not with the self-built scrapers we tested. httpx and curl_cffi got zero jobs, and headless Chromium got a CAPTCHA page, even as a stealth build through residential proxies. Job board APIs that need no API key, such as Greenhouse's, are free but return one employer's openings per call. Free credits let you try ScrapeBadger's Google Jobs API before you pay.
Is there a Google Jobs scraper for Python on GitHub?
JobSpy, the python-jobspy package, is a popular one, but its maintainers removed Google from its default job sites in October 2026. In our tests, JobSpy 1.5.0 returned 0 rows from Google. ScrapeBadger's official Python SDK is open source on GitHub. Whichever scraper you try, check each response for job data, because Google's soft blocks return HTTP 200 with no listings.
Is it legal to scrape Google Jobs?
It depends on what you collect and how you use it. Titles and salaries are public facts, but descriptions can contain personal data and copyrighted text. You are responsible for these choices whichever tool you use. Store only the fields you need, follow each site's rules, and get legal advice before you resell the data.
Written by
Domas Sakavickas
Dom Sakavickas is Co-founder of ScrapeBadger, building web scraping infrastructure for developers and data teams. He writes about the web data market, tool comparisons, and business use cases for scraping. ScrapeBadger is a web scraping API platform specialising in Twitter/X, Reddit and Google data, with dedicated scrapers also covering TikTok, YouTube, LinkedIn, Amazon, eBay, Zillow and 40+ more: with built-in anti-bot bypass and an MCP server for AI agents.
Related articles
- How to Scrape Google Scholar Using Python (All 5 Endpoints)Google Scholar doesn’t have an official API, so scraping it from Python means working through a few awkward options. In our tests, plain requests...Read article
- How to Scrape Google News Using PythonLearn how to scrape Google News with Python. We tested the free GNews library against ScrapeBadger's Google News API and compared speed, data quality, and rate limits.Read article
- How to Scrape Google Images Using PythonA Python script that scrapes Google Images can get HTTP 200 and still save zero images. In our tests, plain HTTP requests got a JavaScript challenge...Read article
- How to Scrape Google Search Results with Python in 2026 (3 Methods)Plain Python requests get blocked by Google's SearchGuard. We tested curl_cffi, nodriver and the ScrapeBadger API in October 2026. Here's the full code for each, where the free methods break, and the one that works at scale.Read article
Ready to get started?
Join thousands of developers using ScrapeBadger for their data needs.