---
title: "抖音巨量算数关键词热度趋势接口 · SocialToAI"
canonical: https://socialtoai.app/zh/douyin-keyword-history-api/
updated: 2026-11-01
---

# 抖音巨量算数关键词热度趋势接口

按一个关键词或一次 1 到 5 个关键词，加起止日期，取每个词在抖音上逐日的搜索指数和综合指数（巨量算数，也就是抖音指数），带本期、上期和去年同期的日均值。指数是平台算出的热度分，不是搜索次数；日期是中国时间（UTC+8）的自然日。抖音巨量算数关键词热度趋势 API（数据接口）每次调用 4 积分（约 $0.008–$0.013），失败不扣。最近实测：2026-11-17。

- 页面：https://socialtoai.app/zh/douyin-keyword-history-api/
- 最近更新：2026-11-01
- 最近实测：2026-11-17

| 请求 | 价格键 | 积分 |
| --- | --- | --- |
| `POST /v1/call/douyin.keyword_history` | `douyin.keyword_history` | 4 |

每日监控：对你的 AI 说“每天帮我盯着”，这个调用每天自己跑，只把新内容发给你，一个月最多 124 积分，约 ¥3（$0.41）。 [看怎么设](https://socialtoai.app/zh/docs/schedules.md#watch)

## 不写代码？

不用懂下面这些。三种用法任选：

- 每天看竞品：填账号链接，新内容每天发到邮箱。 [开始盯一个账号](https://socialtoai.app/zh/tools/account-watch.md)
- 看一个品牌口碑：填品牌名，当场拿到结果。 [打开品牌口碑](https://socialtoai.app/zh/tools/brand-buzz.md)
- 让 ChatGPT 替你读：在电脑上粘贴一个地址就行，手机上暂时加不了。 [看步骤](https://socialtoai.app/zh/connect/chatgpt.md)

## 调用抖音巨量算数关键词热度趋势，你会拿到什么

录制的一次调用返回了 2 条，下面是第一条的每个字段。名称和正文在示例里去掉了，数字是录制时的真实值。

给 AI 读更省：同一份录制数据（2 条），平台原始 JSON 约 12,007 token，这个接口返回约 3,272 token，少 72%（2026-11-06 实测）。

| 字段 | 录制时的值 |
| --- | --- |
| title | 咖啡 |
| url | null |
| rank | null |
| heat | null |
| fields.points | 7 项 |

每次 4 积分（≈ $0.008–$0.013），$10 约够 750 次。

## 抖音巨量算数关键词热度趋势的请求与返回

```bash
curl https://socialtoai.app/v1/call/douyin.keyword_history \
  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "since": "2026-09-01T00:00:00Z",
    "until": "2026-09-30T00:00:00Z",
    "keyword": "咖啡"
  }'
```

```python
import os
import uuid
import requests

response = requests.post(
    "https://socialtoai.app/v1/call/douyin.keyword_history",
    headers={
        "Authorization": f"Bearer {os.environ['SOCIALTOAI_API_KEY']}",
        # A new key for each request; the same one again retries it without paying twice.
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "since": "2026-09-01T00:00:00Z",
        "until": "2026-09-30T00:00:00Z",
        "keyword": "咖啡",
    },
)
print(response.json())
```

## 抖音巨量算数关键词热度趋势的参数

| 名称 | 类型 | 是否必填 | 默认值 | 说明 |
| --- | --- | --- | --- | --- |
| `keyword` | string | 几个里给一个 | — | 一个关键词，不超过 50 个字符、不含逗号，不分大小写 |
| `keywords` | string[] | 几个里给一个 | — | 1 到 5 个关键词，每个不超过 50 个字符、不含逗号，不分大小写；每个有数的词返回一条，平台没收录的词不在返回里 |
| `since` | datetime | 必填 | — | 从哪一天起（含）：取这个时刻所在的中国时间（UTC+8）自然日，写 2026-09-01 就是 9 月 1 日 |
| `until` | datetime | 必填 | — | 到哪一天止（含），取法同上。平台的数通常晚一到两天出：还没出数的日子，指数为 null |

只返回第一页：最多 5 条，没有 cursor 参数，也不能往后翻。

## 这些值从哪里拿

- `keywords`：1 到 5 个关键词，每个不超过 50 个字符、不含逗号，不分大小写；每个有数的词返回一条，平台没收录的词不在返回里
  平台上没有别的接口返回它。

## 抖音巨量算数关键词热度趋势返回的字段

| 字段 | 类型 | 含义 | 能否给出 |
| --- | --- | --- | --- |
| `items[].extra` | object | 平台在下面这些字段之外给的内容，用平台自己的字段名（IP 属地、uid、有没有橱窗等），每个是什么见接口的 extra_fields；没有就是空对象。评论和评价里不会有写的人是谁。 | 有 |
| `items[].title` | string | 条目的标题或名称。 | 有 |
| `items[].url` | string | 能打开它的链接；平台的列表不带链接时为 null。 | 有 |
| `items[].rank` | integer | 榜上的名次，从 1 起。 | 有 |
| `items[].heat` | integer | 平台给的热度值。 | 有 |
| `items[].fields.points` | array | 逐日数据，每天一项，按日期从早到晚：date、search_index、composite_index、notes、impressions、views、engagements。 | 有；其中 notes、impressions、views、engagements 始终是 null |

每一条另有 platform、id、ref、approx、type；items 外面的部分每个调用都一样。 [返回格式](https://socialtoai.app/zh/docs/api/response.md)

## 示例返回

```json
{
  "request_id": "req_00000000-0000-4000-8000-000000000001",
  "schema_version": "v1",
  "fetched_at": "2026-10-12T21:47:47.000Z",
  "action": "call",
  "op": "douyin.keyword_history",
  "platform": "douyin",
  "status": "ok",
  "items": [
    {
      "platform": "douyin",
      "id": "咖啡",
      "ref": "咖啡",
      "approx": [],
      "extra": {},
      "type": "entry",
      "entry_type": "keyword_history",
      "title": "咖啡",
      "url": null,
      "rank": null,
      "heat": null,
      "fields": {
        "points": [
          {
            "date": "2026-09-01T00:00:00Z",
            "search_index": 4542097,
            "composite_index": 1627826,
            "notes": null,
            "impressions": null,
            "views": null,
            "engagements": null
          },
          {
            "date": "2026-09-02T00:00:00Z",
            "search_index": 4430237,
            "composite_index": 1603543,
            "notes": null,
            "impressions": null,
            "views": null,
            "engagements": null
          },
          {
            "date": "2026-09-03T00:00:00Z",
            "search_index": 4439049,
            "composite_index": 1606224,
            "notes": null,
            "impressions": null,
            "views": null,
            "engagements": null
          },
          {
            "date": "2026-09-04T00:00:00Z",
            "search_index": 4590172,
            "composite_index": 1648872,
            "notes": null,
            "impressions": null,
            "views": null,
            "engagements": null
          },
          {
            "date": "2026-09-05T00:00:00Z",
            "search_index": 5608382,
            "composite_index": 1966637,
            "notes": null,
            "impressions": null,
            "views": null,
            "engagements": null
          },
          {
            "date": "2026-09-06T00:00:00Z",
            "search_index": 5341970,
            "composite_index": 1888380,
            "notes": null,
            "impressions": null,
            "views": null,
            "engagements": null
          },
          {
            "date": "2026-09-07T00:00:00Z",
            "search_index": 5098808,
            "composite_index": 1808789,
            "notes": null,
            "impressions": null,
            "views": null,
            "engagements": null
          }
        ]
      }
    }
  ],
  "unavailable": ["fields.points.notes", "fields.points.impressions", "fields.points.views", "fields.points.engagements"],
  "page": {
    "has_more": false
  },
  "warnings": [],
  "applied_params": {
    "since": "2026-09-01T00:00:00Z",
    "until": "2026-09-30T00:00:00Z",
    "keyword": "咖啡"
  },
  "cost_credits": 4,
  "billing": {
    "cost_credits": 4,
    "balance_credits": 96,
    "today_spend_credits": 4,
    "daily_limit_credits": null,
    "daily_remaining_credits": null,
    "display": "本次 4 积分（约 $0.013），余额 96 积分（约 $0.32）"
  },
  "replayed": false
}
```

## 抖音巨量算数关键词热度趋势的翻页与计费

- 一次调用只返回第一页，最多 5 条，没有 cursor，4 积分。
- 正常执行但没有结果，算一次成功的调用：status 为 "empty"，items 为空，扣 4 积分。
- 抖音的这个接口分不清“视频不存在”和“没有数据”：两种情况都返回 empty，并照常扣费。
- 每把 Key 每秒 5 次，购买后 20 次；超出不扣费。 [频率限制](https://socialtoai.app/zh/docs/credits-and-billing.md#rate-limits)
- 失败的调用 0 积分，不会自动重试。 [错误码](https://socialtoai.app/zh/docs/api/errors.md)
- 首屏的“最近实测”是最近一次真实调用成功的日子。每次调用从平台读取，返回里的 `fetched_at` 是读取时间；同一把 Key 5 分钟内重发完全相同的请求算重放（`replayed: true`），0 积分，返回第一次读到的结果。

## 接好 MCP 后，这样问就会用到抖音巨量算数关键词热度趋势

- 按一个关键词或一次 1 到 5 个关键词，加起止日期，取每个词在抖音上逐日的搜索指数和综合指数（巨量算数，也就是抖音指数），带本期、上期和去年同期的日均值（since：2026-09-01T00:00:00Z，until：2026-09-30T00:00:00Z，keyword：咖啡） → `call {"op":"douyin.keyword_history","since":"2026-09-01T00:00:00Z","until":"2026-09-30T00:00:00Z","keyword":"咖啡"}`，4 积分

## 交给你的 AI

```
用 SocialToAI 的 MCP 服务（https://socialtoai.app/mcp）完成这件事：按一个关键词或一次 1 到 5 个关键词，加起止日期，取每个词在抖音上逐日的搜索指数和综合指数（巨量算数，也就是抖音指数），带本期、上期和去年同期的日均值（since：2026-09-01T00:00:00Z，until：2026-09-30T00:00:00Z，keyword：咖啡）
调用 call 工具，参数是 {"op":"douyin.keyword_history","since":"2026-09-01T00:00:00Z","until":"2026-09-30T00:00:00Z","keyword":"咖啡"}。必填：keyword、keywords、since、until。
这个接口只给第一页，最多 5 条，不能往后翻；每次 4 积分。
开跑前先算出总共要多少积分，问我同意了再调用。
如果还没接上 SocialToAI，告诉我怎么接，不要让我把 Key 贴进对话。
回答时附上你用到的每一条的链接，最后告诉我花了多少积分。
```

## 用到它的工作场景

- [趋势观察](https://socialtoai.app/zh/use-cases/trend-watching.md)：让 AI 读各平台的热榜和一个话题下正在起来的内容，告诉你什么在涨、在哪个平台，附链接。

## 同一个调用在其他平台

| 接口 | 价格键 | 积分 |
| --- | --- | --- |
| [小红书蒲公英关键词逐日搜索指数接口](https://socialtoai.app/zh/xiaohongshu-keyword-history-api.md) | `xiaohongshu.keyword_history` | 24 |
| [微信指数接口](https://socialtoai.app/zh/wechat-keyword-history-api.md) | `wechat.keyword_history` | 60 |

## 抖音的其他接口

| 接口 | 做什么 | 价格键 | 积分 |
| --- | --- | --- | --- |
| [抖音星图达人商业报价接口](https://socialtoai.app/zh/douyin-kol-rates-api.md) | 按星图达人编号取这位达人各种合作形式的报价和结算方式。 | `douyin.kol_rates` | 24 |
| [抖音巨量算数关键词人群画像接口](https://socialtoai.app/zh/douyin-keyword-audience-api.md) | 按关键词和起止日期，取抖音上关注这个词的人群画像（巨量算数）。 | `douyin.keyword_audience` | 2 |
| [抖音巨量算数品牌指数对比接口](https://socialtoai.app/zh/douyin-brand-radar-api.md) | 按品牌名和起止日期，取这个品牌在抖音上搜索指数、内容指数、传播指数的日均值（巨量算数），并带同行业全部品牌和前 3、5、10、15、30 名品牌的均值作参照。 | `douyin.brand_radar` | 2 |
| [抖音巨量算数品牌指数趋势接口](https://socialtoai.app/zh/douyin-brand-history-api.md) | 按品牌名和起止日期，取这个品牌在抖音上逐日的搜索指数、内容指数和传播指数（巨量算数）。 | `douyin.brand_history` | 2 |
| [抖音巨量算数实时热点接口](https://socialtoai.app/zh/douyin-index-topics-api.md) | 取巨量算数的实时热点榜或飙升热点榜，各约 30 条。 | `douyin.index_topics` | 2 |
| [抖音巨量算数达人核心指标接口](https://socialtoai.app/zh/douyin-account-metrics-api.md) | 按抖音账号的数字编号取巨量算数给的达人核心指标。 | `douyin.account_metrics` | 2 |
| [抖音星图达人传播数据接口](https://socialtoai.app/zh/douyin-kol-performance-api.md) | 按星图达人编号取这位抖音达人近 30 天或 90 天视频的传播数据。 | `douyin.kol_performance` | 3 |
| [抖音评论接口](https://socialtoai.app/zh/douyin-comments-api.md) | 一条视频下的评论：正文、点赞数、回复数和时间。 | `douyin.comments` | 2 |
| [抖音视频播放量接口](https://socialtoai.app/zh/douyin-video-stats-api.md) | 按视频编号取一条抖音视频此刻的数字。 | `douyin.video_stats` | 2 |
| [抖音星图达人搜索接口](https://socialtoai.app/zh/douyin-kol-search-api.md) | 按昵称里的词搜索星图上的抖音达人，可按粉丝数、预期 CPM（元）、性别筛选，按预期 CPM 从低到高排。 | `douyin.kol_search` | 3 |

## 接着看

- [抖音官方 API 的申请条件和价格](https://socialtoai.app/zh/does-douyin-have-an-api.md)：官方能做什么、谁能申请、多少钱，带来源。
- [巨量算数全部接口](https://socialtoai.app/zh/douyin-trend-index-api.md)：关键词、品牌、达人和热点，10 个接口一页看全。
- [怎么让 Claude 读抖音评论](https://socialtoai.app/zh/how-to/let-claude-read-douyin-comments.md)：让 Claude 读抖音视频下的评论
- [让 Claude Code 和 Cursor 读小红书和抖音：不扫码、不用 Cookie、不牵连账号](https://socialtoai.app/zh/how-to/let-claude-code-and-cursor-read-xiaohongshu-and-douyin.md)：让 Claude Code、Cursor 读小红书和抖音：不扫码、不用 Cookie，以及本地自建要付出什么
- [海外品牌怎么用 AI 监测小红书、抖音和微博](https://socialtoai.app/zh/how-to/monitor-xiaohongshu-douyin-weibo-from-outside-china.md)：海外品牌用 AI 监测小红书、抖音和微博：英文输出、带原帖链接
- [巨量算数的数据怎么取？](https://socialtoai.app/zh/can-ai-read/douyin-trend-index.md)：网页还是接口：各适合什么，带一次真实请求
- [抖音 MCP 服务器](https://socialtoai.app/zh/mcp/douyin.md)：让你的 AI 直接读抖音。

## 关于抖音巨量算数关键词热度趋势的常见问题

**需要抖音账号，或者申请抖音官方的 API 吗？**

不需要，只要一把 SocialToAI 的 Key。返回的是抖音上公开可见的内容和账号信息，你不用登录抖音，也不用在那边申请任何东西。

**能翻到下一页吗？**

不能。抖音的这个接口只给第一页（最多 5 条），返回里没有 cursor，page.has_more 始终是 false。

**一次调用折合多少钱？**

4 积分：按每美元 300 积分（$10 起的购买）是 $0.013，按每美元 500 积分（$200 起）是 $0.008。积分不过期，不订阅。注册送 100 积分，不用绑卡。

**调用失败或没搜到，扣不扣积分？**

失败的调用 0 积分，也不会自动重试。正常执行但没有结果的算一次成功的调用：status 为 "empty"，扣 4 积分。这个接口分不清“不存在”和“没有数据”，两种都按空结果扣费。

**一次调用返回多少条？**

一次调用只返回第一页，最多 5 条，没有 cursor，4 积分。

**调用频率有限制吗？**

每把 Key 每秒 5 次，第一次购买后每秒 20 次。超出的请求会告诉你等多久再试，不扣积分。

**怎么在 Claude、ChatGPT 或 Cursor 里用？**

可以。在 Claude 或 ChatGPT 里把 MCP 地址 https://socialtoai.app/mcp 加成自定义连接器，用邮箱验证码登录后点“允许”，不用贴 Key。Claude Code 运行一条命令后输入 /mcp、选 socialtoai、登录；Codex 和 Cursor 也是登录授权，步骤在接入页。接好后直接用大白话问，你的 AI 会替你调用 call。

## 大家还问

- [帮我看看一个品牌最近的舆情](https://socialtoai.app/zh/how-to/brand-sentiment-lately.md)
- [关键词搜小红书和抖音的爆款笔记、视频](https://socialtoai.app/zh/how-to/viral-xiaohongshu-douyin-by-keyword.md)
- [抖音视频的播放量怎么查](https://socialtoai.app/zh/how-to/douyin-video-play-count.md)
- [不写代码，让 ChatGPT 和 Claude 直接读小红书、抖音（2026）](https://socialtoai.app/zh/how-to/chatgpt-and-claude-read-xiaohongshu-and-douyin-without-code.md)
