接口说明

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

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

请求URL

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

请求头

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

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

请求参数

参数必填类型说明
targetYesstring帖子链接 (支持短链); 也可直接传pin id (纯数字)

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

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

响应值

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

返回参数 data 说明

返回值类型说明
typestringType
可用值: [“post”]
posterobject作者
postobjectPost
commentsobject[]评论 (Pinterest 只有顶层评论)
paginationobject评论分页, 游标传 options.cursor 续取

data.poster 字段说明

返回值类型说明
idstring | null用户 id
usernamestring | null用户名 (主页链接里的那段)
nicknamestring | null显示名, 没有时用用户名
avatarstring | null头像链接
profileUrlstring | null主页链接

data.post 字段说明

返回值类型说明
idstringPin id
urlstringPin 链接
titlestring | null标题
captionTextstring | null描述正文
publishedAtobject | null发布时间 (text 为 RFC 2822 原文)
likesnumber所有表情回应合计
commentsCountnumber | null评论数; 搜索结果里通常为 null
sharenumber | null分享数; 没有时回退为 repins
repinsnumber | null保存 (repin) 数
reactionsobject按表情类型的回应数, 键为类型编号 (1 = 喜欢, 2 = 爱心 …)
linkstring | null外链 (Pin 指向的网站)
domainstring | null外链域名; 用户上传为 “Uploaded by user”
isVideoboolean是否视频
coverstring | null封面 (第一个媒体)
mediaobject[]媒体列表 (轮播全部展开)
boardobject | null所在画板
altTextstring | null图片替代文本 (平台自动生成或作者填写)
dominantColorstring | null主色, 如 #7c796e

data.post.publishedAt 字段说明

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

data.post.media[] 字段说明

返回值类型说明
typestring媒体类型
可用值: [“image”, “video”]
urlstring原图 / 视频链接
widthnumber | null宽 (px)
heightnumber | null高 (px)
coverstring | null仅视频: 封面图
durationMsnumber | null仅视频: 时长 (毫秒)

data.post.board 字段说明

返回值类型说明
idstring | null画板 id
namestring | null画板名
urlstring | null画板链接

data.comments[] 字段说明

返回值类型说明
idstring评论 id
contentstring | null评论内容
avatarstring | null评论者头像
nicknamestring | null评论者显示名
profileUrlstring | null评论者主页
userIdstring | null评论者 id
usernamestring | null评论者用户名
createdAtobject | null评论时间
likesnumber回应数
replyCountnumber回复数 (回复内容不展开)

data.comments[].createdAt 字段说明

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

data.pagination 字段说明

返回值类型说明
commentsobjectComments

data.pagination.comments 字段说明

返回值类型说明
bookmarkstring | null下一页游标, 传回对应 options 续取; null = 没有下一页 (hasMore 为 true 时表示从头取)
hasMoreboolean是否还有更多

请求示例

curl --request POST \
  --url https://scrapeapi.pangolinfo.com/api/v1/social/pinterest-post \
  --header 'Authorization: Bearer YOUR_PANGOLINFO_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "target": "https://fr.pinterest.com/pin/1108730002048681108/"
}'

返回示例

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

{
  "code": 0,
  "message": "ok",
  "pointCost": 0.8,
  "data": {
    "type": "post",
    "poster": {
      "id": "1108730139422030209",
      "username": "sitamvan99",
      "nickname": "demit",
      "avatar": "https://i.pinimg.com/75x75_RS/2f/47/f4/2f47f4a29f2d1bcd2aaf98fa8cdc1589.jpg",
      "profileUrl": "https://www.pinterest.com/sitamvan99/"
    },
    "post": {
      "id": "1108730002048681108",
      "url": "https://www.pinterest.com/pin/1108730002048681108/",
      "title": "gw tampol lu !!!",
      "captionText": " ",
      "publishedAt": {
        "text": "Fri, 25 Sep 2026 07:43:43 +0000",
        "value": 1790322223000
      },
      "likes": 1610,
      "commentsCount": 25,
      "share": 1263,
      "repins": 9170,
      "reactions": {
        "1": 1610
      },
      "link": null,
      "domain": "Uploaded by user",
      "isVideo": false,
      "cover": "https://i.pinimg.com/originals/ff/30/04/ff30040be43bcb3f50078af23387ee6f.jpg",
      "media": [
        {
          "type": "image",
          "url": "https://i.pinimg.com/originals/ff/30/04/ff30040be43bcb3f50078af23387ee6f.jpg",
          "width": 720,
          "height": 964
        }
      ],
      "board": {
        "id": "1108730070703919386",
        "name": "kocheng (dagelan menk)",
        "url": "https://www.pinterest.com/sitamvan99/kocheng-dagelan-menk/"
      },
      "altText": "a cat that is standing on top of a bed with its paw in the air",
      "dominantColor": "#7c796e"
    },
    "comments": [
      {
        "id": "3966707891758649216",
        "content": "tigerclaw/star when bluestar didnt give him deputy after he murdered redtail",
        "avatar": null,
        "nickname": "𓆩",
        "profileUrl": "https://www.pinterest.com/Equ3str1anL0v3/",
        "userId": "960252089207135960",
        "username": "Equ3str1anL0v3",
        "createdAt": {
          "text": "Thu, 22 Oct 2026 06:05:07 +0000",
          "value": 1792649107000
        },
        "likes": 0,
        "replyCount": 0
      }
    ],
    "pagination": {
      "comments": {
        "bookmark": "Y2JVSG80ZUdaRVJYcE5ha2w0VFdwck1FNTZRVFZQVkdNMFRrUlZjVkl4UmsxTGJuY3pUMGRGTTA5RVdtdGFWMGt3V2tSWk1FMUVVbWhOZW1odFQxZEthRTFFU214WmJVVXpUMVJaTWs5VVFtMVpla0UwV2tkV...",
        "hasMore": true
      }
    }
  },
  "meta": {
    "requestId": "pg-audit-r1-pinterest-post-1793954225921962300",
    "durationMs": 3692
  },
  "billing": {
    "unitPrice": 0.8,
    "ruleVersion": "social-primary-v2",
    "billedCount": 1,
    "pointCost": 0.8
  }
}

积点消耗说明

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

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

在线调试