Instagram Post Scraper avatar

Instagram Post Scraper

Pricing

$1.50 / 1,000 results

Go to Apify Store
Instagram Post Scraper

Instagram Post Scraper

This Apify Actor extracts recent Instagram posts (including videos, captions, and metadata) from specified public usernames.

Pricing

$1.50 / 1,000 results

Rating

5.0

(1)

Developer

APISmith

APISmith

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

5 days ago

Last modified

Share

Instagram Posts Scraper

This Apify Actor extracts recent Instagram posts (including videos, captions, and metadata) from specified public usernames.

It is designed for lightweight, structured data collection with support for multiple usernames and customizable result limits.


🚀 Features

  • Scrape posts from one or more Instagram usernames
  • Supports video posts, images, and metadata
  • Returns structured JSON output
  • Includes engagement metrics (likes, comments)
  • Extracts media URLs (video, audio, images)
  • Fast and scalable via Apify platform

📥 Input

Provide a JSON object with the following structure:

{
"resultsLimit": 12,
"usernames": [
"bbcnews"
]
}

Input Parameters

FieldTypeDescription
resultsLimitNumberMaximum number of posts to return per username
usernamesArrayList of Instagram usernames to scrape

📤 Output

The Actor returns an array of post objects with detailed metadata.

Example Output

[
{
"id": "3879307207867408382_16278726",
"pk": "3879307207867408382",
"type": "Video",
"shortCode": "DXWEVojjJ_-",
"caption": "The US has intercepted an Iranian-flagged cargo ship...",
"url": "https://www.instagram.com/p/DXWEVojjJ_-/",
"commentsCount": 118,
"dimensionsHeight": 1136,
"dimensionsWidth": 640,
"displayUrl": "https://...",
"images": [],
"childPosts": [],
"videoUrl": "https://...",
"audioUrl": "https://...",
"likeCount": 1147,
"timestamp": 1776669508,
"ownerId": "16278726",
"ownerUsername": "bbcnews",
"ownerFullName": "BBC News",
"ownerProfilePicUrl": "https://...",
"productType": "clips",
"isCommentsDisabled": false,
"inputUrl": "bbcnews",
"alt": "",
"videoDuration": 0,
"artist_name": "bbcnews",
"song_name": "原声",
"should_mute_audio": false,
"should_mute_audio_reason": "",
"audio_id": "26793687173599804"
}
]

📊 Output Fields Explained

FieldDescription
idUnique identifier of the post
pkInstagram internal post ID
typeType of post (e.g., Video, Image)
shortCodeInstagram shortcode
captionPost caption text
urlDirect link to the post
commentsCountNumber of comments
likeCountNumber of likes
timestampUnix timestamp of post creation
displayUrlThumbnail or cover image
videoUrlVideo file URL (if applicable)
audioUrlAudio track URL (if available)
imagesArray of image URLs (for carousel posts)
childPostsNested posts (if carousel)
ownerUsernameUsername of the post owner
ownerFullNameFull name of the account
ownerProfilePicUrlProfile picture URL
productTypeInstagram content type (e.g., clips)
isCommentsDisabledWhether comments are disabled

⚙️ Usage

  1. Open the Actor in Apify Console
  2. Enter your input JSON
  3. Click Run
  4. Download results as JSON, CSV, or via API

🔗 API Access

You can run this Actor programmatically using the Apify API:

curl "https://api.apify.com/v2/acts/YOUR-ACTOR-ID/run-sync-get-dataset-items?token=YOUR-API-TOKEN" \
-H "Content-Type: application/json" \
-d '{
"resultsLimit": 12,
"usernames": ["bbcnews"]
}'

⚠️ Notes

  • Only public Instagram profiles are supported
  • Data availability depends on Instagram's structure and rate limits
  • Large requests may take longer to process

📌 Use Cases

  • Social media monitoring
  • News tracking (e.g., BBC, CNN, etc.)
  • Influencer analytics
  • Content archiving
  • Trend analysis