Examples
A SERP for the query best proxy providers might include:
- organic results
- ads
- featured snippets
- people also ask
- local map results
- shopping results
If you're scraping SERPs in production, you're rarely extracting just blue links. You're dealing with changing layouts, anti-bot systems, geo differences, device differences, and result types that appear or disappear depending on the query.
import requests
url = "https://www.scraperouter.com/api/v1/scrape/"
headers = {
"Authorization": "Api-Key $api_key",
"Content-Type": "application/json",
}
payload = {
"url": "https://www.google.com/search?q=best+proxy+providers",
"country": "us",
"render": True
}
response = requests.post(url, headers=headers, json=payload)
print(response.status_code)
print(response.text[:500])
That gets you the page. The annoying part is everything after that: keeping selectors alive, handling block pages, and making sure rank data is still comparable over time.
Practical tips
- Be clear about which SERP you mean: desktop or mobile, logged-out or logged-in, country, language, and location all change results.
- Track more than the visible title and URL: position, result type, domain, snippet text, and whether the result was organic, paid, local, or rich.
- Expect layout drift: search engines change HTML constantly, and they do not care that your parser broke at 3 a.m.
- Watch for anti-bot pages: captchas, consent screens, rate limits, and empty responses can look like valid pages if you're not checking carefully.
- Store raw HTML for debugging. When rankings suddenly look wrong, you want evidence, not guesses.
- If you scrape SERPs at any real volume, use a router layer or managed scraping API. Doing this with one proxy setup and a prayer gets expensive fast.
Use cases
- Rank tracking: monitor where a domain or page appears for a set of keywords over time.
- SEO research: extract top-ranking pages, snippets, related questions, and competing domains.
- Lead generation: collect businesses, sites, or service providers that appear for specific commercial queries.
- Market monitoring: watch how search results shift by country, device, or competitor campaigns.
- SERP feature analysis: measure when featured snippets, local packs, shopping boxes, or ads push organic results down the page.