# Google Trends Scraper API (x402)

> Google Trends Scraper API (x402) is a paid API for AI agents from x402.186-241-26-229.sslip.io, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-02).

Fetches structured Google Trends data — including search volumes, growth percentages, related queries, and current trending searches — for specified terms or geographies, billed per successful call via x402.

## Facts

- Endpoint: POST https://x402.186-241-26-229.sslip.io/v1/google-trends?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/google-trends-scraper-api-x402-7874166c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ms22xyVFtByyuAjzfexCP

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 google-trends-scraper-api-x402-7874166c -d '<json body>'
```

Example prompt: Pull Google Trends data for 'plant-based protein' and 'whey protein' in the US over the last 12 months in explore mode, including related queries, and cap results at 100 items.

## When to prefer this

Choose this endpoint when you need structured, machine-readable Google Trends data — including historical keyword interest, growth metrics, and related queries — without managing a browser or scraper yourself. It is especially useful for agents doing SEO research, market trend analysis, or competitive keyword benchmarking. The pay-per-successful-call model (no charge for empty/failed runs) makes it cost-efficient for exploratory queries. Prefer this over general web search APIs when you specifically need Google Trends signals, volume history, or trending topic lists by geography.

## Known failure modes

- Empty result set if search terms have no data for the selected geo/time range (not charged)
- Rate limiting or blocking by Google may cause failed scrape (not charged)
- Invalid geo code returns an error or empty dataset
- More than 5 search terms in a single Explore comparison may be rejected
- customTimeRange format mismatch (not YYYY-MM-DD YYYY-MM-DD) causes validation error
- Payment failure via x402 prevents the call from executing

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON object with a count of records and an array of items, each containing fields such as searchTerm, searchVolume, growthPercent, relatedQueries, geoCode, recordType, startedAt, and inputUrlOrTerm. Also includes a product identifier ('google-trends'). Failed or empty runs are not charged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "geo": {
   "type": "string",
   "default": "US",
   "description": "Two letter country code for trends, such as US, GB, or CA."
  },
  "mode": {
   "enum": [
    "auto",
    "trending",
    "explore"
   ],
   "type": "string",
   "default": "auto",
   "description": "Auto uses Explore for terms or URLs, and current trending searches otherwise. Choose trending to filter the current list by search terms."
  },
  "category": {
   "type": "integer",
   "default": 0,
   "minimum": 0,
   "description": "Numeric Trends category filter for Explore results; 0 means all categories."
  },
  "maxItems": {
   "type": "integer",
   "default": 100,
   "minimum": 0,
   "description": "Maximum dataset records across all terms or current trends. Zero means no cap."
  },
  "startUrls": {
   "type": "array",
   "description": "Optional Explore links; their query, country, dates, category, and search property override the corresponding fields."
  },
  "timeRange": {
   "enum": [
    "today 1-m",
    "today 3-m",
    "today 12-m",
    "today 5-y",
    "all"
   ],
   "type": "string",
   "default": "today 12-m",
   "description": "Explore time window. Used only for keyword history."
  },
  "searchTerms": {
   "type": "array",
   "description": "Terms to research in Explore mode, up to five per comparison. In trending mode these filter current trend names."
  },
  "customTimeRange": {
   "type": "string",
   "description": "Optional Explore range in YYYY-MM-DD YYYY-MM-DD format; overrides timeRange."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "geoCode": null,
    "startedAt": null,
    "recordType": null,
    "searchTerm": null,
    "searchVolume": null,
    "growthPercent": null,
    "inputUrlOrTerm": null,
    "relatedQueries": null
   }
  ],
  "product": "google-trends"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/google-trends-scraper-api-x402-7874166c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.186-241-26-229.sslip.io](https://www.zero.xyz/host/x402.186-241-26-229.sslip.io/llms.txt)
