YOUR_API_KEY, and you’re scraping.
Fetch page HTML
Fetch page HTML through a specific country
Get parsed JSON instead of HTML
Get HTML + cookies + the proxy address used
Run browser steps, then return the HTML
Fill a search form, submit it, wait for results.steps is a URL-encoded JSON
array, so pass it with --data-urlencode and -G:
Discover the interactive elements first
list_elements=true returns the page’s inputs, buttons and links as JSON, each
with a ready-to-use selector for steps:
Scrape a Google SERP
Scrape multiple SERP pages from a specific country
Fetch a single image as PNG
Bash one-liner with API key from environment
URL-encoding parameter values
cURL does not URL-encode for you. If yoururl parameter contains special characters (&, ?, =, spaces), encode them or wrap them with --data-urlencode:
-G tells cURL to convert --data-urlencode into query-string parameters while still using POST.
