Instagram API
23 endpoints for public Instagram data, from 1 credit a call. Same response format and field names as every other platform.
curl "https://scrapeio.com/v1/instagram/profile?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/profile1 creditInstagram profile: bio, avatar, followers, following, post count, category.
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | Instagram username, with or without @. |
curl "https://scrapeio.com/v1/instagram/profile?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v2/instagram/user/posts5 creditsA profile's posts of every type (reels, photos, carousels), newest first, with real play counts.
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | Instagram username, with or without @. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v2/instagram/user/posts?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/user/reels1 creditA profile's reels with real play counts.
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | Instagram username, with or without @. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/instagram/user/reels?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/post5 creditsOne post or reel by URL: plays, likes, comments, caption, media URLs.
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | Instagram post or reel URL. |
curl "https://scrapeio.com/v1/instagram/post?url=..." \ -H "x-api-key: YOUR_KEY"
GET/v2/instagram/post/comments1 creditComments on a post or reel.
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | Instagram post or reel URL. |
sort | recent, popular | recent pages with likes; popular returns the top 15. Default: recent. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v2/instagram/post/comments?url=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/post/comment/replies1 creditReplies to one Instagram comment.
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | Instagram post or reel URL. |
comment_idrequired | string | Comment id from the comments endpoint. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/instagram/post/comment/replies?url=...&comment_id=..." \ -H "x-api-key: YOUR_KEY"
GET/v2/instagram/media/transcript5 creditsTranscript of a reel (videos under 2 minutes).
| Parameter | Type | Description |
|---|---|---|
urlrequired | string | Instagram reel URL. |
curl "https://scrapeio.com/v2/instagram/media/transcript?url=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/search1 creditSearch Instagram accounts and hashtags.
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Search text. |
curl "https://scrapeio.com/v1/instagram/search?query=coffee" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/search/posts1 creditSearch Instagram posts and reels by keyword.
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Search text. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/instagram/search/posts?query=coffee" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/hashtag1 creditRecent posts under a hashtag.
| Parameter | Type | Description |
|---|---|---|
hashtagrequired | string | Hashtag, with or without #. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/instagram/hashtag?hashtag=travel" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/user/similar1 creditAccounts Instagram suggests as similar to a profile.
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | Instagram username, with or without @. |
curl "https://scrapeio.com/v1/instagram/user/similar?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/user/highlights1 creditA profile's story highlights: id, title, cover.
Send one of: handle, user_id.
| Parameter | Type | Description |
|---|---|---|
handle | string | Instagram username. |
user_id | string | Instagram user id. Send this or handle. |
curl "https://scrapeio.com/v1/instagram/user/highlights?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/user/highlight/detail1 creditThe stories inside one highlight, with image and video links.
| Parameter | Type | Description |
|---|---|---|
idrequired | string | Highlight id from the highlights endpoint. |
curl "https://scrapeio.com/v1/instagram/user/highlight/detail?id=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/profile/post-count1 creditHow many posts a profile has.
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | Instagram username. |
curl "https://scrapeio.com/v1/instagram/profile/post-count?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/search/profiles1 creditSearch Instagram accounts by keyword.
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Search text. |
curl "https://scrapeio.com/v1/instagram/search/profiles?query=coffee" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/user/tagged-posts1 creditPosts other accounts tagged a profile in.
Send one of: user_id, handle.
| Parameter | Type | Description |
|---|---|---|
user_id | string | Instagram user id. |
handle | string | Instagram username. Send this or user_id. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/instagram/user/tagged-posts?user_id=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/search/hashtag1 creditRecent posts under an Instagram hashtag.
| Parameter | Type | Description |
|---|---|---|
hashtagrequired | string | Hashtag, with or without #. |
cursor | string | Cursor from the previous page's data.cursor. |
curl "https://scrapeio.com/v1/instagram/search/hashtag?hashtag=travel" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/audio/reels5 creditsGet Reels By Audio Id
| Parameter | Type | Description |
|---|---|---|
audio_idrequired | string | The audio id from the Instagram audio page URL. |
cursor | string | Pagination cursor returned by Instagram from the previous response. |
curl "https://scrapeio.com/v1/instagram/audio/reels?audio_id=..." \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/basic-profile5 creditsBasic Profile
| Parameter | Type | Description |
|---|---|---|
userId | string | Instagram user id |
cache_max_age | 1d, 3d, 7d, 14d, 30d | If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "ca |
curl "https://scrapeio.com/v1/instagram/basic-profile" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/reels/trending5 creditsTrending Reels
No parameters.
curl "https://scrapeio.com/v1/instagram/reels/trending" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/search/popular5 creditsPopular Search
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | The Popular topic to search for. |
cursor | string | The opaque cursor returned by the previous response. |
curl "https://scrapeio.com/v1/instagram/search/popular?query=coffee" \ -H "x-api-key: YOUR_KEY"
GET/v1/instagram/user/embed5 creditsEmbed HTML
| Parameter | Type | Description |
|---|---|---|
handlerequired | string | Instagram handle |
curl "https://scrapeio.com/v1/instagram/user/embed?handle=nike" \ -H "x-api-key: YOUR_KEY"
GET/v2/instagram/reels/search5 creditsSearch Reels
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | The keyword to search for |
date_posted | last-week, last-month, last-year | Google-indexed date window. |
page | string | The page number to return. |
curl "https://scrapeio.com/v2/instagram/reels/search?query=coffee" \ -H "x-api-key: YOUR_KEY"