v1
latestOpenAPI 3.1.02026-07-24490622.0 KBGet Domain Ad History by Date
Returns one row per keyword, search date, and ad variation for a domain. Use the date bounds and paging fields to pull a controlled slice while still seeing the total matching result size.
Query parameters
Advertiser's root domain.
Only include keywords containing this text.
Earliest ad capture date to include, formatted as YYYYMMDD.
Latest ad capture date to include, formatted as YYYYMMDD.
Starting row number for pagination.
Number of flattened ad history rows to return per page.
Keyword/domain document row number to start the backing query with before flattening date rows. KeywordStartingRow plus KeywordPageSize must fit within the first 10,000 keyword/domain documents.
Number of keyword/domain documents to fetch before flattening date rows. KeywordStartingRow plus KeywordPageSize must fit within the first 10,000 keyword/domain documents.
Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistorybydate_get#/'>All Countries</a>
Response
Successfully retrieved flattened domain ad history rows and result-size metadata for the requested date range.
Example response
{
"totalMatchingResults": 1240,
"resultCount": 100,
"startingRow": 1,
"pageSize": 100,
"hasMoreResults": true,
"totalMatchingKeywords": 85,
"keywordStartingRow": 1,
"keywordPageSize": 10000,
"resultWindowKeywordCount": 85,
"results": [
{
"keyword": "paint sprayer",
"termId": 123456789,
"searchDateId": 20240101,
"position": 1,
"title": "Paint Supplies and Tools",
"body": "Shop paint sprayers, rollers, brushes, and supplies.",
"domainName": "example.com",
"fullUrl": "https://example.com/paint/tools?source=ads",
"adId": 987654
}
]
}