跳转到正文
API 与 MCP

关键词搜索API / MCP

  • 与插件同一份数据
  • 查到才扣 1 积分
  • REST + MCP
接入方式
示意数字
请求
POST/api/public/v1/search-volume
keywords
["matcha","cold brew"]
country
"us"
currency
"usd"
1 积分
  • matchaCPC $0.92
    45万次搜索 / 月
  • cold brewCPC $1.10
    9.1万次搜索 / 月

01 / 两种接入

选一种

同一把密钥,同一份积分。

REST API

脚本和后端

适合定时任务、报表、批量查词

  • 每次最多 100 个词
  • 普通 JSON,curl 就能调
POST/api/public/v1/search-volume
{"keywords":["matcha","cold brew"],"country":"us","currency":"usd"}
看 REST 示例

MCP

AI 助手

适合Claude 等 MCP 客户端

  • 贴一段配置就好
  • get_usage · get_search_volume

找出每月搜索 10 万以上、CPC 低于 $1 的饮品词,哪个涨得最快?

拿 MCP 配置

一把密钥,一份积分,两种方式都能用。

开通调用

02 / 快速开始

三步

  1. 1

    开通

    需要套餐或加量包。

    看看套餐
  2. 2

    创建密钥

    账户 → API 与 MCP。

    去创建密钥
  3. 3

    调用

    先查余额,再查词。

    看示例代码
REST API

查余额

usagebash
curl "https://trendloomy.com/api/public/v1/usage" \
  -H "Authorization: Bearer YOUR_API_KEY"

搜索量

search-volumebash
curl -X POST "https://trendloomy.com/api/public/v1/search-volume" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"keywords":["matcha","cold brew"],"country":"us","currency":"usd"}'
MCP

MCP 配置

mcp.jsonjson
{
  "mcpServers": {
    "trendloomy": {
      "url": "https://trendloomy.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

配好之后,直接问

找出每月搜索 10 万以上、CPC 低于 $1 的饮品词,哪个涨得最快?

把 YOUR_API_KEY 换成你的密钥。

打开 API 与 MCP

03 / 接口

两个接口

请求头: Authorization: Bearer YOUR_API_KEY

GET/api/public/v1/usage

余额

剩余积分和限额,免费。

POST/api/public/v1/search-volume

搜索量

每个词的搜索量、CPC、竞争度和趋势。

keywords
1–100 个词
country
如 us
currency
如 usd
Idempotency-Key
请求头,每次唯一

返回

200 OKjson
{
  "request_id": "9f2c1a7e",
  "charged_credits": 1,
  "success": true,
  "results": [
    {
      "keyword": "matcha",
      "volume": 450000,
      "cpc_currency": "USD",
      "average_cpc": "0.92",
      "competition": 0.41,
      "trend": [{ "month": "Oct", "year": 2026, "value": 430000 }]
    }
  ],
  "errors": [
    { "provider": "volume", "keywords": ["cold brew"], "error": "no_data" }
  ]
}
  • charged_credits实际扣除的积分
  • results查到数据的词
  • errors没数据的词,不扣积分

没数据的词出现在 errors 里,不扣积分。

04 / 限额

按账户算,不按密钥

每分钟请求数
60
同时进行的查询数
2
密钥 1密钥 2密钥 3
共用一份限额

怎么计费

  • 查余额免费。
  • 只为查到数据的词付积分。
  • 随时可以撤销密钥。

开通条件

需要套餐或加量包

只有注册赠送的积分不能开通。

看看套餐

发出第一次调用