# Instagram Scraper & API | EveryInfra (`blushing_parachute/everyinfra-instagram-api`) Actor

Unofficial Instagram data via one Actor: post, profile, user_posts, comments, reels, hashtag, followers_list, following_list. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

- **URL**: https://apify.com/blushing_parachute/everyinfra-instagram-api.md
- **Developed by:** [ECHO](https://apify.com/blushing_parachute) (community)
- **Categories:** Social media, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 54.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 profile requests

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Instagram Scraper & API | EveryInfra

Retrieve Instagram posts, reels, comments, and public profile details using account handles, media URLs, or hashtags.

Fetch one post with its complete URL. Follower counts and relation lists need separate queries.

### Actions

| Action | What you get | Required | Optional | Results per request | Price per request |
|---|---|---|---|---|---|
| `post` | Fetch one or more Instagram posts or Reels from the links in `urls`. Get caption, media type, likes, comments, views, author follower count, hashtags and a few top comments. Private content is not fetched. Nothing grants rights to the photos or videos. | urls | — | 11 (up to 11) | $0.0009 |
| `profile` | Look up an Instagram account by handle or profile URL. Get display name, bio, follower, following and post counts, account type flags, external link and recent posts. Verified, business and professional flags do not prove identity, income or current commercial activity. | username | — | 1 | $0.0009 |
| `user_posts` | List posts from an Instagram account by `username`, each with caption, media type, likes, comments, views, location, hashtags and top comments. Full history is not guaranteed, and private Stories and internal reach data are not included. | username | page_token | 30 (up to 200) | $0.0017 |
| `comments` | Read comments on one Instagram post or Reel at `url`. Each comment has text, author, verified badge, likes, reply count and post time. Profile links are not supported, and the full conversation tree is not promised. | url | page_token | 50 (up to 100) | $0.0029 |
| `reels` | Pull an Instagram account's Reels by `username`, with caption, play count, duration in seconds, likes, comments, hashtags, music and video link. Subtitle transcripts, top comments and private metrics are not included. | username | — | 30 (up to 100) | $0.0020 |
| `hashtag` | Collect posts for an Instagram hashtag in `hashtag`, without the # sign. Get caption, media type, likes, comments, views, author and post time. Pass `reels` in `results_type` for short videos. The sample alone does not measure the total volume of a trend. | hashtag | results_type, tag | 30 (up to 30) | $0.0065 |
| `followers_list` | List the accounts that follow an Instagram user, by `username`, with handle, name, avatar, private and verified flags and relation type. The list may be partial and does not enable automated contact. | username | page_token | 50 (up to 500) | $0.0061 |
| `following_list` | List the accounts an Instagram user follows, by `username`, with handle, name, avatar, private and verified flags and relation type. A follow does not prove affinity or interaction, and the relationship may change. | username | — | 50 (up to 500) | $0.0061 |

### Input

Pick an `action` and fill the fields it uses. Example:

```json
{
  "action": "profile",
  "username": "instagram"
}
```

Fields that another action needs are ignored when left empty. API users can also pass `{"action": ..., "params": {...}}`.

### Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's `OUTPUT` record holds `next_page_token`.

- `post`: `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`, `product_type`, `play_count`, `fb_play_count`, `fb_like_count`, `fb_comment_count`, `share_count`, `repost_count`, `duration_sec`, `duration_seconds`, `duration_estimated`, `image_count`, `video_count`, `video_url_expires_at`, `video_hd_url`, `video_hd_height`, `audio_url`, `video_hd_expires_at`, `is_paid_partnership`, `is_pinned`, `likes_hidden`, `caption_is_edited`, `accessibility_caption`, `author_is_verified`, `author_is_private`, `author_avatar_url`, `posted_at_estimated`, `mentions`, `tagged_users`, `coauthors`, `sponsors`, `media`, `music`, `platform`, `location_detail`
- `profile`: `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`, `url`, `reels_count`, `business_email`, `business_phone`, `threads_username`, `fbid`, `is_memorialized`, `is_joined_recently`, `account_type`, `emails`, `phones`, `pronouns`, `bio_links_detail`, `messaging_ids`, `business_address`, `platform`
- `user_posts`: `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`, `product_type`, `play_count`, `fb_play_count`, `fb_like_count`, `fb_comment_count`, `share_count`, `repost_count`, `duration_sec`, `duration_seconds`, `duration_estimated`, `image_count`, `video_count`, `video_url_expires_at`, `video_hd_url`, `video_hd_height`, `audio_url`, `video_hd_expires_at`, `is_paid_partnership`, `is_pinned`, `likes_hidden`, `caption_is_edited`, `accessibility_caption`, `author_is_verified`, `author_is_private`, `author_avatar_url`, `posted_at_estimated`, `mentions`, `tagged_users`, `coauthors`, `sponsors`, `media`, `music`, `platform`, `location_detail`
- `comments`: `id`, `text`, `url`, `like_count`, `reply_count`, `author_username`, `author_name`, `is_verified`, `posted_at`, `post_url`, `platform`, `author_id`, `author_avatar_url`, `is_edited`, `is_pinned`, `liked_by_author`
- `reels`: `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`, `product_type`, `fb_play_count`, `fb_like_count`, `fb_comment_count`, `share_count`, `repost_count`, `duration_estimated`, `image_count`, `video_count`, `video_url_expires_at`, `video_hd_url`, `video_hd_height`, `audio_url`, `video_hd_expires_at`, `is_paid_partnership`, `is_pinned`, `likes_hidden`, `caption_is_edited`, `accessibility_caption`, `author_is_verified`, `author_is_private`, `author_avatar_url`, `posted_at_estimated`, `mentions`, `tagged_users`, `coauthors`, `sponsors`, `media`, `location_detail`
- `hashtag`: `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`, `product_type`, `play_count`, `fb_play_count`, `fb_like_count`, `fb_comment_count`, `share_count`, `repost_count`, `duration_sec`, `duration_seconds`, `duration_estimated`, `image_count`, `video_count`, `video_url_expires_at`, `video_hd_url`, `video_hd_height`, `audio_url`, `video_hd_expires_at`, `is_paid_partnership`, `is_pinned`, `likes_hidden`, `caption_is_edited`, `accessibility_caption`, `author_is_verified`, `author_is_private`, `author_avatar_url`, `posted_at_estimated`, `mentions`, `tagged_users`, `coauthors`, `sponsors`, `media`, `music`, `location_detail`
- `followers_list`: `id`, `username`, `url`, `name`, `avatar_url`, `is_private`, `is_verified`, `relation`, `of_user`, `platform`, `category`, `is_business`, `business_email`, `business_phone`, `avatar_hd_url`, `highlight_count`, `has_reels`, `reels_count`, `social_context`, `emails`, `phones`, `external_urls`
- `following_list`: `id`, `username`, `url`, `name`, `avatar_url`, `is_private`, `is_verified`, `relation`, `of_user`, `platform`, `category`, `is_business`, `business_email`, `business_phone`, `avatar_hd_url`, `highlight_count`, `has_reels`, `reels_count`, `social_context`, `emails`, `phones`, `external_urls`

#### Field notes

- `rank`: Position from 1: the order of this row within this result. user_search: first the accounts returned by Instagram's search box (matched_by is search_box), in the search box's order; then the authors of posts found with this keyword, added to fill up the count (matched_by is post_author); results without matched_by carry the position at which Instagram ranks the account for this keyword. similar_profiles: the account's place among the similar accounts, ordered by followers. likers: the account's place in the list of likers.
- `similar_to`: The account you asked about (similar_profiles), the same on every row.
- `tagged_username`: The account tagged in the post, which is the account you asked about (tagged_posts), the same on every row; the poster is author_username.
- `is_private`: Whether the account is private.
- `is_business`: Whether the account is a business account.
- `is_professional`: Whether the account is a professional account (business or creator).
- `external_url`: External link on the profile.
- `avatar_hd_url`: High-resolution avatar URL (avatar_url is the small image).
- `external_urls`: All external links in the bio: url, title (external_url is only the first one).
- `has_reels`: Whether the account has posted Reels.
- `highlight_count`: Number of Highlights.
- `recent_posts`: Latest posts on the profile page (pinned posts included), as an array; each entry is one post with the same fields as a row of user_posts (a field appears only when it has a value). Absent when the account is private or has no posts.
- `reels_count`: Number of Reels the account has posted (integer).
- `business_email`: Email the business account makes public behind the Contact button on its profile. Absent when there is none.
- `business_phone`: Phone number the business account makes public behind the Contact button on its profile. Absent when there is none.
- `threads_username`: Name shown on the Threads badge on the profile; usually the person's Threads username.
- `fbid`: Another numeric ID that Meta assigns to the account; it is not the same number as user_id.
- `is_memorialized`: The account is memorialized (the status Instagram gives an account after its owner has died). Appears only for memorialized accounts, with the value true.
- `is_joined_recently`: The profile is marked "Joined recently". Appears only when the mark is there, with the value true.
- `account_type`: Account type: personal (individual), business or creator.
- `phones`: Phone numbers the person wrote publicly in the bio, as an array. Only numbers that start with + or 00, or that follow a label such as WhatsApp or Phone, are included. Absent when there are none.
- `pronouns`: Pronouns filled in on the profile, as an array.
- `bio_links_detail`: Each link in the bio section, one entry per link: url (the real address, with the redirect layer Instagram wraps around it removed), title (link title, present only on some links), type (link type given by Instagram, such as external). external_urls holds the url and title of the same links.
- `messaging_ids`: Chat accounts written publicly in the bio, one entry per account as {app, id}; app is a value such as wechat, line, telegram, kakao, skype or signal.
- `business_address`: Address the business account makes public, as an object: street, city, zip, lat, lng; each appears only when available.
- `post_id`: Post shortcode: the part of the link after /p/ or /reel/ (not a numeric ID).
- `media_type`: Only two values: video (videos; Reels are also video) and image (images; carousel posts are also recorded as image, and when product_type is present, a product_type of carousel_container marks a carousel).
- `video_url`: Video file URL: the complete mp4 with sound, playable directly. For a carousel post with videos, it is the first video; absent when the post is not a video. The link is signed and expires; when video_url_expires_at is present, go by it.
- `width`: Width of the original image or video, in pixels.
- `height`: Height of the original image or video, in pixels.
- `is_comments_disabled`: Whether comments are turned off on the post.
- `top_comments`: A few comments shown under the post; each entry has the text (text) and the commenter (author_username). Absent when there are none.
- `product_type`: Content format as Instagram classifies it: feed (regular post), clips (Reels), carousel_container (carousel), longform (long video).
- `play_count`: Play count.
- `fb_play_count`: Play count on Facebook, when the author also published this post on Facebook; appears only on such posts.
- `fb_like_count`: Like count on Facebook, when the author also published this post on Facebook; appears only on such posts.
- `fb_comment_count`: Comment count on Facebook, when the author also published this post on Facebook; appears only on such posts.
- `duration_sec`: Duration, in seconds.
- `duration_estimated`: true means duration_sec is a whole number of seconds read from the video link, at most 1 second off the exact duration. Appears only when the duration was read this way.
- `image_count`: Number of images: 1 for a single-image post; for a carousel post, the number of images in it, videos not counted.
- `video_count`: Number of videos in a carousel post; only carousel posts have it.
- `video_url_expires_at`: Expiry time of video_url, ISO 8601, UTC.
- `video_hd_url`: Highest-quality video track: picture only, no sound. It expires; the time is in video_hd_expires_at. For video with sound, merge it with audio_url (for example, combine the two tracks with ffmpeg), or use video_url directly.
- `video_hd_height`: Picture height of video_hd_url, in pixels.
- `audio_url`: Audio track of the video, sound only; it expires at about the same time as video_hd_url (see video_hd_expires_at). Absent when the video has no separate audio track (for example, a silent video).
- `video_hd_expires_at`: Expiry time of video_hd_url, ISO 8601, UTC; audio_url expires at about the same time.
- `is_paid_partnership`: Whether the post is marked "Paid partnership". Appears only when the page gives this information, and may be false.
- `is_pinned`: Whether the item is pinned. Posts (user_posts, tagged_posts, recent_posts, and other actions that return posts, such as location_posts, audio_posts and explore): pinned by the author to the profile grid or the Reels tab; appears only when pinned, with the value true. Comments (comments): pinned by the post author; appears only when pinned, with the value true. Highlights (highlights): whether it is pinned first in the profile highlights bar.
- `likes_hidden`: The author hid the like count. Appears only when hidden, with the value true; like_count is usually absent then.
- `caption_is_edited`: The caption was edited. Appears only when edited, with the value true.
- `accessibility_caption`: Image description that Instagram generates automatically (alternative text, in English).
- `author_is_verified`: Whether the author's account has a verified badge. Appears in user_posts, tagged_posts, location_posts, audio_posts, explore, stories and comment_replies, and in post, discover, reels, hashtag and reels_search rows when it has a value.
- `author_is_private`: Whether the author's account is private.
- `author_avatar_url`: Author avatar URL; signed link that expires.
- `posted_at_estimated`: true means the page gave no publish time and posted_at is the upload time worked out from the post's numeric ID (id); it usually equals the publish time, and is earlier than it for scheduled posts. Appears only when estimated (common in tagged_posts).
- `mentions`: Usernames @-mentioned in the text, as an array.
- `tagged_users`: Usernames of the people tagged in the images or videos, as an array; for a carousel post, tags on every item count.
- `coauthors`: Coauthors: usernames of the accounts credited together with the author on this post, as an array.
- `sponsors`: Usernames of the brand accounts named in the paid partnership, as an array.
- `media`: Each item in a carousel post, one entry per item: type (image or video), image_url (image URL, the cover image for a video; signed link that expires), video_url (videos only; mp4 with sound), width and height (pixels). Only carousel posts have it.
- `music`: Music used by the post or Reel, as an object: artist and title; some also carry audio_id (music ID), is_original (true for original audio recorded by the author, false for a song from the music library), is_explicit (whether a library song is marked explicit), is_trending (whether original audio is trending; original audio only) and url (the Instagram page for this music). For original audio, title is usually Original audio and artist is the username of its author. Absent when there is no music.
- `location_detail`: Details of the location attached to the post, as an object: id (location ID), name (location name, same as location), short_name, city, address, lat, lng, url (the Instagram page for this location); each appears only when available. Absent when the post has no location.
- `post_url`: Post link.
- `is_edited`: (comments) The comment was edited. Appears only when edited, with the value true.
- `liked_by_author`: (comments) The post author liked this comment. Appears only when liked, with the value true.
- `relation`: (followers_list, following_list) How this row relates to of_user: Followers means this account follows of_user (it is a follower of of_user), Followings means of_user follows this account.
- `of_user`: (followers_list, following_list) Whose list this is: the username from the request, the same on every row.
- `social_context`: The line of text Instagram shows under the account, such as Followed by a certain user or 632 followers; returned as is (mostly in English). Absent when there is none.
- `post_like_count`: (likers) Total likes on the post, the same on every row. likes_hidden is true when the author hid the like count.
- `location_info`: (location_posts) The location you asked about, the same on every row, as an object: id, name, category (location type, such as City), lat, lng, post_count (total posts at this location) and url (the Instagram page for this location); each appears only when available.
- `audio_info`: (audio_posts) The music you asked about, the same on every row, as an object: audio_id, title, artist, reels_count (number of Reels that use it) and url (the Instagram page for this music); each appears only when available.
- `input`: (profiles_batch) The entry from usernames that this row answers, returned exactly as you passed it. Use it to match rows to your entries; the returned username can be written differently, for example when you passed a profile link.
- `expires_at`: (stories) When the story disappears (24 hours after posting), ISO 8601, UTC.
- `links`: (stories) Addresses of the link stickers on the story, as an array.
- `sample_size`: (engagement) Number of posts actually counted.
- `period_start`: (engagement) Publish time of the earliest counted post, ISO 8601, UTC.
- `period_end`: (engagement) Publish time of the latest counted post, ISO 8601, UTC.
- `posts_per_week`: (engagement) Average number of posts per week over this period.
- `avg_like_count`: (engagement) Average likes per post. Posts whose author hid the like count count as 0.
- `avg_comment_count`: (engagement) Average comments per post.
- `avg_view_count`: (engagement) Average views per post; image posts have no view count.
- `median_like_count`: (engagement) Median likes per post.
- `avg_interactions`: (engagement) Average interactions per post (likes + comments).
- `median_interactions`: (engagement) Median interactions per post (likes + comments).
- `engagement_rate`: (engagement) Engagement rate in %: average interactions per post ÷ follower_count × 100. 0.0118 means 0.0118%.
- `media_mix`: (engagement) Number of posts of each type, as an object: image, carousel, reel (Reels).
- `posts_by_hour_utc`: (engagement) Number of posts by hour of posting (UTC): 24 numbers, the first is for hour 0.
- `top_hours_utc`: (engagement) The hours (0 to 23, UTC) with the most posts, most first.
- `posts_by_weekday_utc`: (engagement) Number of posts by day of the week (UTC): 7 numbers, in the order Sunday, Monday, ... Saturday.
- `top_posts`: (engagement) The 3 posts with the most interactions; each has url, text (the first 140 characters of the caption), posted_at, interactions (likes + comments), like_count, comment_count and view_count (absent for image posts).
- `joined_at`: (user_about) The month the account joined, such as 2010-11.
- `joined_text`: (user_about) The join date as Instagram writes it, such as November 2010.
- `former_usernames_count`: (user_about) How many times the account changed its username. Only the count is given.
- `verified_at`: (user_about) The month the account was verified; absent when Instagram does not show it.
- `location_id`: Location ID. Pass it to location_info, location_nearby or location_posts.
- `lat`: Latitude.
- `lng`: Longitude.
- `zip`: (location_info) Postal code; absent when the location has none.
- `post_count_label`: The post count as Instagram writes it, such as 2.2K posts.
- `price_range`: (location_nearby) Price range as Instagram writes it, such as $$; absent when there is none.
- `hours_status`: (location_nearby) Opening status as Instagram writes it; absent when there is none.
- `origin`: (location_nearby) The location you asked about, the same on every row: location_id, name, lat, lng.
- `city_id`: City ID, c followed by digits, such as c2728325. Pass it to city_locations.
- `city_name`: (city_locations) The city's name in Instagram's location directory, the same on every row.
- `slug`: The name part of the Instagram location directory link, such as st-patricks-cathedral.
- `country_code`: Two-letter country code (ISO 3166-1), such as US.
- `country_name`: Country name in English, such as United States.
- `shortcode`: The post shortcode: the part of the post link after /p/ or /reel/.
- `media_id`: The numeric post ID. oembed gives it as postID_authorID.
- `version`: (oembed) oEmbed version, 1.0.
- `provider_name`: (oembed) Always Instagram.
- `provider_url`: (oembed) Always https://www.instagram.com.
- `html`: (oembed) Embed code: a blockquote plus Instagram's embed.js that shows the official embed card.
- `thumbnail_width`: (oembed) Thumbnail width in pixels.
- `thumbnail_height`: (oembed) Thumbnail height in pixels.
- `translation`: The machine translation. Absent when the post has no caption.
- `source_language`: The detected language code of the original text, such as en; und when it cannot be detected.
- `target_language`: The language code translated into: the target_language you passed, or en.
- `comment_id`: (comment_translations) The numeric comment ID, one of the comment_ids you passed.
- `highlight_id`: (highlight_stories) The ID of the highlight the story is in, the same on every row.
- `highlight_title`: (highlight_stories) The highlight's title, the same on every row.
- `shared_post_url`: (highlight_stories) The link of the post this story shares; absent on stories that share no post.
- `reposted_by`: (user_reposts) The account that reposted the post, the one you asked about; author_username is the original author.
- `matched_by`: (user_search) How the account was found: search_box means Instagram's search box returned it directly; post_author means it is the author of a post found with this keyword (the search box returns only a few accounts at a time, and these fill up the count). Some results do not have this field.
- `cover_url`: Highlight cover image (highlights).
- `media_count`: Number of stories in this highlight collection (highlights).
- `media_url`: Direct link to the story's image or video (stories). The link is signed and expires after a few hours, so download it promptly.
- `next_page_token`: Pagination token (comment_replies): pass it back unchanged as page_token in the next request to get the next page. Every row on the same page has the same value, and the top level of the response also has the same next_page_token. When the field is absent, there are no more pages.
- `reply_to_id`: ID of the comment being replied to (comment_replies); it is the comment_id in the request.
- `updated_at`: Time a story was last added to the highlight (highlights; ISO 8601, UTC).

### Pricing

Pay per event, charged only when a run delivers data:

- `post`: $0.0009, one event per non-empty request, whatever the row count.
- `profile`: $0.0009, one event per non-empty request, whatever the row count.
- `user_posts`: $0.0017, one event per started block of 30 results.
- `comments`: $0.0029, one event per started block of 50 results.
- `reels`: $0.0020, one event per started block of 30 results.
- `hashtag`: $0.0065, one event per non-empty request, whatever the row count.
- `followers_list`: $0.0061, one event per started block of 50 results.
- `following_list`: $0.0061, one event per started block of 50 results.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

### Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

### Notes

- Results reflect what is publicly visible when the run happens; counts can be lower than requested.
- One run makes one request. For more pages, start another run with `page_token` where the action supports it.
- This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by Instagram or its owner; names and trademarks belong to their respective owners.

### Support

Open an issue on this Actor's Issues tab with the run ID.

# Actor input Schema

## `action` (type: `string`):

What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.

## `urls` (type: `array`):

Used by `post` (required). Accepts an array of full Instagram post or Reel URLs (e.g., /p/<shortcode>/ or /reel/<shortcode>/) for the post action, billed per target URL. Unlike post, the comments action processes only a single URL. If you pass a single URL and the post does not exist or cannot be viewed (deleted, or from a private account), the call returns 200 with an empty result and empty_reason set to post_unavailable. It is not charged, and retrying the same URL does not change the result; a repeat for the same URL within 24 hours returns the same result, also free.

## `username` (type: `string`):

Used by `profile` (required), `user_posts` (required), `reels` (required), `followers_list` (required), `following_list` (required). Identifies an Instagram account handle without the @ symbol or as a full profile URL. Used by profile, persona, user_posts, and reels to fetch account data, and by engagement to work out one account's engagement. The followers action returns only total follower counts, whereas followers_list and following_list return account lists.

## `page_token` (type: `string`):

Used by `user_posts`, `comments`, `followers_list`. Page token for `user_posts`, `tagged_posts`, `comments`, `followers_list`, `user_search`, `similar_profiles`, `comment_replies`, `likers`, `location_posts`, `audio_posts` and `explore`. Leave it out for the first page; pass back the `next_page_token` exactly as received, other parameters unchanged (except `limit`, if present). Each page is one call; tokens last 24 hours. No `next_page_token` means no more pages: `pagination.stop_reason` is `end_of_list` at the end, or `depth_limit` if this run cannot go deeper; data may remain.

## `url` (type: `string`):

Used by `comments` (required). Specifies a single Instagram post or Reel URL for the comments and likers actions. Profile URLs are not supported. For the reels action, passing a URL does not replace the required username parameter. For the comments action, if the post does not exist or cannot be viewed (deleted, or from a private account), the call returns 200 with an empty result and empty_reason set to post_unavailable. It is not charged, and retrying the same URL does not change the result; a repeat for the same URL within 24 hours returns the same result, also free.

## `hashtag` (type: `string`):

Used by `hashtag` (required). Accepts an Instagram hashtag string without the leading # symbol (e.g., coffee) to list associated posts or reels. This parameter requires a hashtag name rather than an account handle.

## `results_type` (type: `string`):

Used by `hashtag`. Selects the content type for discover and hashtag: omit it for regular posts, or pass reel or reels for short videos. posts cannot be passed explicitly, and any other value returns 422. It does not choose the response file format.

## `tag` (type: `string`):

Used by `hashtag`. Provides compatibility input for the hashtag action, automatically stripping leading # symbols. When both are supplied, hashtag takes precedence. Public requests must still include the required hashtag parameter.

## `limit` (type: `integer`):

How many results to request for list actions. Defaults and maximums per action: `post` 11 (max 11); `user_posts` 30 (max 200); `comments` 50 (max 100); `reels` 30 (max 100); `hashtag` 30 (max 30); `followers_list` 50 (max 500); `following_list` 50 (max 500). Billing: `post` one event per non-empty request, whatever the row count; `user_posts` one event per started block of 30 results; `comments` one event per started block of 50 results; `reels` one event per started block of 30 results; `hashtag` one event per non-empty request, whatever the row count; `followers_list` one event per started block of 50 results; `following_list` one event per started block of 50 results.

## `params` (type: `object`):

Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree.

## Actor input object example

```json
{
  "action": "profile",
  "username": "instagram"
}
```

# Actor output Schema

## `records` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "username": "instagram"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blushing_parachute/everyinfra-instagram-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "username": "instagram" }

# Run the Actor and wait for it to finish
run = client.actor("blushing_parachute/everyinfra-instagram-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "username": "instagram"
}' |
apify call blushing_parachute/everyinfra-instagram-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blushing_parachute/everyinfra-instagram-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/f8o345JOSrepCaUaG/builds/maydEHE6B06GFrgAL/openapi.json
