---
title: "Get Keyword Ad History"
method: GET
path: "/v2/term/getTermAdHistory"
tags: ["Ad History Research API"]
---

# Get Keyword Ad History

`GET /v2/term/getTermAdHistory`

Returns historical advertisers and ad variations for a specific keyword. This endpoint focuses on ads that have appeared for a particular keyword, unlike domain-based endpoints that focus on ads from specific advertisers.

[Visualize this API live on SpyFu](https://www.spyfu.com/keyword/ad-history?query=example%20keyword)

## Query parameters

- `term` string, required
- `countryCode` 'AR' | 'AT' | 'AU' | 'BE' | 'BR' | 'CA' | 'CH' | 'DE' | 'DK' | 'ES' | 'FR' | 'IE' | 'IN' | 'IT' | 'JP' | 'MX' | 'NL' | 'NO' | 'NZ' | 'PL' | 'PT' | 'SE' | 'SG' | 'TR' | 'UA' | 'UK' | 'US' | 'ZA'
- `pageSize` integer
- `startingRow` integer

## Response `200`

Successfully retrieved ad history data for the specified keyword. Returns a paginated list of ads that have appeared for this keyword across different advertisers.

- object — Response wrapper containing term ad history results with pagination metadata.
  - `resultCount` integer — Number of results returned
  - `results` object[], nullable — Array of ads found for the specified keyword with associated landing pages and advertiser information.
    - `domainName` string, nullable — The domain name of the advertiser who placed this ad.
    - `urls` string[], nullable — List of landing page URLs that this ad directed users to when clicked.
    - `position` integer — The ad's position on the search results page when it was captured (1 = top position).
    - `searchDateId` integer — Date when this ad was captured by SpyFu's crawling system, formatted as YYYYMMDD (e.g., 20231215 = December 15, 2023).
    - `title` string, nullable — The headline text of the ad as it appeared in search results.
    - `body` string, nullable — The description text of the ad providing additional details about the offer.
    - `adId` integer — Unique identifier for this specific ad in SpyFu's database.

## Other responses

- `400` — Bad Request - Invalid parameters provided (e.g., empty term, pageSize exceeds maximum, or invalid country code)
- `401` — Unauthorized - Invalid API credentials or insufficient permissions to access ad history data
- `500` — Internal Server Error - A server-side error occurred while processing the request

---

[API](https://skmtc.net/spyfu/apis/domain-stats-api.md) · [All operations](https://skmtc.net/spyfu/apis/domain-stats-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spyfu/domain-stats-api/revisions/44f0aff08ed0/schema)
