Skip to main content
ClaudeWave
trendsapi avatar
trendsapi

youtube-trends-api

View on GitHub

YouTube Trends API as JSON: keyword search volume time series, growth rates and live trending videos. No Google Cloud setup or quota management. REST + MCP, free tier.

MCP ServersOfficial Registry0 stars0 forksMITUpdated today
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/trendsapi/youtube-trends-api
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "youtube-trends-api": {
      "command": "node",
      "args": ["/path/to/youtube-trends-api/dist/index.js"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Clone https://github.com/trendsapi/youtube-trends-api and follow its README for install instructions.
Use cases

MCP Servers overview

# YouTube Trends API - search volume & trending videos as JSON

[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) [![API v1](https://img.shields.io/badge/API-v1-blue.svg)](https://trendsapi.ai) [![MCP compatible](https://img.shields.io/badge/MCP-compatible-blueviolet.svg)](https://modelcontextprotocol.io) [![Free tier](https://img.shields.io/badge/free%20tier-100%20req%2Fmo-orange.svg)](https://trendsapi.ai/#pricing)

> **YouTube trend data as clean JSON: search interest time series for any keyword, growth rates, and the live trending videos feed from one REST endpoint. No Google Cloud project, no quota math.**
>
> One endpoint. One API key. One normalized 0-100 trend score you can compare against 14 other platforms.

**Docs:** [https://trendsapi.ai/#quickstart](https://trendsapi.ai/#quickstart) · **llms.txt:** [https://trendsapi.ai/llms.txt](https://trendsapi.ai/llms.txt) · **Free API key (100 req/mo):** [https://trendsapi.ai/#get-key](https://trendsapi.ai/#get-key)

---

## What a call looks like

```bash
curl -X POST https://api.trendsapi.ai/api \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode": "get_growth", "source": "youtube", "keyword": "mrbeast", "percent_growth": ["3M", "12M"]}'
```

```json
{
  "keyword": "mrbeast",
  "source": "youtube",
  "growth": { "3M": 41.8, "12M": 212.4 },
  "timestamp": "2026-08-03T12:00:00Z"
}
```

## Quickstart (60 seconds)

**1. Get a free API key** at [https://trendsapi.ai/#get-key](https://trendsapi.ai/#get-key) - 100 requests/month, no credit card.

**2. Make your first call:**

```bash
curl -X POST https://api.trendsapi.ai/api \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode": "get_time_series", "source": "youtube", "keyword": "mrbeast"}'
```

**Python:**

```python
import requests

res = requests.post(
    "https://api.trendsapi.ai/api",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"mode": "get_growth", "source": "youtube", "keyword": "mrbeast",
          "percent_growth": ["3M", "12M"]},
)
print(res.json())
```

**Node.js:**

```js
const res = await fetch("https://api.trendsapi.ai/api", {
  method: "POST",
  headers: {
    Authorization: "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ mode: "get_growth", source: "youtube", keyword: "mrbeast",
                          percent_growth: ["3M", "12M"] }),
});
console.log(await res.json());
```

---

## The three modes

| Mode | What it returns | Needs a keyword? |
|---|---|---|
| `get_time_series` | Historical search volume as a normalized 0-100 series | yes |
| `get_growth` | Growth % over 3M / 6M / 12M / 5Y windows | yes |
| `get_top_trends` | Live trending feeds (21 of them) | no |

## Why teams switch

|  | YouTube Data API | Trends API |
|---|---|---|
| Setup | Google Cloud project + OAuth | one API key |
| Search interest metric | not exposed | normalized 0-100 series |
| Trending videos feed | separate endpoint | included, one call |
| Quota management | yes, units per call | flat: 1 request = 1 call |
| Free tier | 10k units/day | 100 requests/month |

## Use cases

- **Video ideation:** validate a topic's search interest before scripting
- **Channel strategy:** track your niche's rising keywords week over week
- **Competitor research:** compare search demand for competing channels or formats
- **Sponsorship:** show brands category growth with hard numbers

---

## Use it from your AI assistant (MCP)

The same API key powers the Trends API MCP server, so Claude, Cursor, VS Code, ChatGPT and any MCP-compatible client can query this data in natural language.

[**+ Add to Cursor (one click)**](cursor://anysphere.cursor-deeplink/mcp/install?name=trendsapi&config=eyJ1cmwiOiAiaHR0cHM6Ly9hcGkudHJlbmRzYXBpLmFpL21jcCIsICJoZWFkZXJzIjogeyJBdXRob3JpemF0aW9uIjogIkJlYXJlciBZT1VSX0FQSV9LRVkifX0=)

**Cursor / Windsurf / Cline** (`~/.cursor/mcp.json` or equivalent):

```json
{
  "mcpServers": {
    "trendsapi": {
      "url": "https://api.trendsapi.ai/mcp",
      "transport": "http",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}
```

**VS Code / GitHub Copilot** (`.vscode/mcp.json`):

```json
{
  "servers": {
    "trendsapi": {
      "type": "http",
      "url": "https://api.trendsapi.ai/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}
```

**Claude Desktop** (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "trendsapi": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.trendsapi.ai/mcp", "--header", "Authorization:${AUTH_HEADER}"],
      "env": { "AUTH_HEADER": "Bearer YOUR_API_KEY" }
    }
  }
}
```

**Claude.ai (browser):** Settings -> Connectors -> Add custom connector -> `https://api.trendsapi.ai/mcp`

Then ask things like:

```
How did "creatine gummies" grow on TikTok vs Google over the last 12 months?
What is trending on YouTube right now?
```

---

## Every source on the same key

| Source | `source` value | What it measures |
|---|---|---|
| Google Search | `google search` | Search volume |
| Google Images | `google images` | Image search volume |
| Google News | `google news` | News search volume |
| Google Shopping | `google shopping` | Shopping search volume |
| YouTube | `youtube` | Search volume |
| TikTok | `tiktok` | Hashtag volume |
| Reddit | `reddit` | Subreddit subscribers |
| Amazon | `amazon` | Product search volume |
| Wikipedia | `wikipedia` | Page views |
| News volume | `news volume` | Article mention volume |
| News sentiment | `news sentiment` | Positive / negative score |
| App downloads | `app downloads` | Android downloads (AppBrain) |
| App rankings | `app rankings` | Android chart position |
| npm | `npm` | Weekly package downloads |
| Steam | `steam` | Concurrent players (monthly) |

### Live feeds (`get_top_trends`, no keyword needed)

| Feed | `type` value |
|---|---|
| Google Trends | `Google Trends` |
| Google News Top News | `Google News Top News` |
| TikTok Trending Hashtags | `TikTok Trending Hashtags` |
| TikTok Trending Searches | `TikTok Trending Searches` |
| TikTok Shop Hot Products | `TikTok Shop Hot Products` |
| YouTube Trending | `YouTube Trending` |
| X (Twitter) Trending | `X (Twitter) Trending` |
| Reddit Hot Posts | `Reddit Hot Posts` |
| Reddit World News | `Reddit World News` |
| Wikipedia Trending | `Wikipedia Trending` |
| Amazon Best Sellers Top Rated | `Amazon Best Sellers Top Rated` |
| Amazon Best Sellers by Category | `Amazon Best Sellers by Category` |
| App Store Top Free | `App Store Top Free` |
| App Store Top Paid | `App Store Top Paid` |
| Google Play | `Google Play` |
| Top Websites | `Top Websites` |
| Spotify Top Podcasts | `Spotify Top Podcasts` |
| Steam Most Played | `Steam Most Played` |
| GitHub Trending Repos | `GitHub Trending Repos` |
| IMDb MOVIEmeter | `IMDb MOVIEmeter` |
| Open Library Trending Books | `Open Library Trending Books` |

---

## FAQ

### What YouTube data does Trends API provide?

Keyword search volume over time (normalized 0-100), growth over 3M/6M/12M/5Y windows, and the live YouTube Trending feed of top videos right now.

### How is this different from the YouTube Data API?

The YouTube Data API returns video and channel metadata but no search-interest metric. Trends API gives you the demand side: how often people search for a topic, plus a normalized score you can compare against TikTok, Google and 13 other sources.

### Do I need a Google Cloud project?

No. One Trends API key, one POST endpoint, no OAuth and no quota-unit accounting.

### How fresh is the data?

The trending feed updates continuously through the day. Keyword series are pulled on demand at request time; every response carries its own timestamp.

### Can I track a topic across YouTube and TikTok together?

Yes. Make one `get_growth` call per source with the same keyword and compare the percentages directly - both are on the same normalized scale.

---

## Links

- **Docs & quickstart:** [https://trendsapi.ai/#quickstart](https://trendsapi.ai/#quickstart)
- **llms.txt (machine-readable API reference):** [https://trendsapi.ai/llms.txt](https://trendsapi.ai/llms.txt)
- **Pricing (free tier: 100 requests/month):** [https://trendsapi.ai/#pricing](https://trendsapi.ai/#pricing)
- **Get an API key:** [https://trendsapi.ai/#get-key](https://trendsapi.ai/#get-key)

## License

MIT - see [LICENSE](LICENSE). Data is served by [Trends API](https://trendsapi.ai); usage of the API itself is subject to the plan limits on your key.
apicontent-strategycreator-economyjavascriptjsonmcpmcp-serverpythonrest-apitrend-datatrendstrendsapivideo-marketingyoutubeyoutube-analyticsyoutube-apiyoutube-trends

What people ask about youtube-trends-api

What is trendsapi/youtube-trends-api?

+

trendsapi/youtube-trends-api is mcp servers for the Claude AI ecosystem. YouTube Trends API as JSON: keyword search volume time series, growth rates and live trending videos. No Google Cloud setup or quota management. REST + MCP, free tier. It has 0 GitHub stars and was last updated today.

How do I install youtube-trends-api?

+

You can install youtube-trends-api by cloning the repository (https://github.com/trendsapi/youtube-trends-api) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is trendsapi/youtube-trends-api safe to use?

+

trendsapi/youtube-trends-api has not been audited yet by our security agent. Review the original repository on GitHub before using it in production.

Who maintains trendsapi/youtube-trends-api?

+

trendsapi/youtube-trends-api is maintained by trendsapi. The last recorded GitHub activity is from today, with 0 open issues.

Are there alternatives to youtube-trends-api?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy youtube-trends-api to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: trendsapi/youtube-trends-api
[![Featured on ClaudeWave](https://claudewave.com/api/badge/trendsapi-youtube-trends-api)](https://claudewave.com/repo/trendsapi-youtube-trends-api)
<a href="https://claudewave.com/repo/trendsapi-youtube-trends-api"><img src="https://claudewave.com/api/badge/trendsapi-youtube-trends-api" alt="Featured on ClaudeWave: trendsapi/youtube-trends-api" width="320" height="64" /></a>

More MCP Servers

youtube-trends-api alternatives