Instagram 用户帖子 API
某个主页的帖子和 Reels 网格,分页返回,附文案、媒体 URL 和互动数据。使用 cursor 字段翻页。
US$0.80/千次请求,按请求付费,无需订阅。
1.8M9,200{"id": "3401000000000000000","url": "https://www.instagram.com/p/C8aBcDeFgHi/","caption": "A new view of the Pillars of Creation.","likes": 1840000,"comments": 9200,"createdUtc": 1717945200,"username": "nasa","verified": true,... 还有 23 个字段}
价格与服务商
Instagram 用户帖子 API 价格:一个 API,7 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
标记为暂停服务的服务商因响应不稳定,已移出轮换,你的调用会转到其他服务商。它恢复稳定响应后会自动重新加入。
试一试
一个请求获取 Instagram 用户帖子
这个示例展示了 48 个字段中的 12 个。查看全部字段
{
"found": true,
"data": {
"nextCursor": "QVFEX2Z",
"posts": [
{
"id": "3401000000000000000",
"url": "https://www.instagram.com/p/C8aBcDeFgHi/",
"caption": "A new view of the Pillars of Creation.",
"likes": 1840000,
"comments": 9200,
"createdUtc": 1717945200,
"username": "nasa",
"verified": true
}
]
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- handlestring
nasa
Instagram 用户名,不带开头的 @。
- cursorstring
0
上一次响应的 nextCursor 返回的分页游标。
- requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `userId`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
响应
JSON,每个字段一个示例值。
- nextCursorstring
QVFEX2Z
Opaque cursor for the next page of posts, or null when this lane has no more. Pass it back as cursor to continue.
Populated whenever the provider has data for the entity.
- audioIdstring可设为必填
Instagram audio id of the post's sound, licensed track or original audio, the audioId instagram.audio_reels takes to list other reels using it. Absent when the post has no sound. Null when the serving source does not report it.
- avatarUrlstring
Profile picture URL of the posting account.
- captionstring
A new view of the Pillars of Creation.
Populated whenever the provider has data for the entity.
- carouselCountinteger可设为必填
Number of slides, present on carousel posts only. Null when the serving source does not report it.
- commentsinteger
9200
- countsHiddenboolean可设为必填
Whether the author has hidden the like and view counts. Null when the serving source does not report it.
- createdUtcnumber
1717945200
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
- displayNamestring
Display name of the posting account.
- durationSecondsnumber
Video duration in seconds. Absent on photo posts.
- hashtagsstring[]
Hashtags carried in the caption, each including its leading #. Populated whenever the provider has data for the entity.
- idstring
3401000000000000000
Instagram media id. Populated whenever the provider has data for the entity.
- isPinnedboolean可设为必填
Whether the post is pinned to the top of a profile grid. On a collaboration post this can be true because a coauthor pinned it to their own profile. Null when the serving source does not report it.
- likesinteger
1840000
- locationIdstring可设为必填
Instagram location id the post is tagged at. Absent when the post has no location. Null when the serving source does not report it.
- locationLatnumber可设为必填
Latitude of the tagged location, in decimal degrees. Null when the serving source does not report it.
- locationLngnumber可设为必填
Longitude of the tagged location, in decimal degrees. Null when the serving source does not report it.
- locationNamestring可设为必填
Name of the location the post is tagged at. Null when the serving source does not report it.
- mentionsstring[]
Accounts @mentioned in the caption, each including its leading @. Populated whenever the provider has data for the entity.
- paidPartnershipboolean可设为必填
Whether the post is tagged as a paid partnership. Null when the serving source does not report it.
- productTypestring可设为必填
Instagram's own surface label for the post, such as feed, clips or carousel_container. Null when the serving source does not report it.
- resharesinteger可设为必填
Number of times the post has been reshared, when Instagram reports it. Null when the serving source does not report it.
- soundAuthorstring可设为必填
Credited artist of a licensed track, or the username of the account whose original audio it is. Absent when the post has no sound. Null when the serving source does not report it.
- soundTitlestring可设为必填
Name of the sound on a reel or a post with music. "Original audio" means the creator's own audio rather than a licensed track. Absent when the post has no sound. Null when the serving source does not report it.
- urlstring
https://www.instagram.com/p/C8aBcDeFgHi/
Populated whenever the provider has data for the entity.
- userIdstring可设为必填
Instagram user id of the posting account. Null when the serving source does not report it.
- usernamestring
nasa
Username of the account that posted. A profile feed includes collaborator posts, so this is not always the requested handle. Populated whenever the provider has data for the entity.
- verifiedboolean
true
True when the posting account is verified.
- viewsinteger
Play count, present on video posts and reels only.
Accounts listed as coauthors of the post. Null when the serving source does not report it.
- displayNamestring
Account display name.
- userIdstring可设为必填
Instagram's numeric account id, as a string.
- usernamestring
Instagram username without the leading @.
- verifiedboolean
Whether the account carries Instagram's verified badge.
Photo, video, and GIF attachments on the post. Empty when the post has none.
- heightinteger
Pixel height of the media item, when the lane reports it.
- typestring
One of photo, video, or gif.
- urlstring
Image URL. For a video or GIF this is the poster/thumbnail frame.
- videoUrlstring
Playable video file URL. Present only for video and gif items.
- widthinteger
Pixel width of the media item, when the lane reports it.
Accounts tagged in the media. Null when the serving source does not report it.
- displayNamestring
Account display name.
- userIdstring可设为必填
Instagram's numeric account id, as a string.
- usernamestring
Instagram username without the leading @.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
你在出售这个 API?查看你的接口必须返回的完整数据结构。
常见问题
关于 Instagram 用户帖子 API
AnyAPI 的 Instagram 用户帖子 API 只需一次 POST 请求 /v1/run/instagram.user_posts,就以统一格式的 JSON 返回 Instagram 数据。某个主页的帖子和 Reels 网格,分页返回,附文案、媒体 URL 和互动数据。使用 cursor 字段翻页。AnyAPI 会在 7 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$0.80 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Instagram 用户帖子 API 调用中有 99.9% 成功,响应时间中位数为 2.6 秒,共测量 346,642 次调用。