获取抖音作品内容详情 (优质库)

T+1优质库最低 ¥0.02/次起即将上线需配置 API Key

查询作品信息

单价随接口累计调用量阶梯调整

POSThttps://redfox.hk/story/api/dyData/queryWork

API 密钥获取与配置

获取密钥

调用 API 前,请先在控制台生成 API 密钥并完成配置。在 HTTP 请求头中添加API Key 字段,密钥用于身份校验与额度计费。

获取步骤

  1. 前往控制台页面,进入 API 密钥管理模块。
  2. 若无已生成的密钥,点击生成新密钥,复制并妥善保存密钥。
  3. 在请求头中添加 REDFOX_API_KEY或X-API-KEY字段并填入密钥后即可调用。

API说明

Method:POST

Host:https://redfox.hk

Path:/story/api/dyData/queryWork

请求头

名称类型必填说明示例
REDFOX_API_KEYstring是平台鉴权令牌,每次请求必填ak_xxxxxx
Content-Typestring是请求体数据类型application/json

请求参数

参数类型必填说明示例
workIdString否作品ID(二选一)10000123456789
workUrlString否作品链接(二选一)https://example.com/example

返回值与结构

统一包装一般为 `code`、`message`/`msg`、`data`(以实际服务为准)。

响应字段

字段类型说明示例
codeInteger状态码(2000=成功)2000
msgString提示信息成功
dataObject返回数据
accountIdString账号ID10000123456789
accountNameStringaccount名称示例用户
audioUrlStringaudio链接https://example.com/example
authorLinkStringauthorLinkhttps://example.com/example
avatarUrlString头像链接https://example.com/example
collectCountInteger收藏数100
commentCountInteger评论数100
commentTopKeywordsArraycommentTopKeywords示例关键词
contentString内容示例内容文本
coverUrlString封面链接https://example.com/example
crawlTimeStringcrawl时间2026-01-01 00:00:00
durationInteger时长60
followerCountIntegerfollower数量100
isPromotionIntegerisPromotiontrue
likeCountInteger点赞数100
publishTimeString发布时间2026-01-01 00:00:00
repostCountIntegerrepost数量100
shareCountInteger分享数100
titleString标题示例标题
workIdString作品ID10000123456789
workTypeStringwork类型default
workUrlString作品链接https://example.com/example

请求示例

curl -X POST "https://redfox.hk/story/api/dyData/queryWork"
  -H "Content-Type: application/json"
  -H "REDFOX_API_KEY: your_api_key"
  -d '{"workId": "10000123456789", "workUrl": "https://example.com/example"}'

响应示例

{
  "code": 2000,
  "msg": "成功",
  "data": {
    "workId": "10000123456789",
    "title": "示例标题",
    "content": "示例内容文本",
    "workUrl": "https://example.com/example",
    "coverUrl": "https://example.com/example",
    "audioUrl": "https://example.com/example",
    "workType": "default",
    "duration": 60,
    "publishTime": "2026-01-01 00:00:00",
    "repostCount": 100,
    "commentCount": 100,
    "shareCount": 100,
    "likeCount": 100,
    "collectCount": 100,
    "commentTopKeywords": [],
    "isPromotion": true,
    "accountId": "10000123456789",
    "accountName": "示例用户",
    "authorLink": "https://example.com/example",
    "avatarUrl": "https://example.com/example",
    "followerCount": 100,
    "crawlTime": "2026-01-01 00:00:00"
  }
}

常见状态码说明

调用接口时,响应体中的 code 字段对应以下状态码。完整列表请查看 API 状态码说明页。

状态码说明排查建议
400请求参数错误检查请求体、Query 参数是否与文档一致,必填项是否齐全。
401鉴权失败确认请求头已添加 REDFOX_API_KEY 或 X-API-KEY,且密钥有效、未禁用。
403无权限访问当前密钥或账号无权调用该接口,请检查密钥状态与接口权限。
500系统内部错误服务端异常,请稍后重试;持续出现请联系技术支持。
503服务暂不可用服务维护或短暂过载,请间隔一段时间后重试。
1001缺少必要参数对照「请求参数」表,补全必填字段。
1002参数格式不正确检查字段类型与格式(如 URL、日期、枚举值)是否符合说明。
1003参数类型错误确认 JSON 中数字、字符串、布尔等类型与文档定义一致。
3103密钥不存在密钥可能已删除或填写错误,请前往控制台核对并重新复制。
3105API Key 已禁用在控制台启用该密钥,或创建新密钥后替换请求头中的值。
3201积分不足账户余额不足以支付本次调用,请前往控制台充值后再试。
3202积分账户不存在账号积分账户异常,请登录控制台确认账户状态。
4004操作过于频繁,请稍后再试触发频率限制,降低请求频率或增加调用间隔后重试。