Retrieve archived Google search HTML
Early access. Tell us what you're building and we'll set you up. Contact us
api.lempile.com/searches/{searchId}.htmlRetrieve raw Google HTML for a successful browser-backed search. Pending rows return HTTP 202 with the same processing JSON used by archive polling. 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
200Raw Google Search HTML captured from the browser run.
›
text/html
202Search is queued or running. Continue polling the JSON endpoint.
›
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.
Was this page helpful?