# SpyFu Term Ad History API

> SpyFu Term Ad History API is a paid API for AI agents from spyfu.x402.paysponge.com, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Retrieves the historical paid search (PPC) ad history for a specific search term or keyword via SpyFu

## Facts

- Endpoint: GET https://spyfu.x402.paysponge.com/apis/cloud_ad_history_api/v2/term/getTermAdHistory
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spyfu-b5bf8898
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_735xTpgmtL3mP8_ihnDxg

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability spyfu-b5bf8898
```

Example prompt: Show me the full paid ad history for the search term 'project management software' — I want to see which advertisers have run PPC ads on it over time and for how long.

## When to prefer this

Use this endpoint when you need historical PPC/paid search advertising data for a specific keyword or search term — particularly to understand advertiser trends, competitive bidding history, or how ad activity on a term has changed over time. Prefer this over organic or SERP endpoints when the focus is on paid search history rather than organic rankings.

## Known failure modes

- Missing or empty term parameter returns an error
- Term with no ad history returns empty result set
- Invalid or unrecognized query parameter returns 400
- Payment failure via x402 returns 402 Payment Required
- Rate limiting may return 429 Too Many Requests
- SpyFu backend unavailability returns 503

## How this service works

GET /apis/cloud_ad_history_api/v2/term/getTermAdHistory

## Output

Returns historical paid search ad data for the specified keyword/term, including which advertisers ran ads, the ad copy used, date ranges of activity, and related PPC campaign metrics sourced from SpyFu's database.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {},
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spyfu-b5bf8898/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from spyfu.x402.paysponge.com](https://www.zero.xyz/host/spyfu.x402.paysponge.com/llms.txt)
