Trends API
Trend data from Google, TikTok, Amazon, Reddit, YouTube, Steam, npm and more as JSON
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
claude mcp add --transport http trends-api 'https://api.trendsapi.ai/mcp' --header 'Authorization: <Bearer token. Get your free API key at https://trendsapi.ai>'
{
"mcpServers": {
"trends-api": {
"type": "http",
"url": "https://api.trendsapi.ai/mcp",
"headers": {
"Authorization": "<Bearer token. Get your free API key at https://trendsapi.ai>"
}
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
Remote MCP server
Hosted MCP at https://api.trendsapi.ai/mcp. Same three operations and catalogs as REST. Token: trendsapi.ai/#get-key.
REST contract: trendsapi-ai/trendsapi.
Tools
| MCP tool | REST mode | Required | Returns |
|---|---|---|---|
get_trends | get_time_series | source, keyword | Weekly history |
get_growth | get_growth | source, keyword | Percent change |
get_top_trends | get_top_trends | type | Live ranked feed |
Sources, feeds, and keyword formats: hub keyword sources and live feeds.
app downloads / app rankings still need an Android bundle ID (com.openai.chatgpt).
Cursor
~/.cursor/mcp.json:
{
"mcpServers": {
"trend-feeds": {
"url": "https://api.trendsapi.ai/mcp",
"transport": "http",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}
VS Code
.vscode/mcp.json:
{
"servers": {
"trend-feeds": {
"type": "http",
"url": "https://api.trendsapi.ai/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}
Claude Desktop
{
"mcpServers": {
"trend-feeds": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.trendsapi.ai/mcp", "--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer YOUR_TOKEN" }
}
}
}
Claude.ai: Settings → Connectors → Add custom connector → https://api.trendsapi.ai/mcp.
No local production server in this repo.
License
MIT. See LICENSE.
الأسئلة الشائعة
ما هو Trends API؟
Trend data from Google, TikTok, Amazon, Reddit, YouTube, Steam, npm and more as JSON
كيف أثبّت Trends API؟
يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http trends-api 'https://api.trendsapi.ai/mcp' --header 'Authorization: <Bearer token. Get your free API key at https://trendsapi.ai>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج Trends API إلى مفتاح API؟
نعم. يتطلب Authorization، وتضبطها في إعداداته.
هل Trends API مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون Trends API؟
ينشره trendsapi-ai. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.