Instagram Scraper Pro
Pricing
Pay per event
Go to Apify Store
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
Maintained by Community
Actor stats
1
Bookmarked
4
Total users
2
Monthly active users
5 days ago
Last modified
Categories
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
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | Yes | The action to perform (see actions below) |
userId | string | For some actions | Instagram numeric User ID |
username | string | For some actions | Instagram username (without @) |
mediaId | string | For some actions | Instagram Media/Post ID |
query | string | For searchUsers | Search query |
audioClusterId | string | For reelsAudio | Audio cluster ID |
hashtag | string | For hashtagFeed | Hashtag (without #) |
count | integer | No | Number of results (default: 12, max: 50) |
maxRetries | integer | No | Retry attempts on failure (default: 3) |
Available Actions
| Action | Required Input | Description |
|---|---|---|
usernameToUserId | username | Get full profile data from username |
userInfo | userId | Get profile data from user ID |
userPosts | userId | Get user's recent posts |
userReels | userId | Get user's reels |
mediaInfo | mediaId | Get details of a specific post |
searchUsers | query | Search for users |
hashtagFeed | hashtag | Get posts from a hashtag |
explorePage | - | Get explore page content |
mediaComments | mediaId | Get comments on a post |
reelsAudio | audioClusterId | Get 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 IDusername- Instagram handlefullName- Display namebiography- Profile biofollowersCount- Number of followersfollowingCount- Number followingpostsCount- Total postsisPrivate- Privacy statusisVerified- Verification badgeprofilePicUrl- Profile picture URLexternalUrl- Website link
Post/Media Data:
mediaId- Post IDmediaType- photo/video/carouselcaption- Post captionlikesCount- Number of likescommentsCount- Number of commentsimageUrl- Image URLvideoUrl- 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
usernameToUserIdto get the richest profile data including follower counts - The
userIdis required for fetching posts and reels - get it first usingusernameToUserId - Private accounts will return limited data
- Increase
maxRetriesif you're experiencing timeouts