Extract search engine results using Bright Data SERP API. Extract structured data from major search engines including Google, Bing, Yandex, DuckDuckGo, and more. Get organic results, paid ads, local listings, shopping results, and other SERP features.
Use your Bright Data API Key as a Bearer token in the Authorization header.
How to authenticate:
Authorization: Bearer YOUR_API_KEYExample:
Authorization: Bearer b5648e1096c6442f60a6c4bbbe73f8d2234d3d8324554bd6a7ec8f3f251f07dfLearn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication
Set this to true for asynchronous
Zone identifier that defines your Bright Data product configuration. Each zone contains targeting rules, output preferences, and access permissions. Manage zones at: https://brightdata.com/cp/zones
"serp_api1"
Complete target URL to scrape. Must include protocol (http/https), be publicly accessible.
"https://www.google.com/search?q=pizza"
Response format: raw returns HTML content as string, json returns structured data.
raw, json "json"
Method for requesting an HTML via proxy is GET.
"GET"
Two-letter ISO 3166-1 country code for proxy location (e.g., us, gb, de, ca, au). If not specified, system auto-selects optimal location based on your zone configuration.
List of country codes: https://docs.brightdata.com/general/faqs#where-can-i-see-the-list-of-country-codes
"us"
Additional response format transformation: markdown converts HTML content to clean markdown format, screenshot captures a PNG image of the rendered page.
markdown, screenshot "markdown"
OK
The response is of type string.
"OK"