Skip to main content

Debugging SERP API

Use the x-brd-debug response header to extract detailed debug information about your requests. Activate by appending -debug-full to your proxy username:
The x-brd-debug response header will look like this:

Common Error Codes

Example 429 response

SERP API error catalog

Fast SERP runs inside the SERP API and shares its error codes. When a request fails, the error is returned in the x-brd-error and x-brd-err-msg response headers.
Example query_rejected response

How to detect query truncation

Google sometimes returns results for a shorter version of your query than the one you sent. For example, a search for pizza in tlv can return results for pizza. This behavior applies to both the SERP API and Fast SERP text (web) search. Compare general.query with general.detected_query in the parsed response, then check for a spelling object to tell a genuine spelling correction apart from a truncated search:
  1. If general.query and general.detected_query match, Google searched exactly what you sent.
  2. If they differ, check for a spelling object:
    • spelling present - Google auto-corrected the spelling and the results are valid for the corrected query.
    • spelling absent - Google truncated (cloaked) your query and the results are for a shorter version of what you searched.
The example below shows an auto-corrected query, where detected_query differs from query but a spelling object confirms the results are valid:
For the general and spelling field definitions, see Parsed JSON results for the SERP API or Fast SERP web search for Fast SERP.

What happens when a query is blocked

When Bright Data detects that Google has flagged a query, that exact query is blocked across the SERP API and Fast SERP for 15 seconds. Any request for the same query during that window returns the query_rejected error. Retry the query after the 15-second window, or vary the query, to receive results. See SERP API error catalog for the full error response.

Get Success Rate Statistics Per Domain

Retrieve SERP API success rate stats from the past 7 days. Supports single domain or wildcard.
Single domain
All monitored TLDs
Once you provide your API key, replace all $API_KEY, $CUSTOMER_ID, $ZONE, and $PASSWORD placeholders accordingly.