SerpApi
Results from Google, Maps, Trends, News and other search engines
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- Private API keySecretRequired
Where to find them
- Create an account at serpapi.com (the free plan includes a small monthly search quota).
- At serpapi.com/manage-api-key copy the “Private API Key”. Each search uses one from the plan; checking the balance or the locations is free.
Tools (2)
SerpApi request
SERPAPI_SEND_REQUESTAuthenticated call to the SerpApi (https://serpapi.com). Any endpoint of the API is allowed. All searches are GET /search.json with engine and its parameters; each one uses 1 search (repeating it within 1 h is free). Examples: GET /search.json?engine=google&q=…&gl=es&hl=es&google_domain=google.es, engine=google_maps&type=search&q=…&ll=@40.4168,-3.7038,14z (local listings), engine=google_trends&q=…&geo=ES&date=today 12-m, engine=google_news&q=…&gl=es&hl=es, engine=google_ads_transparency_center&text=example.com, engine=youtube&search_query=…, engine=bing&q=…. Free: GET /account.json (remaining searches), GET /locations.json?q=Austin&limit=5 (location values). For Google organic results, SERPAPI_SEARCH_GOOGLE.
Required scopes
No scopes required
Input
SerpApi request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Google results
SERPAPI_SEARCH_GOOGLEResults of a Google search (google.es in Spanish by default): organic results with position, title, URL and snippet, plus the featured answer, the local pack, the ads and the related questions when present. Uses 1 search from the plan (repeating it within 1 h is free).
Required scopes
No scopes required
Input
Google results input Name Type Description queryrequiredstringWhat to search for, exactly as in Google (supports site:, intitle:…) countrystringGoogle country (gl): us, gb, de, es…Default: "us"languagestringInterface language (hl): en, es, de…Default: "en"domainstringGoogle domain: google.es, google.com.mx…Default: "google.es"locationstringExact location, e.g. “Austin, Texas, United States” devicestringOne of: desktop,mobile,tabletDefault:"desktop"offsetintegerOffset for pagination: 10 = second pageDefault: 0

