# Instagram API

按 Instagram 账号、作品链接或话题标签读取帖子、Reels、评论及可得账号资料；粉丝数量与关系名单分开查询，账号发帖整理需等待异步结果。

- Domain: social · 18 data actions
- Canonical page: https://everyinfra.com/instagram-api
- Failures and empty results never form a final charge.

## Actions

### post — 单条内容
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: urls

- Returns fields: post_id, url, text, media_type, like_count, comment_count, view_count, author_username, author_name, posted_at, location, id, image_url, video_url, author_id, width, height, is_comments_disabled, author_follower_count, hashtags, top_comments

### profile — 主页或对象详情
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: username

- Returns fields: username, display_name, bio, follower_count, following_count, post_count, is_private, is_verified, is_business, is_professional, category, external_url, avatar_url, user_id, avatar_hd_url, external_urls, has_reels, highlight_count, recent_posts

### persona — 账号画像
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: username

- Returns fields: username, display_name, bio, follower_count, following_count, post_count, is_private, is_verified, is_business, is_professional, category, external_url, avatar_url, user_id, avatar_hd_url, external_urls, has_reels, highlight_count, recent_posts

### user_posts — 用户内容
- Mode: async · Price: 40 credits ($0.56 / 千次)
- Required: username

- Returns fields: post_id, url, text, media_type, like_count, comment_count, view_count, author_username, author_name, posted_at, location, id, image_url, video_url, author_id, width, height, is_comments_disabled, author_follower_count, hashtags, top_comments

### discover — 内容发现
- Mode: async · Price: 40 credits ($0.56 / 千次)
- Required: keyword

- Optional: results_type
- Allowed values: results_type (reel/reels)

- Returns fields: post_id, url, text, media_type, like_count, comment_count, view_count, author_username, author_name, posted_at, location, id, image_url, video_url, author_id, width, height, is_comments_disabled, author_follower_count, hashtags, top_comments

### comments — 评论
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: url

- Returns fields: id, text, url, like_count, reply_count, author_username, author_name, is_verified, posted_at, post_url, platform

### reels — Reels 短视频
- Mode: sync · Price: 86 credits ($1.19 / 千次)
- Required: username

- Returns fields: post_id, url, text, media_type, like_count, comment_count, author_username, author_name, posted_at, location, id, image_url, video_url, author_id, width, height, hashtags, play_count, duration_sec, duration_seconds, music, platform

### hashtag — 话题内容
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: hashtag

- Optional: results_type, tag
- Allowed values: results_type (reel/reels)

- Returns fields: post_id, url, text, media_type, like_count, comment_count, view_count, author_username, author_name, posted_at, location, id, image_url, video_url, author_id, width, height, is_comments_disabled, author_follower_count, hashtags, top_comments, platform

### followers — 粉丝数量
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: username

- Returns fields: id, username, url, name, avatar_url, follower_count, following_count, platform

### followers_list — 粉丝列表
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: username

- Returns fields: id, username, url, name, avatar_url, is_private, is_verified, relation, of_user, platform

### following_list — 关注列表
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: username

- Returns fields: id, username, url, name, avatar_url, is_private, is_verified, relation, of_user, platform

### user_search — 账号搜索
- Mode: async · Price: 346 credits ($4.81 / 千次)
- Required: keyword

- Returns fields: rank, username, user_id, display_name, is_verified, is_private, url, avatar_url, follower_count, following_count, post_count, bio, external_url, platform

### reels_search — Reels 关键词搜索
- Mode: sync · Price: 518 credits ($7.19 / 千次)
- Required: keyword

- Returns fields: post_id, id, url, text, play_count, like_count, comment_count, duration_sec, duration_seconds, author_username, author_id, is_verified, posted_at, platform

### similar_profiles — 相似账号
- Mode: async · Price: 634 credits ($8.81 / 千次)
- Required: username

- Returns fields: rank, username, user_id, display_name, is_verified, is_private, url, avatar_url, follower_count, following_count, post_count, bio, external_url, similar_to, platform

### tagged_posts — 被标记的帖子
- Mode: sync · Price: 536 credits ($7.44 / 千次)
- Required: username

- Returns fields: post_id, url, tagged_username, author_username, author_id, text, like_count, comment_count, is_video, posted_at, image_url, platform

### stories — Stories 内容
- Mode: sync · Price: 108 credits ($1.5 / 千次)
- Required: username

- Returns fields: id, url, media_url, media_type, duration_seconds, duration_sec, posted_at, author_username, author_name, author_avatar_url, author_is_verified, platform

### highlights — 精选合集
- Mode: sync · Price: 115 credits ($1.6 / 千次)
- Required: username

- Returns fields: id, url, title, media_count, cover_url, created_at, updated_at, is_pinned, author_username, author_id, author_name, platform

### comment_replies — 评论回复
- Mode: sync · Price: 63 credits ($0.88 / 千次)
- Required: url, comment_id

- Optional: page_token

- Returns fields: id, text, like_count, posted_at, author_username, author_id, author_url, author_avatar_url, author_is_verified, reply_to_id, post_url, next_page_token, platform

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog
- Agents guide: https://everyinfra.com/agents.md
