TL;DR: To use the SERP Scraping API, send a GET request to https://serpapi.webscrapingapi.com/v2 with api_key, engine, and your query (q for most engines, text for Yandex). Google and Bing return parsed JSON, while DuckDuckGo and Yandex return the results page's HTML for your code to extract, so plan parsing and tests around that split. This guide also covers localization, async jobs, errors, and pricing.
You need search results for a set of keywords, in specific countries and languages, on specific devices, as data your code can store and compare week over week. Running your own search scraper means fighting blocks and rewriting parsers every time a results page changes, so this guide uses WebScrapingAPI's SERP API instead. By the end, you'll send a first request with your key in an environment variable, choose the right engine, fix the market you're measuring, parse Google and Bing JSON defensively, extract DuckDuckGo and Yandex HTML yourself, run Google searches asynchronously, retry by the documented error contract, and size a plan.
Quick start
- Endpoint:
https://serpapi.webscrapingapi.com/v2(GET) - Required:
api_key,engine, and the query (qfor most engines,textfor Yandex) - Output: Google and Bing return parsed JSON. DuckDuckGo and Yandex return the result page's HTML inside a JSON envelope
- Free trial: 100 Google searches




