接口说明

Instagram Home API 获取 Instagram 主页资料及首屏作品数据。

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

请求URL

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

请求头

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

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

请求参数

参数必填类型说明
targetYesstring主页链接; 也可直接传用户名 (可带 @)

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

附带首屏作品;更多作品请使用对应作品接口(如提供)。

响应值

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

返回参数 data 说明

返回值类型说明
paginationobject作品分页
homeobjectHome

data.pagination 字段说明

返回值类型说明
endCursorstring | null作品下一页游标 (可传给 instagram-works 的 options.cursor)
hasMoreboolean是否还有更多

data.home 字段说明

返回值类型说明
userobjectUser
postsobject[]首屏作品 (最多 12 条)

data.home.user 字段说明

返回值类型说明
idnumber用户 id (数字; 超出 JS 精度, 以 accountId 为准)
accountIdstring用户 id
usernamestring | null用户名
is_verifiedboolean | null是否认证
is_privateboolean | null是否私密账号
avatarstring | null头像 (高清)
signaturestring | null显示名 (全名)
post_countnumber | null帖子数
follower_countnumber | null粉丝数
following_countnumber | null关注数
biostring | null简介
category_namestring | null账号类目 (商业 / 创作者账号)
category_enumstring | null账号类目枚举
businessEmailstring | null商业邮箱; 匿名通常为 null
emailstring | null商业邮箱 (同 businessEmail)
externalLinksany[]外链: 有 external_url 时为链接字符串数组, 否则同 bioLinks
bioLinksobject[]简介外链 (上游原样)

data.home.posts[] 字段说明

返回值类型说明
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是否关闭评论

请求示例

curl --request POST \
  --url https://scrapeapi.pangolinfo.com/api/v1/social/instagram-home \
  --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": 0.8,
  "data": {
    "pagination": {
      "endCursor": "AQHTFLq0M69ETO8H_n1ux4Y9orxqClzEvpz-AUAuP2K-1ir4zRMw7GkVHkjOt_e8v3GQBMIUb7GItbGFGT2P3QOg7w",
      "hasMore": true
    },
    "home": {
      "user": {
        "id": 17841401474538262,
        "accountId": "17841401474538262",
        "username": "nasa",
        "is_verified": true,
        "is_private": false,
        "avatar": "https://scontent-man2-1.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ig_cache_key=GBL...",
        "signature": "NASA",
        "post_count": 12,
        "follower_count": 104446518,
        "following_count": 90,
        "bio": "Making the seemingly impossible, possible. ✨",
        "category_name": null,
        "category_enum": null,
        "businessEmail": null,
        "email": null,
        "externalLinks": [
          "https://www.nasa.gov"
        ],
        "bioLinks": [
          {
            "image_url": "",
            "is_pinned": false,
            "link_id": "17920263086752176",
            "link_type": "external",
            "lynx_url": "https://l.instagram.com/?u=https%3A%2F%2Fwww.nasa.gov%2F&e=AUBdYpZbABPda3WED4EgLwmlNYvmj0lXoOmHYEwomDOvyM1ZWNYn51V__2ChDWF3us5dz9h-rab5JcffhzKy9cRG2YXKEEa95G...",
            "media_accent_color_hex": "",
            "media_type": "none",
            "title": "NASA.gov Homepage",
            "url": "https://www.nasa.gov",
            "creation_source": "NONE"
          }
        ]
      },
      "posts": [
        {
          "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-home-1793954275898534300",
    "durationMs": 4595
  },
  "billing": {
    "unitPrice": 0.8,
    "ruleVersion": "social-primary-v2",
    "billedCount": 1,
    "pointCost": 0.8
  }
}

积点消耗说明

每份主页资料消耗 0.8 积点,附带作品免费。

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

在线调试