Instagram Scraper Pro avatar
Instagram Scraper Pro

Pricing

Pay per event

Go to Apify Store
Instagram Scraper Pro

Instagram Scraper Pro

Extract Instagram data at scale. Get user profiles, posts, reels, comments, hashtag feeds, and more with a simple API.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Agenscrape

Agenscrape

Maintained by Community

Actor stats

1

Bookmarked

4

Total users

2

Monthly active users

5 days ago

Last modified

Share

Extract Instagram data at scale. Get user profiles, posts, reels, comments, hashtag feeds, and more with a simple API.

What can this actor do?

  • Get Profile Data - Extract full profile information from any public Instagram account by username
  • Convert Username to User ID - Look up the numeric user ID for any Instagram username
  • Get User Posts - Fetch the latest posts from any public profile
  • Get User Reels - Extract reels/short videos from Instagram profiles
  • Get Media Details - Get complete information about any Instagram post or reel
  • Search Users - Search for Instagram users by keyword
  • Get Hashtag Feed - Extract posts from any hashtag
  • Get Explore Page - Fetch trending content from Instagram's explore page
  • Get Comments - Extract comments from any post
  • Get Reels Audio - Get information about audio tracks used in reels

Input Parameters

ParameterTypeRequiredDescription
actionstringYesThe action to perform (see actions below)
userIdstringFor some actionsInstagram numeric User ID
usernamestringFor some actionsInstagram username (without @)
mediaIdstringFor some actionsInstagram Media/Post ID
querystringFor searchUsersSearch query
audioClusterIdstringFor reelsAudioAudio cluster ID
hashtagstringFor hashtagFeedHashtag (without #)
countintegerNoNumber of results (default: 12, max: 50)
maxRetriesintegerNoRetry attempts on failure (default: 3)

Available Actions

ActionRequired InputDescription
usernameToUserIdusernameGet full profile data from username
userInfouserIdGet profile data from user ID
userPostsuserIdGet user's recent posts
userReelsuserIdGet user's reels
mediaInfomediaIdGet details of a specific post
searchUsersquerySearch for users
hashtagFeedhashtagGet posts from a hashtag
explorePage-Get explore page content
mediaCommentsmediaIdGet comments on a post
reelsAudioaudioClusterIdGet audio track info

Example Input

{
"action": "usernameToUserId",
"username": "instagram"
}

Example Output

{
"action": "usernameToUserId",
"success": true,
"username": "instagram",
"userId": "25025320",
"fullName": "Instagram",
"biography": "Discover what's new on Instagram",
"followersCount": 697458483,
"followingCount": 290,
"postsCount": 8246,
"isPrivate": false,
"isVerified": true,
"profilePicUrl": "https://...",
"profilePicUrlHd": "https://...",
"externalUrl": "http://help.instagram.com/"
}

Output Fields

Each response includes a success field indicating whether the request was successful.

Profile Data:

  • userId - Numeric user ID
  • username - Instagram handle
  • fullName - Display name
  • biography - Profile bio
  • followersCount - Number of followers
  • followingCount - Number following
  • postsCount - Total posts
  • isPrivate - Privacy status
  • isVerified - Verification badge
  • profilePicUrl - Profile picture URL
  • externalUrl - Website link

Post/Media Data:

  • mediaId - Post ID
  • mediaType - photo/video/carousel
  • caption - Post caption
  • likesCount - Number of likes
  • commentsCount - Number of comments
  • imageUrl - Image URL
  • videoUrl - Video URL (if applicable)

Error Handling

When a profile or resource is not found, the actor returns a clear error message:

{
"action": "usernameToUserId",
"success": false,
"error": "User not found - profile does not exist or has been deleted",
"username": "nonexistent_user"
}

Tips

  • Use usernameToUserId to get the richest profile data including follower counts
  • The userId is required for fetching posts and reels - get it first using usernameToUserId
  • Private accounts will return limited data
  • Increase maxRetries if you're experiencing timeouts