Search Archive API

/ Home / Extra APIs / Search Archive

/searches/{search_id} API allows you to fetch searches created with the search API endpoint. Searches don't have to be completed to be retrieved. Search status can be Queued, Processing, Success, or an error. You can retrieve the html, or the json of your search up to 31 days after the search has been completed.

You can query https://serpapi.com/searches/{search_id} using a GET request with these parameters:


search_id

Required

Parameter is the search ID provided by the search API endpoint at ["search_metadata"]["id"]. (e.g., 5b50d58a304bda2fca30bac9)

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the file you want. It can be set to json (default) to get a structured JSON of the results, or html to get the raw html retrieved.


It should return the same document as the Search API.


Example