SerpBase
Back to Blog

Job Search API by Location: Google Jobs Listings for Any City as JSON

Put the city in the query and POST it to /google/jobs. Tested on three cities: 10 listings each, with salary, source board and apply link.

December 4, 2026
By SerpBase Team2 min read

Short answer: put the place in the query text — "nurse jobs in Chicago, IL" — and POST it to /google/jobs. You get the listings Google Jobs shows for that city as JSON: title, company, location, salary, the board it came from and an apply link. On 4 December 2026 three city searches returned 10 listings each.

The request

curl -X POST 'https://api.serpbase.dev/google/jobs' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"query":"nurse jobs in Chicago, IL"}'

What came back

query (4 December 2026)listingslocation valueswith salarymost common source
nurse jobs in Chicago, IL1010 × Chicago, IL7Indeed (4)
barista jobs in Seattle, WA1010 × Seattle, WA8Indeed (4), Poached Jobs (4)
software engineer jobs in London107 × London, United Kingdom, 3 × Anywhere2LinkedIn (3)

One listing, shortened:

{
  "position": 1,
  "title": "Barista with Food Preparation Skills (part time)",
  "company_name": "Bequest Coffee Co",
  "location": "Seattle, WA",
  "salary": "22–27 an hour",
  "posted_at": "2 days ago",
  "via": "Indeed",
  "apply_link": "https://www.indeed.com/viewjob?jk=398239b310259480&...",
  "description": "..."
}

Python: one CSV for several cities

import csv, time, requests

ROLE = "barista"
CITIES = ["Seattle, WA", "Portland, OR", "Denver, CO"]

def jobs_in(role, city):
    r = requests.post(
        "https://api.serpbase.dev/google/jobs",
        headers={"X-API-Key": "YOUR_API_KEY"},
        json={"query": f"{role} jobs in {city}"},
        timeout=60,
    ).json()
    if r["status"] != 0:
        print("skipped", city, r.get("error"))
        return []
    return r["jobs"]

with open("jobs_by_city.csv", "w", newline="", encoding="utf-8") as f:
    w = csv.writer(f)
    w.writerow(["city", "title", "company", "location", "salary", "posted", "source", "apply_link"])
    for city in CITIES:
        for j in jobs_in(ROLE, city):
            w.writerow([city, j["title"], j["company_name"], j["location"],
                        j.get("salary") or "", j.get("posted_at") or "", j["via"], j["apply_link"]])
        time.sleep(1)

Things that trip people up

  • The place belongs in query. The endpoint takes one text field; write the city the way a person would type it, with the state or country when the name is ambiguous.
  • "Anywhere" listings appear in city searches. 3 of the 10 London results were remote roles. Filter on location if you only want on-site jobs — or search for them on purpose with the remote jobs guide.
  • Salary is text and often missing. "22–27 an hour", "£120K–£150K a year", "2,257–2,323 a week"; 17 of our 30 listings had one. Keep the string and parse the period (hour, week, year) before comparing.
  • posted_at is relative ("22 hours ago", "2 days ago"). Store the date you fetched it.
  • Many apply links are Google redirect links. 22 of 30 apply_link values started with google.com/goto?. The via field still names the board; the free Google link resolver turns them into the board's own address.
  • Ten listings per request. Narrow the query (role plus city, or role plus company) rather than expecting one call to list a whole market.

Cost and docs

A Jobs request is 2 credits; credits cost $0.25–$0.50 per 1,000 depending on the pack. Failed requests are not charged, and new accounts get 500 free credits.