GET /serp
Search the configured search engine (Google, Brave, or DuckDuckGo).
mode=fast returns organic
results and metadata; mode=full (the default) additionally returns available knowledge graph,
People Also Ask, related searches, sitelinks, and result attributes. Engines can omit any SERP
feature, and don’t always provide an estimated result total.
Query parameters
Required
query(string, 1–512 chars): Keyword to search on the configured engine.
Optional
country(string, default:US): Two-letter country code used to localize results.language(string, default:en): Two-letter result language code.num_results(integer, default:10, 1–100): Maximum organic results to return.tbs(string): Time filter —qdr:d(past day),qdr:w(past week),qdr:m(past month).device(string, default:desktop):desktop,mobile,tablet.mode(string, default:full):fast(organic results only) orfull(adds knowledge graph, People Also Ask, related searches, sitelinks, and result attributes).output(string): Optional comma-separated page outputs to enrich each organic result with:html,clean_html,links. Omit for metadata-only results. Enrichment fetches each result’s page and is billed as one ordinary scrape per result attempted.only_main_content(boolean, default:true): Remove navigation and other non-main layout content from cleaned outputs.
Responses
- 200:
FastSerpResponse(whenmode=fast) orFullSerpResponse(whenmode=full) —query,pageNumber,dateDownloaded,resultPages(pages the search covered — billed per page),enrichmentScrapes(page-enrichment scrapes attempted, whenoutputis set), andorganic(each result hasposition,title,link,snippet,domain,page, and — in full mode —sitelinksandattributes; plushtmlBody/cleanHtml/linkswhenoutputwas requested).FullSerpResponseadditionally includestotalOrganicResults,knowledgeGraph,peopleAlsoAsk, andrelatedSearches. - 400: Malformed query parameters.
- 422: Invalid SERP parameter (e.g. empty
query, invalidcountry/languagecode,num_resultsout of range, or invalidtbs). - 429: Search engine rate limit reached.
- 502: The search engine returned an invalid or blocked response.
- 503: The search engine is unavailable.
- 504: Search request timed out.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Keyword to search on the configured engine.
"best running shoes"
Two-letter country code used to localize results.
"US"
"NP"
Two-letter result language code.
"en"
"de"
Maximum organic results to return.
1 <= x <= 100Optional time filter: past day, week, or month.
"qdr:d"
"qdr:w"
"qdr:m"
Browser device profile. Browser device profile used for the OpenSERP request.
desktop, mobile, tablet Response detail and credit tier.
Response detail and credit tier. fast costs 1 credit; full costs 3 credits.
full, fast Optional comma-separated page outputs to enrich each organic result with: html, clean_html, links. Omit for metadata-only results.
Remove navigation and other non-main layout content from cleaned outputs.
Response
Fast or full public SERP response, depending on mode
- FastSerpResponse
- FullSerpResponse
Returned when mode=fast (1 credit): organic results and metadata only.
Result pages the search covered. Billed per page.
Enrichment scrapes attempted, one per organic result when output is set. Each is billed as an ordinary scrape.
1
