The classic “scrape Google in Python” tutorial reaches for requests + BeautifulSoup, then Selenium, then a proxy bill. Skip all of it: one API call returns Google results as structured JSON — cheaper than the proxies you’d need for the DIY version.
Why DIY scraping in Python gets expensive
- IP blocks — Google blocks datacenter IPs almost instantly; you’d need rotating residential proxies.
- Selenium tax — dynamic content pushes you to headless Chrome, which is slow and RAM-hungry at scale.
- CAPTCHAs — volume triggers them; solving services cost real money.
- Selector rot — Google’s DOM changes and your
soup.select(...)silently returns nothing.
The cheap way: one request
import os, requests
res = requests.post(
"https://api.serp.cheap/v1/search",
headers={"X-API-Key": os.environ["SERP_CHEAP_API_KEY"]},
json={"q": "best crm software", "gl": "us"},
)
for r in res.json()["organic"]:
print(f'{r["position"]:2}. {r["title"]}\n {r["link"]}')
No proxies, no browser, no parser. The provider handles residential IPs, live rendering and parsing.
Or use the official SDK
pip install serpcheap
from serpcheap import SerpCheap
client = SerpCheap(os.environ["SERP_CHEAP_API_KEY"])
res = client.search(q="best crm software", gl="us")
print(res.organic[0].title)
# paginate to 100 results
for page in client.search_pages(q="best crm software", from_=1, to=5):
for r in page.organic:
print(r.position, r.title)
Building on a framework? There are Django (pip install serpcheap-django) and FastAPI (pip install serpcheap-fastapi) integrations. Full walkthrough in the Python tutorial.
What it costs
| Price per query | |
|---|---|
| Fresh result | $0.0006 |
| Cached result | $0.0003 |
| Free on signup | 100 searches |
Pay-as-you-go from $0.75/1k, credits valid 12 months — less than one residential-proxy request would cost you. See the cheapest SERP API comparison.
Parameters you’ll use
gl— country of results. See local SEO by country.hl— interface language.page— 1-indexed; see pagination to 100 results.tbs— time filter for recent results.
Next
- Google Search API in Python: full tutorial
- Build a Google rank tracker in Python
- How to scrape Google reliably
Try serp.cheap
Paste the snippet, add your key, and you’re scraping Google from Python. 100 free searches on signup — no card required; pay-as-you-go from $0.75/1k after that, and credits stay valid for 12 months.
- Get your free API key →
- Prefer paying by card? serp.cheap is also on RapidAPI (
$0.90/1k) and Apify ($1.50/1k).