接口说明

Threads Post API 获取 Threads 帖子详情及附带的作者、媒体和评论等数据。

使用 Pangolinfo API Key 调用,返回结构化 JSON 数据。

请求URL

POST https://scrapeapi.pangolinfo.com/api/v1/social/threads-post

请求头

参数名参数值类型说明
Content-Typeapplication/jsonstring数据格式
AuthorizationBearer xxxstring认证凭证

采集最长约75秒,客户端超时建议设为90秒。

请求参数

参数必填类型说明
targetYesstring帖子链接(支持短链,不支持直接传 id)

仅处理本页列出的请求参数,其他字段忽略。分页游标原样传回,不编码、解码或转换格式。

附带评论限一页;需要继续获取评论时调用对应评论接口。

响应值

返回值类型说明
codeinteger状态码,0 表示成功
messagestring响应信息,成功时为 ok
pointCostnumber本次请求实际消耗的积点
dataobject返回数据,结构见下表
metaobject请求标识及耗时(毫秒)
billingobject计费条数、单价及规则版本

返回参数 data 说明

返回值类型说明
typestringType
可用值: [“post”]
posterobject作者
postobjectPost
commentsobject[]页面内联的回复, 一次性返回, 没有分页; 条数少于 commentsCount 说明未取全

data.poster 字段说明

返回值类型说明
usernamestring | null用户名
fullNamestring | null显示名
avatarstring | null头像
profileUrlstring | null主页链接
isVerifiedboolean是否认证
pkstring | number | null用户数字 id

data.post 字段说明

