Search Archive API
Search Archive API allows you to fetch searches created with our API. 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:
API Examples
API 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.
Search Archive API example
GET
-
https://serpapi.com/searches/5b50d58a304bda2fca30bac9.json?api_key=SECRET_API_KEY