history_search
Search past API calls by endpoint, date, keyword, location, business or domain to see what was already paid for and avoid buying the same data twice.
Instructions
Finds calls this account has already made, with what was asked and what it cost. Free (0 credits).
USE THIS BEFORE BUYING DATA AGAIN. Every response this API has returned is kept, so "has this changed since last month?", "what did we see last time?" and "did we already check this?" are answerable from what has been paid for once. Running the original endpoint again to answer them charges full price for a second copy.
Filter by endpoint, by date range, and by what was asked: keyword, location, business_name and domain match the parameters of the original call, so "every AI Mode call for this keyword" is one search. Note that a sandbox key sees only sandbox calls, and if the account turned response logging off then params were not stored either and these filters find nothing. Values match exactly, not as substrings — "best plumber" and "best plumber near me" are different questions and are not merged.
Returns entries with request_id, endpoint, params, credits_used, status_code and created_at, newest first, but NOT the response bodies — they are large and a search is for finding the call. Pass a request_id to history_get for the answer itself.
Building a trend: search for the calls, then history_get each one. A month of daily AI Mode calls is 30 cheap reads instead of 30 paid ones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Latest date, ISO. | |
| from | No | Earliest date, ISO (e.g. "2026-08-01"). | |
| page | No | Page number, from 1. | |
| sort | No | Default created_at. | |
| limit | No | Entries per page, max 100. Default 25. | |
| order | No | Default desc, newest first. | |
| domain | No | Exact domain the original call was made with. | |
| status | No | Only successful calls, or only failed ones. | |
| keyword | No | Exact keyword the original call was made with. | |
| endpoint | No | Endpoint path, matched as a substring (e.g. "/v1/serp/ai-mode" or just "ai-"). | |
| location | No | Exact location the original call was made with. | |
| business_name | No | Exact business_name the original call was made with. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| limit | Yes | ||
| pages | Yes | ||
| total | Yes | ||
| entries | Yes | ||
| total_is_exact | Yes |