Skip to content
Start free

SERP API

SERP API for Structured Search Results

Collect Google and Bing results as parsed JSON. Capture DuckDuckGo and Yandex SERP HTML in JSON envelopes, with query and location controls.

  • Engine-aware output Parsed collections or source payloads
  • Search context Location, language, and device
  • Managed retrieval Supported search access
  • Documented shapes Response model stated per engine
Send a search query with its location and device context; receive the selected engine’s response.

Search data without the scraper

Choose a search engine and response format

01

Response shape stated up front

Know whether the engine returns parsed result collections or a source SERP payload before you design the consumer.

02

Context stays attached

Keep engine, query, locale, language, device, vertical, and pagination inputs beside each observation.

03

Access work is operated

WebScrapingAPI runs the supported search retrieval path and maintains documented response handling.

04

Optionality stays explicit

For parsed endpoints, optional result collections appear only when the returned SERP exposes them; absence is not automatically a collection failure.

Query fingerprintEvery rank belongs to one request.
  1. Enginegoogle
  2. Queryrunning shoes
  3. LocaleUS · en
  4. Presentationmobile
  5. Search typeweb
  6. Pagestart 0
  7. Observationrequest time

Preserve the request fingerprint with stored results so comparisons remain like-for-like.

Documented coverage

Start with the engine and search surface your workflow needs.

Each engine has its own parameters and response shape. Choose the endpoint first, then validate the required result types with representative queries.

Google family

Search plus dedicated Google surfaces.

Google Search supports documented web, image, video, news, shopping, and jobs controls. Dedicated endpoints cover additional Google surfaces.

googlegoogle_asyncgoogle_mapsgoogle_flightsgoogle_maps_reviewsgoogle_reverse_imagegoogle_trendsgoogle_hotels

Coverage boundary: an engine name does not imply identical controls or parsing. Google and Bing document parsed JSON result collections; DuckDuckGo and Yandex document a JSON envelope containing the source SERP HTML payload. The current endpoint documentation remains the production source of truth.

Engine-aware response

Build for the response model each engine documents.

Parsed collections and source payloads require different consumers. Select the engine first, validate its current response shape, and preserve the request context beside the output.

01 · every engine

Search context

Engine, query, and response-level metadata exposed by the selected endpoint.

search_parameters · general
02 · Google and Bing

Parsed result collections

Titles, links, descriptions, observed positions, and optional modules where documented and returned.

organic[] · related[] · module?
03 · DuckDuckGo and Yandex

Source SERP payload

The source HTML payload is returned inside the JSON envelope; your application owns any extraction from it.

search_results: "<html>…</html>"
04 · your system

Application envelope

Add run IDs, requested timestamps, query-group identifiers, and schema versions when results enter your systems.

run_id · observed_at · schema

Google Search controls

Configure your request

Start with the required query. Add only the documented context needed to make the observation useful and comparable.

Intent and surface

What should the engine search?

Use the query, a supported vertical, or the documented jobs search control.

qtbmibp
Locale and presentation

Which search context should appear?

Set supported domain, encoded location, language, country, and device values.

domainuulehlgldevice
Pagination

Which result window should return?

Use the documented offset and requested result count for the page window you need.

startnum
Synchronous Google Search

engine=google

Use the standard documented path when the application should wait for the current response.

Review synchronous parameters
Asynchronous Google Search

engine=google_async

Use the dedicated documented workflow when queued Google retrieval fits the workload. Do not assume asynchronous behavior is shared by every engine.

Review asynchronous workflow

One request

From request to result

  1. 01

    Define the observation

    Choose the engine, query, and supported location, language, device, search-type, and pagination parameters.

  2. 02

    Send the request

    Call the server-side SERP endpoint with your API key. WebScrapingAPI operates supported retrieval and response handling.

  3. 03

    Validate and use

    Inspect the HTTP status and engine-specific response shape, then retain the context required by ranking, extraction, alerting, or research workflows.

Integration

Connect from your server

Keep the API key outside client-side code, URL-encode search values, set a timeout, and inspect unsuccessful HTTP states before parsing the response.

Request brief

Begin with one representative query.

Use the same engine, market, language, device, and search type your product will rely on in production.

Secret
WSA_API_KEY stays server-side
Required
api_key + engine + q
Context
gl + hl + device
Consumer
Inspect status and optional collections
curl --get --fail-with-body --max-time 120 \ "https://serpapi.webscrapingapi.com/v2" \ --data-urlencode "api_key=$WSA_API_KEY" \ --data-urlencode "engine=google" \ --data-urlencode "q=running shoes" \ --data-urlencode "gl=us" \ --data-urlencode "hl=en" \ --data-urlencode "device=mobile"

Production-safe starting point

Examples use a protected environment variable, documented Google context, explicit timeouts, and visible unsuccessful HTTP states.

Operating ownership

What we manage and what you control

WebScrapingAPI operates

  • Request validation and supported engine execution
  • Search access infrastructure and internal handling
  • Parsed result collections where documented
  • Documented JSON envelope and source-payload delivery
  • Maintenance of supported endpoint behavior

Your team owns

  • Query groups, markets, languages, devices, and search types
  • Application scheduling and API-level retry policy
  • Any extraction required from source-payload endpoints
  • Storage, rank calculations, comparisons, and alerts
  • Data-use, retention, and decision policies

Decision boundary: SERP API does not define a universal rank, decide whether an absence is commercially meaningful, or operate your downstream analytics. Use eligible public results in line with the Service Agreement and applicable requirements.

Production evaluation

Choose a plan for your workload

Estimate the workload

Size the context matrix—not just the keyword list.

QueriesMarketsDevicesPagesFrequency

The formula is a planning model, not a billing promise. Current pricing and plan limits remain the commercial source of truth.

FAQ

Product questions

What is SERP API?

SERP API is a server-side endpoint for sending a search query with documented context and receiving the response shape supported by that engine. Google and Bing document parsed JSON result collections; DuckDuckGo and Yandex document a JSON envelope containing request metadata and the source SERP HTML payload.

What does SERP API return?

The response depends on the selected engine. Google and Bing document JSON metadata plus parsed result collections. DuckDuckGo and Yandex document JSON metadata plus the source SERP HTML payload, which your application can store or extract according to its own data model.

Which search-result features can appear?

For engines with documented parsed collections, the returned modules depend on the engine, query, location, device, and search type. Organic results and endpoint-specific modules such as ads, local elements, shopping, media, or related searches appear only when the returned search page exposes them.

How do location, language, and device controls work?

Use the parameters documented for the selected engine. Google Search documents domain, encoded location, interface language, country, and desktop, mobile, or tablet device controls; other engines use their own market and localization parameters.

Does SERP API support asynchronous requests?

The documentation includes a dedicated asynchronous Google Search engine for queued retrieval. Treat asynchronous behavior as endpoint-specific and use the current workflow documentation when implementing submission and result retrieval.

Who maintains parsing when search layouts change?

WebScrapingAPI maintains supported response handling and parsed collections where the endpoint documentation provides them. DuckDuckGo and Yandex currently return the source SERP HTML payload in a JSON envelope, so your team owns any extraction from that payload as well as its internal data model and downstream decisions.

How should my application handle empty or unsuccessful responses?

Inspect the HTTP status and documented error body, use bounded retries where appropriate, and distinguish an unsuccessful request from a successful search response in which an optional result collection is absent or empty.

Your first observation

Test your first Google query

Use the 100-request Google trial to check your keywords, locations and output before choosing a monthly plan.