Threads 视频与图片下载 API
使用 Threads 视频下载 API 解析已支持的公开链接,返回视频、图片、音频和清理敏感字段后的平台全量数据。
EasyDown 会在上游结果中按 shortcode 精确匹配目标帖,而不是默认使用第一条,再通过统一 REST 结构返回完整媒体。
适合构建 Threads 视频下载功能,只返回请求 URL 对应的目标帖子。
当你既需要稳定的可下载媒体,又需要平台专属字段时,使用此接口。
接口地址
POST https://api.easydown.org/api/v1/platforms/threads/parse
支持的 URL 格式
threads.com/@{user}/post/{id}threads.net/@{user}/post/{id}threads.com/share/{code}
可用示例
https://www.threads.com/@eekeai/post/DDhV3LWhrlkhttps://www.threads.com/share/BAVE8ZDthE/
该平台响应会返回什么
媒体帖会返回全部有效视频规格和轮播中的每张图片;上游提供的独立重复规格可能会被保留。
已发布的平台数据字段
接口会保留目标作品最终响应中的其他公开字段,并递归删除敏感字段。下表字段在当前 platformDataVersion 内保持稳定。
| 字段 | 类型 | 说明 |
|---|---|---|
data.media | object | 统一的图片、视频、音频、标题、封面和时长。 |
data.platformDataVersion | string | Threads的公开数据契约版本,当前为 1。 |
data.platformData.id | string | 目标作品在平台中的公开标识,请按字符串保存以避免大整数精度丢失。 |
data.platformData.code | string | 目标作品在平台中的公开标识,请按字符串保存以避免大整数精度丢失。 |
data.platformData.text | string | 目标作品公开展示的标题、正文或说明文字。 |
data.platformData.user | object | 目标作品作者的公开资料字段,不包含联系方式或鉴权信息。 |
data.platformData.images | array | 目标作品的图片、封面或图集项目;数组顺序与平台返回顺序一致。 |
data.platformData.video_versions | array | 目标作品的视频播放、清晰度、编码、尺寸和媒体地址信息。 |
data.platformData.carousel_media | array | 目标作品的图片、封面或图集项目;数组顺序与平台返回顺序一致。 |
{
"status": 200,
"data": {
"media": {
"platform": "threads",
"title": "公开作品示例",
"thumbnail": "https://public-cdn.example/cover.jpg",
"duration": 18,
"images": [],
"videos": [
{
"url": "https://public-cdn.example/video.mp4",
"quality": "1080p",
"mimeType": "video/mp4",
"width": 1920,
"height": 1080,
"hasAudio": true,
"source": "direct"
}
],
"audios": []
},
"platformData": {
"id": "example-thread-id",
"code": "DDhV3LWhrlk",
"text": "Example public Threads post",
"user": {
"username": "creator"
},
"images": [
{
"url": "https://media.example/image.jpg",
"width": 1080,
"height": 1350
}
]
},
"platformDataVersion": "1"
},
"msg": "success"
}下载与代理建议
使用后端代理并携带浏览器 User-Agent 与对应 Threads Referer。源签名和规格可能变化,返回 URL 只适合短期保存。
限制与行为
纯文本帖子、主页、内容流、回复、搜索结果、私密和已删除帖子不会返回可下载媒体。
仅支持公开内容。私密、已删除、年龄限制、地区限制、直播或其他不可用内容可能解析失败,失败不消耗额度。
只有返回可下载媒体后才扣费,每次成功解析消耗 1 个额度(credit)。鉴权、参数校验、权限、内容不可用、无媒体和上游故障均不扣费。
故障排查
- 使用带 threads.com 或 threads.net 的标准 shortcode 帖子 URL。
- 纯文本成功响应应按无媒体结果处理。
- 保留返回的全部轮播图片,不要只取第一张。
常见问题
失败请求会消耗额度吗?
不会。只有 API 成功返回可下载媒体后才消耗 1 个额度。
为什么有效的公开链接仍可能失败?
作品可能已经删除、设为私密、存在地区限制、属于直播、没有可下载媒体,或上游服务暂时不可用。
相关指南
交互式 API 参考
下方 curl、JavaScript、Python 示例和接口模式定义均由生产 OpenAPI 3.1 契约生成。
在线调试面板会直接请求 api.easydown.org。Token 只保存在当前页面内存中,刷新后立即清除。
在线调试
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/platforms/threads/parse" \ -H "Content-Type: application/json" \ -d '{}'{ "status": 200, "data": { "media": { "platform": "tiktok", "title": "string", "thumbnail": "string", "duration": 0, "images": [ { "url": "http://example.com", "width": 0, "height": 0 } ], "videos": [ { "url": "http://example.com", "quality": "string", "mimeType": "string", "width": 0, "height": 0, "hasAudio": true, "source": "direct", "headers": { "property1": "string", "property2": "string" } } ], "audios": [ { "url": "http://example.com", "quality": "string", "mimeType": "string", "bitrate": 0, "source": "direct", "headers": { "property1": "string", "property2": "string" } } ] }, "platformData": { "id": "string", "code": "string", "text": "string", "user": {}, "images": [ null ], "video_versions": [ null ], "carousel_media": [ null ] }, "platformDataVersion": "1" }, "msg": "success"}