接口说明

Instagram Works API 获取 Instagram 账号或频道的作品列表。

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

请求URL

POST https://scrapeapi.pangolinfo.com/api/v1/social/instagram-works

请求头

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

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

请求参数

参数必填类型说明
targetYesstring主页链接; 也可直接传用户名 (可带 @)
optionsNoobject仅处理下列开放参数;未列出的字段忽略,内部参数不可覆盖。

options 参数说明

参数必填类型说明
cursorNostring | null续页: 上次输出的 pagination.cursor, 或 instagram-home 的 pagination.endCursor

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

每次只取一页,用返回游标续取。

响应值

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

返回参数 data 说明

返回值类型说明
typestringType
可用值: [“works”]
paginationobject作品分页
worksobject[]作品列表

data.pagination 字段说明

返回值类型说明
cursorstring | null下一页游标, 传回 options.cursor 续取; null + hasMore 表示首屏被截断, 从头取
hasMoreboolean是否还有更多

data.works[] 字段说明

返回值类型说明
urlstring | null帖子链接
typestring作品类型
可用值: [“video”, “image”]
coverstring | null封面
copywritingstring | null正文
likesnumber | null点赞数; 匿名首屏 / 翻页不给, 为 null
commentsnumber | null评论数; 匿名首屏 / 翻页不给, 为 null
is_pinnedboolean是否置顶
published_atnumber | null发布时间毫秒时间戳; 匿名常为 null
video_view_countnumber | null播放数; 匿名常为 null
mediaIdstring | null媒体 id
pkstring | null帖子数字 id
shortcodestring | null帖子 shortcode
dimensionsobject尺寸; 匿名接口通常为空对象
isVideoboolean是否视频
mediaTypenumber | null1 图片 / 2 视频 / 8 轮播
carouselMediaCountnumber | null轮播张数; 非轮播为 null
videoUrlstring | null视频地址; 匿名常为 null
displayUrlstring | null展示图
accessibilityCaptionstring | null无障碍描述
productTypestring | null产品类型: feed / clips / carousel_container
locationany地点 (上游原样); 没有为 null
commentsDisabledboolean | null是否关闭评论

data.works[].dimensions 字段说明

返回值类型说明
widthnumberWidth
heightnumberHeight

请求示例

curl --request POST \
  --url https://scrapeapi.pangolinfo.com/api/v1/social/instagram-works \
  --header 'Authorization: Bearer YOUR_PANGOLINFO_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "target": "https://www.instagram.com/nasa/"
}'

返回示例

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

{
  "code": 0,
  "message": "ok",
  "pointCost": 4.0,
  "data": {
    "type": "works",
    "pagination": {
      "cursor": null,
      "hasMore": true
    },
    "works": [
      {
        "url": "https://www.instagram.com/p/DeTUk4sDSp-/",
        "type": "video",
        "cover": "https://scontent-man2-1.cdninstagram.com/v/t51.82787-15/842191580_18656578867049152_4200499629839780998_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=111&ccb=7-...",
        "copywriting": "POV: you're watching the Earth set\n\nWe just released hundreds of new images and hours of new audio from our Artemis II mission around the Moon this spring. C...",
        "likes": null,
        "comments": null,
        "is_pinned": false,
        "published_at": null,
        "video_view_count": null,
        "mediaId": "POLARIS_4004634989362489982",
        "pk": "4004634989362489982",
        "shortcode": "DeTUk4sDSp-",
        "dimensions": {},
        "isVideo": true,
        "mediaType": 2,
        "carouselMediaCount": null,
        "videoUrl": null,
        "displayUrl": "https://scontent-man2-1.cdninstagram.com/v/t51.82787-15/842191580_18656578867049152_4200499629839780998_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=111&ccb=7-...",
        "accessibilityCaption": "Video by NASA on October 10, 2026. May be an image of planet, eclipse and text.",
        "productType": "clips",
        "location": null,
        "commentsDisabled": null
      }
    ]
  },
  "meta": {
    "requestId": "pg-audit-r1-instagram-works-1793954284038987500",
    "durationMs": 1215
  },
  "billing": {
    "unitPrice": 0.8,
    "ruleVersion": "social-primary-v2",
    "billedCount": 5,
    "pointCost": 4.0
  }
}

积点消耗说明

每条主体结果消耗 0.8 积点。

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

在线调试