返回值类型说明
codestring帖子 shortcode
postUrlstring | null帖子链接
captionTextstring | null正文
hashtagsstring[]正文话题 (含 #)
mentionsstring[]正文提及 (含 @)
mediaobject[]媒体列表 (轮播全部展开)
publishedAtobject | null发布时间 (text 为 ISO)
likesnumber | null点赞数
commentsCountnumber | null直接回复数
repostsCountnumber | null转发数
sharesCountnumber | null分享数; 匿名常为 null
quotesCountnumber | null引用数
viewsnumber | null浏览数
pkstring | number | null帖子数字主键
isReplyboolean本身是否一条回复
replyTostring | null被回复的用户名 (isReply 时)
accessibilityCaptionstring | null无障碍描述
linkPreviewobject | null外链预览卡片; 没有为 null
linksstring[]正文外链

data.post.media[] 字段说明

返回值类型说明
typestring媒体类型
可用值: [“image”, “video”]
imageUrlstring | null图片 / 视频封面链接
videoUrlstring | null视频链接 (图片为 null)
widthnumber | null宽 (px)
heightnumber | null高 (px)
accessibilityCaptionstring | null无障碍描述 (平台自动生成或作者填写)

data.post.publishedAt 字段说明

返回值类型说明
textstring | null上游原始时间文本
valuenumber | null解析后的毫秒时间戳; 解析失败为 null

data.post.linkPreview 字段说明

返回值类型说明
urlstring | null链接
displayUrlstring | null显示用的短域名
titlestring | null卡片标题
imageUrlstring | null卡片图片

data.comments[] 字段说明

返回值类型说明
codestring回复帖子 shortcode
avatarstring | null回复者头像
usernamestring | null回复者用户名
fullNamestring | null回复者显示名
profileUrlstring | null回复者主页
contentstring | null回复内容
timeobject | null回复时间 (text 为 ISO)
likesnumber | null点赞数
replyCountnumber该回复下的二级回复数 (内容不展开)
replyTostring | null被回复的用户名
isAuthorReplyboolean是否主帖作者的回复
pkstring | number | null回复数字主键
commentUrlstring | null回复链接
authorPkstring | number | null回复者数字 id
isVerifiedboolean回复者是否认证
hashtagsstring[]正文话题 (含 #)
mentionsstring[]正文提及 (含 @)
mediaobject[]回复附带的媒体
linksstring[]正文外链

data.comments[].time 字段说明

返回值类型说明
textstring | null上游原始时间文本
valuenumber | null解析后的毫秒时间戳; 解析失败为 null

data.comments[].media[] 字段说明

返回值类型说明
typestring媒体类型
可用值: [“image”, “video”]
imageUrlstring | null图片 / 视频封面链接
videoUrlstring | null视频链接 (图片为 null)
widthnumber | null宽 (px)
heightnumber | null高 (px)
accessibilityCaptionstring | null无障碍描述 (平台自动生成或作者填写)

请求示例

curl --request POST \
  --url https://scrapeapi.pangolinfo.com/api/v1/social/threads-post \
  --header 'Authorization: Bearer YOUR_PANGOLINFO_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "target": "https://www.threads.com/@africanboheme/post/DeK1ANDGbkP/"
}'

返回示例

下例截取实际响应中的首条列表记录,长文本与链接作了缩写;pointCost 为该次完整响应的实际费用。完整字段结构可在在线调试页查看。

{
  "code": 0,
  "message": "ok",
  "pointCost": 0.8,
  "data": {
    "type": "post",
    "poster": {
      "username": "africanboheme",
      "fullName": "Sunshine | slow living by the sea",
      "avatar": "https://scontent.cdninstagram.com/v/t51.82787-19/534331480_17920125615113166_3299195161213959882_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=104&ig_cache_key=GFhA...",
      "profileUrl": "https://www.threads.com/@africanboheme",
      "isVerified": false,
      "pk": "63402633165"
    },
    "post": {
      "code": "DeK1ANDGbkP",
      "postUrl": "https://www.threads.com/@africanboheme/post/DeK1ANDGbkP",
      "captionText": "this contains a link\n\nI got my first @jackeryusa to start my little off grid set up. I’ve really wanted the sand colorway and after scrolling past the bad pr...",
      "hashtags": [],
      "mentions": [
        "@jackeryusa"
      ],
      "media": [
        {
          "type": "image",
          "imageUrl": "https://instagram.fcpq9-1.fna.fbcdn.net/v/t51.82787-15/837459881_17986020645113166_198967388278767883_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=104&_nc_map=urlgen_bu...",
          "videoUrl": null,
          "width": 1008,
          "height": 1509,
          "accessibilityCaption": null
        }
      ],
      "publishedAt": {
        "text": "2026-10-06T22:12:04.000Z",
        "value": 1791324724000
      },
      "likes": 37,
      "commentsCount": 13,
      "repostsCount": 2,
      "sharesCount": null,
      "quotesCount": 0,
      "views": 1139,
      "pk": "4002244329347856655",
      "isReply": false,
      "replyTo": null,
      "accessibilityCaption": null,
      "linkPreview": null,
      "links": [
        "https://on.ltk.com/+uHMtkn4dIgxgTpiD-h8CXg"
      ]
    },
    "comments": [
      {
        "code": "DeK5BcvIDre",
        "avatar": "https://scontent.cdninstagram.com/v/t51.2885-19/358789398_287211140514414_7856514567109541219_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=100&ig_cache_key=GBaxYhV...",
        "username": "carrotkeller",
        "fullName": "Carrot",
        "profileUrl": "https://www.threads.com/@carrotkeller",
        "content": "Ive got one of their larger sizes and i LOVE IT!! They're really the best!!",
        "time": {
          "text": "2026-10-06T22:47:12.000Z",
          "value": 1791326832000
        },
        "likes": 2,
        "replyCount": 1,
        "replyTo": "africanboheme",
        "isAuthorReply": false,
        "pk": "4002262007098129118",
        "commentUrl": "https://www.threads.com/@carrotkeller/post/DeK5BcvIDre",
        "authorPk": "63631400279",
        "isVerified": false,
        "hashtags": [],
        "mentions": [],
        "media": [],
        "links": []
      }
    ]
  },
  "meta": {
    "requestId": "pg-audit-r1-threads-post-1793954225922962800",
    "durationMs": 4433
  },
  "billing": {
    "unitPrice": 0.8,
    "ruleVersion": "social-primary-v2",
    "billedCount": 1,
    "pointCost": 0.8
  }
}

积点消耗说明

每条帖子、视频或商家主体消耗 0.8 积点,附带评论、回复和作者资料免费。

空结果、失败响应不扣费。同一响应中相同 ID 只计一次,独立调用和续页分别计费。详见 社媒评论 API 计费说明。

在线调试