根据作品地址获取公众号作品(实时)
最低 ¥0.03/次起即将上线需配置 API Key通过文章链接查询公众号文章详细内容。
单价随接口累计调用量阶梯调整
POST
https://redfox.hk/story/api/gzh/ability/temp/article/contentAPI 密钥获取与配置
获取密钥调用 API 前,请先在控制台生成 API 密钥并完成配置。在 HTTP 请求头中添加API Key 字段,密钥用于身份校验与额度计费。
获取步骤
- 前往控制台页面,进入 API 密钥管理模块。
- 若无已生成的密钥,点击生成新密钥,复制并妥善保存密钥。
- 在请求头中添加
REDFOX_API_KEY或X-API-KEY字段并填入密钥后即可调用。
API说明
Method:POST
Host:https://redfox.hk
Path:/story/api/gzh/ability/temp/article/content
请求头
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| REDFOX_API_KEY | string | 是 | 平台鉴权令牌,每次请求必填 | ak_xxxxxx |
| Content-Type | string | 是 | 请求体数据类型 | application/json |
请求参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| articleUrl | String | 是 | 文章链接,必填 | https://mp.weixin.qq.com/s/i4pZP3kBuMnxr-1js8200w |
返回值与结构
统一包装一般为 `code`、`message`/`msg`、`data`(以实际服务为准)。
响应字段
| 字段 | 类型 | 说明 | 示例 |
|---|---|---|---|
| code | Integer | 接口响应状态码,200表示成功 | 200 |
| msg | String | 接口响应的提示或错误信息 | 成功 |
| data | Object | 接口返回的主要数据内容 | |
| accountDesc | String | 文章描述 | 科研无限,云接未来! |
| accountId | String | 公众号微信号 | researchcloud01 |
| accountName | String | 公众号名称 | 科研云 |
| adStatus | Integer | 广告状态,0-非广告,1-广告 | 0 |
| articleContent | String | 文章正文内容 | 关于举办人工智能赋能科研... |
| articleSummary | String | 文章摘要 | 关于举办人工智能赋能科研... |
| articleTitle | String | 文章标题 | 人工智能热门课程 |
| articleUrl | String | 文章链接 | http://mp.weixin.qq.com/s?__biz=... |
| audioLink | String | 音频链接 | |
| authorName | String | 作者名称 | 科研云 |
| avatarUrl | String | 公众号头像链接 | http://mmbiz.qpic.cn/... |
| bgmUrl | String | 背景音乐链接 | |
| bizKey | String | 公众号业务密钥 | MzI4NTkzNTgyOA== |
| commentSegmentId | String | 分段评论ID | |
| countryId | String | 国家ID | 156 |
| countryName | String | 国家名称 | 中国 |
| coverImageUrl | String | 封面图片链接 | https://mmbiz.qpic.cn/... |
| dataUpdateTime | Integer | 数据更新时间戳 | 1782721210424 |
| downloadState | Integer | 下载状态 | 1 |
| gifList | Array | GIF列表 | |
| imageUrls | Array | 图片链接列表 | |
| indexLink | String | 首页链接 | http://wx.qlogo.cn/... |
| mainCommentId | Integer | 主评论ID | 4522991706383859700 |
| messageId | String | 消息ID | 2247832039 |
| newCommentId | Integer | 新评论ID | 4522991706383859700 |
| originalAuthor | String | 原创作者 | |
| originalFlag | Integer | 原创标识,1-原创,0-非原创 | 0 |
| originalUrl | String | 原始链接 | https://mp.weixin.qq.com/s?... |
| picList | Array | 图片详情列表 | |
| imageHeight | Integer | 图片高度 | 270 |
| imageWidth | Integer | 图片宽度 | 1080 |
| picUrl | String | 图片链接 | https://mmbiz.qpic.cn/... |
| provinceName | String | 省份名称 | 北京 |
| publishDate | String | 文章发布时间 | 2026-05-19 17:39:46 |
| publishOrderNum | Integer | 发布顺序 | 0 |
| remark | String | 备注信息 | |
| sourceLink | String | 来源链接 | |
| tagList | Array | 标签列表 | |
| topicList | Array | 话题列表 | |
| albumId | String | 话题ID | |
| albumName | String | 话题名称 | |
| contentCount | Integer | 内容数量 | |
| uniqueId | String | 文章唯一标识 | 3F4DE056583609162E0816FBE8C183A3 |
| videoLink | String | 视频链接 | |
| videoPageInfoList | Array | 视频页面信息列表 | |
| dramaInfo | Object | 剧集信息 | |
| dramaVideoInfo | Object | 剧集视频信息 | |
| mpVideoTransInfo | Array | 视频转码信息 | |
| wechatId | String | 公众号原始ID | gh_92efa4e6779a |
请求示例
请求参数:
{
"articleUrl": "https://mp.weixin.qq.com/s/i4pZP3kBuMnxr-1js8200w"
}响应示例
{
"code": 200,
"data": {
"articleUrl": "http://mp.weixin.qq.com/s?__biz=...",
"articleTitle": "人工智能热门课程",
"articleContent": "关于举办人工智能赋能科研...",
"articleSummary": "关于举办人工智能赋能科研...",
"accountDesc": "科研无限,云接未来!",
"publishDate": "2026-05-19 17:39:46",
"messageId": "2247832039",
"uniqueId": "3F4DE056583609162E0816FBE8C183A3",
"publishOrderNum": 0,
"originalFlag": 0,
"remark": "",
"wechatId": "gh_92efa4e6779a",
"accountId": "researchcloud01",
"accountName": "科研云",
"authorName": "科研云",
"avatarUrl": "http://mmbiz.qpic.cn/...",
"bizKey": "MzI4NTkzNTgyOA==",
"originalAuthor": "",
"indexLink": "http://wx.qlogo.cn/...",
"originalUrl": "https://mp.weixin.qq.com/s?...",
"sourceLink": "",
"coverImageUrl": "https://mmbiz.qpic.cn/...",
"bgmUrl": "",
"audioLink": "",
"videoLink": "",
"adStatus": 0,
"picList": [
{
"imageWidth": 1080,
"picUrl": "https://mmbiz.qpic.cn/...",
"imageHeight": 270
}
],
"gifList": [],
"imageUrls": [
"https://mmbiz.qpic.cn/..."
],
"mainCommentId": "4522991706383859700",
"newCommentId": "4522991706383859700",
"commentSegmentId": "",
"countryId": "156",
"countryName": "中国",
"provinceName": "北京",
"tagList": [],
"topicList": [],
"videoPageInfoList": [
{
"dramaInfo": {},
"dramaVideoInfo": {},
"mpVideoTransInfo": []
}
],
"dataUpdateTime": 1782721210424,
"downloadState": 1
},
"msg": "成功"
}常见状态码说明
调用接口时,响应体中的 code 字段对应以下状态码。完整列表请查看 API 状态码说明页。
| 状态码 | 说明 | 排查建议 |
|---|---|---|
400 | 请求参数错误 | 检查请求体、Query 参数是否与文档一致,必填项是否齐全。 |
401 | 鉴权失败 | 确认请求头已添加 REDFOX_API_KEY 或 X-API-KEY,且密钥有效、未禁用。 |
403 | 无权限访问 | 当前密钥或账号无权调用该接口,请检查密钥状态与接口权限。 |
500 | 系统内部错误 | 服务端异常,请稍后重试;持续出现请联系技术支持。 |
503 | 服务暂不可用 | 服务维护或短暂过载,请间隔一段时间后重试。 |
1001 | 缺少必要参数 | 对照「请求参数」表,补全必填字段。 |
1002 | 参数格式不正确 | 检查字段类型与格式(如 URL、日期、枚举值)是否符合说明。 |
1003 | 参数类型错误 | 确认 JSON 中数字、字符串、布尔等类型与文档定义一致。 |
3103 | 密钥不存在 | 密钥可能已删除或填写错误,请前往控制台核对并重新复制。 |
3105 | API Key 已禁用 | 在控制台启用该密钥,或创建新密钥后替换请求头中的值。 |
3201 | 积分不足 | 账户余额不足以支付本次调用,请前往控制台充值后再试。 |
3202 | 积分账户不存在 | 账号积分账户异常,请登录控制台确认账户状态。 |
4004 | 操作过于频繁,请稍后再试 | 触发频率限制,降低请求频率或增加调用间隔后重试。 |