---
title: "What’s Trending API"
description: "REST and MCP integration reference for workspace trends, source evidence, and rate-limited scans."
canonical: "https://whatstrending.cc/api.md"
last_updated: "2026-08-26"
---

# What’s Trending API

The What’s Trending API exposes workspace configuration, ranked customer-interest trends, source-linked public evidence and rate-limited live scans.

Base URL: `https://api.whatstrending.cc`

Authoritative contract: [https://whatstrending.cc/openapi.json](https://whatstrending.cc/openapi.json)

## Authentication

API access is included with Pro. Create a key in the application under Settings → Agent access and send it with every protected request:

```http
Authorization: Bearer wt_live_YOUR_KEY
```

Keys are scoped to one workspace, displayed once, stored as hashes and revocable.

## Endpoints

- `GET /v1/workspace` — WordBank, competitor URLs, resolved handles and collection window.
- `GET /v1/trends?days=30` — ranked topics for 7, 30, 90, 180 or 365 days.
- `GET /v1/evidence?days=30&platform=reddit&q=topic&limit=50` — source posts and available public metrics.
- `POST /v1/scans` — run and persist the live collectors; limited to one agent-triggered scan per hour per workspace.

## Retry scan starts safely

Send an `Idempotency-Key` on `POST /v1/scans` so completed scan starts can be replayed safely after a lost response:

```http
Idempotency-Key: campaign-refresh-2026-08-26
```

The key is scoped to the authenticated workspace. It must contain 8–128 ASCII letters, digits, dots, underscores, colons or hyphens. A completed retry within 24 hours returns the original response with `Idempotency-Replayed: true`. A concurrent retry returns `409 Conflict` and `Retry-After`.

The header is optional for compatibility, but agents should send it for every scan start.

## MCP

The same capabilities are available through Streamable HTTP MCP at `https://api.whatstrending.cc/mcp`. Send the same Bearer key for authenticated tool calls. Standard discovery metadata is at [https://whatstrending.cc/.well-known/mcp](https://whatstrending.cc/.well-known/mcp), and authentication guidance is at [https://whatstrending.cc/auth.md](https://whatstrending.cc/auth.md).

## Data interpretation

Metric fields vary by source. Missing values mean unavailable, not zero. Inspect and cite original URLs before turning a trend into a claim.
