# YouTube Trends API

Supplies YouTube search interest trends and live trending feeds to AI coding agents. Useful for content research and market demand tracking.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 1
- Author: trendsapi-ai
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/trendsapi-ai/youtube-trends-api
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/mcp/youtube-trends-api

## What it does

This server connects your agent to the trends service over HTTP at `https://youtube.api.trendsapi.ai/mcp`. It exposes endpoints for historical search interest, percentage growth calculations, and the current trending feed. Search series return points with a normalized 0 to 100 value, along with date timestamps and optional absolute volume metrics.

Calls require an API token created at `trendsapi.ai/#get-key`. Strict parameter casing matters: setting `source` requires lowercase `youtube`, while `type` must match `YouTube Trending` exactly, or the server rejects the request with HTTP 400. Requests return 404 when a keyword has no historical entries.

## Requirements
- Remote server: `https://youtube.api.trendsapi.ai/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http youtube-trends-api https://youtube.api.trendsapi.ai/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add youtube-trends-api --url https://youtube.api.trendsapi.ai/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "youtube-trends-api": {
            "url": "https://youtube.api.trendsapi.ai/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "youtube-trends-api": {
            "type": "http",
            "url": "https://youtube.api.trendsapi.ai/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http youtube-trends-api https://youtube.api.trendsapi.ai/mcp
```

## When to use it
- track historical YouTube search interest on a 0-100 scale
- calculate keyword growth percentages across quarters and years
- fetch current top trending videos from the live feed
- pull trend series data for content calendar planning

## Example prompts
- Retrieve the search interest time series for 'home gym' on YouTube.
- Check the 3-month and 12-month growth for the topic 'cold plunge'.
- List the top 10 entries from the current YouTube trending feed.

## Similar
- [Wikipedia Trends API](https://affpapa.org/en/nevibecode/mcp/wikipedia-trends-api.md) — MCP server
- [Google Trends API](https://affpapa.org/en/nevibecode/mcp/google-trends-api.md) — MCP server
- [News Volume Trends MCP](https://affpapa.org/en/nevibecode/mcp/news-volume-trends-mcp.md) — MCP server
- [youtube-analytics](https://affpapa.org/en/nevibecode/skills/youtube-analytics.md) — skill · 579 installs
- [Content Strategy Trends MCP](https://affpapa.org/en/nevibecode/mcp/content-strategy-trends-mcp.md) — MCP server · ★ 44
- [discovering-viral-youtube-videos-by-category](https://affpapa.org/en/nevibecode/skills/discovering-viral-youtube-videos-by-category.md) — skill · 851 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
