five

Instagram Profile API

收藏
RapidAPI2026-04-10 更新2026-04-05 收录
下载链接:
https://rapidapi.com/Luan1Schons/api/instagram-profile-api
下载链接
链接失效反馈
官方服务:
资源简介:
Get Posts and Profile data
创建时间:
2026-04-10
原始信息汇总

Instagram Profile API 数据集概述

基本信息

  • 数据集名称: Instagram Profile API
  • 提供者: LSP API
  • 类别: Social
  • API 版本: v1 (current)
  • 服务等级: 100%
  • 平均延迟: 1987ms
  • 测试通过率: 100%
  • 订阅计划:
    • BASIC: $0.00 / mo
    • PRO: $15.00 / mo
    • ULTRA: $30.00 / mo
    • MEGA: $50.00 / mo

功能描述

这是一个简单且经济的 API,用于获取 Instagram 公开个人资料数据和带分页的帖子。该 API 专为 Cloudflare Workers 构建,针对快速、无浏览器的公开 Instagram 个人资料数据和时间线帖子抓取进行了优化。

生产端点

  • GET /profile/:username
  • GET /posts/:username

端点详情

GET /profile/:username

返回公开的个人资料元数据以及初始批次的帖子。

路径参数

  • username: Instagram 用户名

示例响应结构

json { "ok": true, "profile": { "id": "26669533", "username": "neymarjr", "fullName": "Neymar Jr", "biography": "@santosfc & Brazil", "externalUrl": "https://linktr.ee/neymarjr", "followersCount": 234924442, "followingCount": 1974, "postsCount": 6065, "profilePicUrl": "https://...", "isPrivate": false, "isVerified": true, "posts": [ { "id": "3866844133827533995", "shortcode": "DWpykCWl9yr", "caption": "3 pontos importantes...", "takenAtTimestamp": 1775183763, "likeCount": 3227018, "commentCount": 107, "displayUrl": "https://...", "thumbnailUrl": "https://...", "isVideo": false } ], "pagination": { "nextMaxId": "3844886676016086810_26669533", "moreAvailable": true, "count": 12 } }, "fetchedAt": "2026-04-04T04:12:18.890Z", "cached": false, "version": "2026-04-04" }

GET /posts/:username

返回公开 Instagram 个人资料的分页时间线帖子。

路径参数

  • username: Instagram 用户名

查询参数

  • count: 要获取的帖子数量。允许范围: 150。默认值: 12
  • max_id: 来自先前响应的分页游标。
  • view=compact: 返回简化的帖子负载。

完整响应结构

json { "ok": true, "username": "neymarjr", "posts": [ { "id": "3866844133827533995", "shortcode": "DWpykCWl9yr", "caption": "3 pontos importantes...", "takenAtTimestamp": 1775183763, "likeCount": 3227018, "commentCount": 107, "displayUrl": "https://...", "thumbnailUrl": "https://...", "isVideo": false } ], "pagination": { "nextMaxId": "3844886676016086810_26669533", "moreAvailable": true, "count": 12 }, "fetchedAt": "2026-04-04T04:12:10.496Z", "cached": false, "version": "2026-04-04", "partial": false, "warnings": [] }

简化响应结构

当使用 view=compact 时,每个帖子被简化为: json { "id": "3866844133827533995", "shortcode": "DWpykCWl9yr", "caption": "3 pontos importantes...", "takenAtTimestamp": 1775183763, "displayUrl": "https://...", "isVideo": false, "videoUrl": "https://..." }

错误格式

错误以 JSON 格式返回。

常见错误代码

  • INVALID_USERNAME
  • PROFILE_NOT_FOUND
  • PROFILE_PRIVATE_OR_UNAVAILABLE
  • UPSTREAM_FETCH_FAILED
  • PROFILE_LAYOUT_CHANGED

重要说明

  • 仅支持公开的 Instagram 数据。
  • 当上游请求降级或回退时,某些响应可能包含 partial: truewarnings
  • /profile/:username 使用的缓存时间比 /posts/:username 短。
  • /posts/:username 是推荐用于连续分页工作流的端点。

使用示例

页面提供了 JavaScript 和 Python 的代码示例,涵盖以下操作:

  • 获取个人资料
  • 获取第一页帖子
  • 获取下一页帖子
  • 获取简化版帖子
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作