Instagram Posts API | EveryInfra avatar

Instagram Posts API | EveryInfra

Pricing

$8.00 / 1,000 result page events

Go to Apify Store
Instagram Posts API | EveryInfra

Instagram Posts API | EveryInfra

Fetch posts from Instagram user profiles using username. Retrieve text, media info, and engagement metrics.

Pricing

$8.00 / 1,000 result page events

Rating

0.0

(0)

Developer

ECHO

ECHO

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

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

ActionWhat you getRequiredOptionalResults per requestPrice per request
user_postsList 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.usernamepage_token30 (up to 200)$0.0080

Input

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

{
"action": "user_posts",
"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.

  • 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

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:

  • user_posts: $0.0080, one event per non-empty request, whatever the row count.

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.