NASA
Science
Exploring the universe and our home planet.
nasa.gov
{"handle": "nasa","displayName": "NASA","bio": "Exploring the universe and our home planet.","category": "Science","verified": true,"followers": 97400000,"following": 78,"posts": 4120,... 还有 9 个字段}
价格与服务商
Instagram 主页 API 价格:一个 API,6 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
试一试
一个请求获取 Instagram 主页
这个示例展示了 65 个字段中的 12 个。查看全部字段
{
"found": true,
"data": {
"handle": "nasa",
"displayName": "NASA",
"bio": "Exploring the universe and our home planet.",
"category": "Science",
"verified": true,
"followers": 97400000,
"following": 78,
"posts": 4120,
"avatarUrl": "https://instagram.com/nasa/avatar.jpg",
"externalUrl": "https://www.nasa.gov"
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- handlestring
nasa
Instagram 用户名,不带开头的 @。
- requireFieldsarray
可选;省略时路由不变,由最便宜的数据源处理。列出本次请求必须能返回的输出字段,例如 `contactMethod`,请求就只会由能返回全部这些字段的数据源处理。未列出的字段,只要处理请求的数据源有,仍会照常返回。这可能提高你的价格:最便宜的数据源无法返回某个列出的字段时,会改由更贵的数据源处理,并按它的价格报价和扣费。如果某个主页确实没有某个列出的字段,该字段仍可能缺失。如果列出的字段组合没有任何单一数据源能同时返回,请求会作为无效输入被拒绝,不扣费。
响应
JSON,每个字段一个示例值。
- avatarUrlstring
https://instagram.com/nasa/avatar.jpg
Profile picture URL. Often the highest resolution the account exposes, but it can be a 150 by 150 pixel version. Populated whenever the provider has data for the entity.
- biostring
Exploring the universe and our home planet.
Profile biography text. Populated whenever the provider has data for the entity.
- categorystring可设为必填
Science
Instagram's category label for the account (for example "Government Agencies" or "Coffee shop"). Absent when the account publishes no category.
- contactMethodstring可设为必填
The contact button Instagram shows on the profile, for example CALL, TEXT, EMAIL, or UNKNOWN. Absent when the account exposes no contact button. Instagram no longer publishes the underlying email or phone number to unauthenticated callers.
- displayNamestring
NASA
Account display name. Populated whenever the provider has data for the entity.
- externalUrlstring
https://www.nasa.gov
The single website link on the profile. Absent when the account publishes no link. Populated whenever the provider has data for the entity.
- followersinteger
97400000
Follower count.
- followinginteger
78
Number of accounts this account follows.
- handlestring
nasa
Instagram username without the leading @. Populated whenever the provider has data for the entity.
- highlightsCountinteger可设为必填
Number of story highlights pinned on the profile. Null when this source does not report it.
- isBusinessboolean可设为必填
Whether Instagram flags the account as a business account.
- postsinteger可设为必填
4120
Total number of posts on the account. On some responses this is rounded from the count Instagram displays (for example 1.2M), so it can be approximate; name posts in requireFields for an exact count. Null when the serving source does not report it.
- privateboolean
Whether the account is private.
- userIdstring
Instagram's numeric account id, as a string. Populated whenever the provider has data for the entity.
- verifiedboolean
true
Whether the account carries Instagram's verified badge.
Every link the account publishes in its bio, in the order Instagram returns them. Business accounts often list several here while externalUrl carries only the first. Populated whenever the provider has data for the entity.
- titlestring
Display label for the link, empty when the account set none.
- urlstring
Destination URL, exactly as the account published it.
The account's most recent posts, up to about 12. Best-effort: returned when you name latestPosts in requireFields, or whenever the serving source has them, and absent otherwise. Each post has the same fields as instagram.user_posts returns, except that verified, likes, comments and createdUtc are absent when the source does not report them. Empty when the account is private or has not posted.
- 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可设为必填
- carouselCountinteger
Number of slides, present on carousel posts only. Null when the serving source does not report it.
- commentsinteger可设为必填
- countsHiddenboolean
Whether the author has hidden the like and view counts. Null when the serving source does not report it.
- createdUtcnumber可设为必填
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 #.
- idstring可设为必填
Instagram media id.
- 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可设为必填
- 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 @.
- 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
- userIdstring
Instagram user id of the posting account. Null when the serving source does not report it.
- usernamestring可设为必填
Username of the account that posted. A profile feed includes collaborator posts, so this is not always the requested handle.
- verifiedboolean
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.profile,就以统一格式的 JSON 返回 Instagram 数据。某个用户名的公开主页:名字、简介、类别、粉丝数和关注数,以及头像。AnyAPI 会在 6 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$0.90 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Instagram 主页 API 调用中有 100.0% 成功,响应时间中位数为 1.4 秒,共测量 436,746 次调用。