Instagram Posts Scraper avatar

Instagram Posts Scraper

Pricing

from $0.60 / 1,000 results

Go to Apify Store
Instagram Posts Scraper

Instagram Posts Scraper

Turn public Instagram post and reel links into structured data. No login. One row per URL, with the caption, photos, video, likes, comment count, author, and audio. Works for photos, carousels, videos, and Reels.

Pricing

from $0.60 / 1,000 results

Rating

0.0

(0)

Developer

Alien Force

Alien Force

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Overview

The Instagram Posts Scraper collects public Instagram posts and reels from post URLs. Paste /p/ or /reel/ links and get structured rows with captions, media URLs, stats, and author details.

This actor does not take profile usernames or scrape a profile grid. Each input URL becomes one dataset row.

Key Features

  • Post URL input: Accepts /p/, /reel/, /reels/, /tv/, and instagram.com/{user}/p|reel/{code} links.
  • Photos, carousels, videos, and reels: Detects media type from the public post payload.
  • Caption and tags: Caption text plus hashtags and @mentions parsed from it.
  • Engagement: Likes and comment counts when Instagram includes them for logged-out viewers.
  • Author details: Username, display name, verified flag, and profile URL.
  • Proxy support: Datacenter proxies by default; switch to residential if Instagram starts blocking.
  • Fast and lightweight: HTTP fetch with browser TLS impersonation. No login.

Input Schema

Input Properties

  1. startUrls (required)

    • Type: array
    • Description: Public Instagram post or reel URLs.
    • Example:
      [
      { "url": "https://www.instagram.com/p/Cs9iEotsiGY/" }
      ]
  2. proxyConfiguration

    • Type: object
    • Description: Proxy settings for the run. Apify Proxy datacenter IPs are used by default. If Instagram starts returning empty pages, switch to the RESIDENTIAL group.
    • Example:
      { "useApifyProxy": true }

At least one startUrls entry must be a valid Instagram post or reel URL.

Input Example

{
"startUrls": [
{ "url": "https://www.instagram.com/p/Cs9iEotsiGY/" },
{ "url": "https://www.instagram.com/p/Csthn7EO99u/" },
{ "url": "https://www.instagram.com/reel/Cs9iEotsiGY/" }
],
"proxyConfiguration": {
"useApifyProxy": true
}
}

Output

One dataset row per post URL.

FieldTypeDescription
inputUrlstringURL as given in the input
postUrlstringCanonical post or reel URL
postIdstringInstagram media ID
shortcodestringShortcode from the URL
mediaTypestringphoto, video, carousel, or reel
captionstringPost caption
hashtagsstring[]Hashtags in the caption
mentionsstring[]@mentions in the caption
takenAtintegerPost time (Unix timestamp, seconds)
displayUrlstringCover image or first media URL
imageUrlsstring[]Image URLs, including carousel slides
videoUrlstringBest available video URL
videoDurationnumberVideo duration in seconds (DASH / CDN metadata when Instagram omits video_duration)
widthintegerOriginal media width
heightintegerOriginal media height
likeCountintegerLikes
commentCountintegerComments
playCountintegerPlays / views. Logged-out post pages usually omit this, so it is often null
commentsDisabledbooleanWhether comments are disabled
locationNamestringLocation name when tagged
ownerIdstringAuthor user ID
ownerUsernamestringAuthor username
ownerFullNamestringAuthor display name
ownerVerifiedbooleanVerified author
ownerProfileUrlstringAuthor profile URL
taggedUsersstring[]Usernames tagged in the media
coauthorUsernamesstring[]Coauthor usernames
audioIdstringInstagram audio / original sound ID
audioUrlstringPublic audio page, e.g. https://www.instagram.com/reels/audio/{id}/
audioTitlestringReel / clip audio title
audioArtiststringReel / clip audio artist
audioIsOriginalbooleanWhether the audio is original sound
isPaidPartnershipbooleanPaid partnership flag when present
scrapedAtstringWhen the post was scraped

Media CDN URLs expire. Treat displayUrl / videoUrl as short-lived.

Handling of missing and blocked inputs

Inputs that yield no post are kept out of the dataset and reported in the RUN_REPORT record in the run's key-value store, alongside a warning in the log. Each entry lists the original input, the resolved postUrl and shortcode, a reason (empty, gated, notAvailable, invalidInput, or requestFailed), and a human-readable message.

  • Private or gated post: skipped as gated. A logged-out page that does not actually mark the post as private or gated is retried first. gated is reported when the page marks it that way, or when those retries are used up.
  • Removed or unavailable post: skipped as notAvailable, with no retries. This covers a "Post isn't available" page and the same outcome from the page payload or status.
  • Input without a usable shortcode: skipped as invalidInput. If no input yields a post URL, the run fails with an input error.
  • Blocked request: automatically retried. If every retry fails, the input is skipped as requestFailed. A run where all targets were blocked fails with a clear message.

The run's status message always reports how many posts were scraped and how many inputs were skipped.