Retrieve archived Google search JSON
Early access. Tell us what you're building and we'll set you up. Contact us
api.lempile.com/searches/{searchId}.jsonPoll or retrieve the JSON archive for a Google search. Pending internal Queued, Running, and legacy Processing rows return HTTP 202 with public status Processing. Final rows return HTTP 200 with public status Success or Error. This route requires the search.read scope.
Authentication
X-API-KEY header·A Lempile API key, made in the dashboard under Access tokens.Path parameters
searchIdstringrequiredSearch archive id returned in
search_metadata.id.≥ 8 chars
Query parameters
api_keystringAPI key with
search.writefor search creation routes orsearch.readfor archive routes.X-API-KEYmay be used instead.
Responses
200Final archived search JSON.
›
application/json
errorstringsearch_metadataSerpApiSearchMetadatarequiredSerpApi-compatible lifecycle metadata. Internal
QueuedandRunningstates are exposed as publicProcessingplus detail fields.›Show fieldsHide fields
idstringrequiredstatusstringrequiredOne ofProcessingSuccessErrorstatus_detailstringInternal state such as
Queued,Running, or a final status detail.runner_status_detailstringRunner detail such as
queued,runner_claimed,lease_renewed,completed,search_queue_timeout, orrunner_lease_expired.json_endpointstring · uripixel_position_endpointstring · uriraw_html_filestring · uricreated_atstringqueued_atstringstarted_atstringlease_expires_atstringprocessed_atstring | nullgoogle_urlstring | nulltotal_time_takennumber | nullcaptcha_autosolveobjectSafe CAPTCHA autosolve summary when a Google block page required solving.
search_parametersSerpApiSearchParametersrequiredNormalized search parameters used for the Google request.
›Show fieldsHide fields
enginestringrequiredOne ofgoogleqstringrequiredlocation_requestedstring | nulllocation_usedstring | nullgoogle_domainstringrequiredhlstring | nullglstring | nulltbsstring | nullstartinteger | nulldevicestringrequiredOne ofdesktopmobiletablet
search_informationSerpApiSearchInformationHigh-level information extracted from the Google results page.
›Show fieldsHide fields
query_displayedstring | nulltotal_resultsinteger | nulltime_taken_displayednumber | nullorganic_results_statestring | nullpage_numberinteger | null
organic_resultsarray of SerpApiOrganicResult›Show fieldsHide fields
positionintegerrequiredtitlestring | nulllinkstring · uri | nulldisplayed_linkstring | nullsnippetstring | nullsnippet_highlighted_wordsarray of stringsourcestring | null
related_searchesarray of objectReal Google related-search suggestions only.
paginationSerpApiPagination›Show fieldsHide fields
currentintegerpreviousstring · uri | nullnextstring · uri | nullother_pagesobject
serpapi_paginationSerpApiPagination›Show fieldsHide fields
currentintegerpreviousstring · uri | nullnextstring · uri | nullother_pagesobject
error_diagnosticsobjectSafe failure diagnostics, including CAPTCHA provider metadata when available. Raw secrets, cookies, tokens, proxy credentials, and API keys are not included.
202Search is queued or running. Continue polling.
›
application/json
search_metadataSerpApiSearchMetadatarequiredSerpApi-compatible lifecycle metadata. Internal
QueuedandRunningstates are exposed as publicProcessingplus detail fields.›Show fieldsHide fields
idstringrequiredstatusstringrequiredOne ofProcessingSuccessErrorstatus_detailstringInternal state such as
Queued,Running, or a final status detail.runner_status_detailstringRunner detail such as
queued,runner_claimed,lease_renewed,completed,search_queue_timeout, orrunner_lease_expired.json_endpointstring · uripixel_position_endpointstring · uriraw_html_filestring · uricreated_atstringqueued_atstringstarted_atstringlease_expires_atstringprocessed_atstring | nullgoogle_urlstring | nulltotal_time_takennumber | nullcaptcha_autosolveobjectSafe CAPTCHA autosolve summary when a Google block page required solving.
search_parametersSerpApiSearchParametersNormalized search parameters used for the Google request.
›Show fieldsHide fields
enginestringrequiredOne ofgoogleqstringrequiredlocation_requestedstring | nulllocation_usedstring | nullgoogle_domainstringrequiredhlstring | nullglstring | nulltbsstring | nullstartinteger | nulldevicestringrequiredOne ofdesktopmobiletablet
401Missing or invalid API key.
›
application/json
errorstringrequiredSerpApi-compatible error message.
error_codestringMachine-readable Lempile error code when available.
403The API key does not include the required search.read scope.
›
search.read scope.application/json
errorstringrequiredSerpApi-compatible error message.
error_codestringMachine-readable Lempile error code when available.
404Search archive id was not found for the current workspace.
›
application/json
errorstringrequiredSerpApi-compatible error message.
error_codestringMachine-readable Lempile error code when available.
503Platform, configuration, or storage dependency is temporarily unavailable. New searches normally queue when the runner is at capacity or briefly unavailable.
›
application/json
errorstringrequiredSerpApi-compatible error message.
error_codestringMachine-readable Lempile error code when available.
Was this page helpful?