Instagram API - Profiles, Posts, Reels, Comments & Hashtags
Pricing
from $1.96 / 1,000 profiles
Instagram API - Profiles, Posts, Reels, Comments & Hashtags
Instagram API for real-time data: get any public profile, posts, reels, a single post, comments or hashtag top posts as clean JSON in about 1-3 seconds per call. No Instagram login or cookies. Simple GET endpoints with cursor paging, and you pay only for calls that return data.
Pricing
from $1.96 / 1,000 profiles
Rating
0.0
(0)
Developer
Social Scrapers
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
4 days ago
Last modified
Categories
Features
Share
Instagram API is a real-time API for public Instagram data, with no Instagram account, login or cookies. Send an HTTP request, get JSON back in seconds: public profiles, a profile's posts and reels, a post or reel with its details, a post's comments, and the top posts for a hashtag or keyword. One page per call, with a cursor for the next page. You pay only for calls that return data.
💡 Need a feature that isn't here? Just ask. Open an issue on the Issues tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.
⭐ Found it useful? A short review on the Reviews tab helps other people find this API, and tells us what to build next.
What does Instagram API do?
Instagram API answers each request with what Instagram shows a visitor who is not logged in, as clean JSON:
- 👤 Profiles: followers, following and the exact posts count, bio and every bio link, verified badge, account type (business, creator or personal), profile pictures, and the 12 latest posts.
- 🖼️ Posts and reels of a profile: page by page, newest first, pinned posts marked, each with likes, comments, reel plays, caption, hashtags, mentions, date, media URLs, tagged accounts and collaborators.
- 🎬 Reels only: a profile's reels with plays, duration and video URL.
- 🔎 One post or reel: all its details, including location, sound and the play count of a reel.
- 💬 Comments: a post's comments page by page, with likes, reply counts and the commenter.
- #️⃣ Hashtags and keywords: the top posts Instagram shows for a search, in order, plus related searches.
- 💸 Pay per successful call: errors, empty pages, and accounts or posts that are missing or private cost nothing.
It is a server: no run to start and no dataset to fetch. Call it from any language, a no-code tool or your own backend, the same way you call any web API.
Endpoints
| Endpoint | Parameters | Returns |
|---|---|---|
GET /v1/profile | username | A profile with its first page of posts (12). next_cursor continues on /v1/posts. |
GET /v1/posts | username, cursor | One page of a profile's posts (12). |
GET /v1/reels | username, cursor | One page of a profile's reels. |
GET /v1/post | url | One post or reel with its details. |
GET /v1/comments | url, cursor | One page of a post's comments (about 24). |
GET /v1/hashtag | tag, cursor | One page of the top posts for a hashtag or keyword (up to 50). |
GET / | What the API serves (free). |
usernametakesnatgeo,@natgeoor a profile link such ashttps://www.instagram.com/natgeo/.urltakes a post or reel link, its short code (DfahZrMjAqq) or its numeric id. Share links from the app work too.tagtakessourdough,#sourdough, a hashtag link, or a keyword such asrunning shoes.cursoris thenext_cursorof the previous page. A later page needs the cursor alone.
The Server tab of this page lists every endpoint with its fields and lets you try them in the browser.
How to use Instagram API
- Copy your API token from Settings → API & Integrations in Apify Console.
- Send a GET request to the API with the token in the
Authorizationheader:
curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \"https://socialscrapers--instagram-api.apify.actor/v1/profile?username=natgeo"
More examples:
# A profile's posts, page by pagecurl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \"https://socialscrapers--instagram-api.apify.actor/v1/posts?username=nasa"curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \"https://socialscrapers--instagram-api.apify.actor/v1/posts?cursor=<next_cursor>"# Reels of a profilecurl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \"https://socialscrapers--instagram-api.apify.actor/v1/reels?username=natgeo"# One post or reelcurl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \"https://socialscrapers--instagram-api.apify.actor/v1/post?url=https://www.instagram.com/p/DfahZrMjAqq/"# Comments of a postcurl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \"https://socialscrapers--instagram-api.apify.actor/v1/comments?url=DfahZrMjAqq"# Top posts for a hashtagcurl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \"https://socialscrapers--instagram-api.apify.actor/v1/hashtag?tag=sourdough"
In JavaScript:
const res = await fetch('https://socialscrapers--instagram-api.apify.actor/v1/posts?username=nasa', {headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}` },});const { ok, data, next_cursor, error } = await res.json();
In Python:
import requestsr = requests.get("https://socialscrapers--instagram-api.apify.actor/v1/hashtag",params={"tag": "sourdough"},headers={"Authorization": f"Bearer {APIFY_TOKEN}"},)body = r.json()
You can also start the Actor from its Input tab: it then makes one call and saves the result to a dataset, which you can export as JSON, CSV or Excel. The next page's cursor is in the run's OUTPUT record.
Responses
Every answer has the same envelope. A success:
{"ok": true,"data": {"id": "787132","username": "natgeo","fullName": "National Geographic","followersCount": 268114015,"followsCount": 195,"postsCount": 32171,"verified": true,"accountType": "business","externalUrl": "http://visitstore.bio/natgeo","latestPosts": [{"shortCode": "Dfa5-jix5gw","type": "Video","productType": "clips","url": "https://www.instagram.com/p/Dfa5-jix5gw/","caption": "From harsh conditions to rival predators, these wolves face danger at every turn.","likesCount": 132982,"commentsCount": 538,"videoPlayCount": 2285354,"videoDuration": 42.603,"timestamp": "2026-11-07T15:00:02.000Z","isPinned": true}]},"next_cursor": "eyJ2IjoxLCJrIjoicG9zdHMiLCJ1IjoibmF0Z2VvIi..."}
A page of comments:
{"ok": true,"data": {"shortCode": "DfahZrMjAqq","commentsCount": 810,"items": [{"id": "18109962871946737","text": "Beautiful!","timestamp": "2026-11-07T08:21:13.000Z","likesCount": 3,"repliesCount": 0,"ownerUsername": "sample.account","ownerIsVerified": false}]},"next_cursor": "eyJ2IjoxLCJrIjoiY29tbWVudHMiLCJzIjoiRGZhaFpyTWpBcXEi..."}
A failure:
{ "ok": false, "error": { "code": "not_found", "message": "No public Instagram profile @nosuchuser: it does not exist, or a logged-out visitor may not see it." } }
| Status | error.code | Meaning | Charged |
|---|---|---|---|
| 200 | Data, or an empty page | Only when it returns data | |
| 400 | invalid_request, invalid_cursor | A parameter is missing or cannot be read | No |
| 404 | not_found, private | No such profile or post, or a private profile | No |
| 429 | over_capacity | Too many calls at once: retry after the Retry-After seconds | No |
| 502 | instagram_refused, upstream_timeout | Instagram did not answer in time: retry | No |
| 500 | internal_error | Something went wrong on our side | No |
Each call is answered within about 45 seconds; most take a few seconds.
How much does Instagram API cost?
You pay per successful call that returns data. Errors, empty pages, and missing or private accounts and posts are free.
| Call | Price per 1,000 calls |
|---|---|
Profile (/v1/profile) | $2.45 |
Page of posts (/v1/posts) | $5.00 |
Page of reels (/v1/reels) | $5.00 |
Post or reel (/v1/post) | $2.35 |
Page of comments (/v1/comments) | $5.00 |
Page of hashtag top posts (/v1/hashtag) | $5.00 |
Apify's Silver and Gold plans pay less per call. There is no run to start, so there is no start fee and no compute cost on your side.
FAQ
Do I need an Instagram account? No. Everything comes from what Instagram shows a visitor who is not logged in, so no login, cookie or session of yours is ever used.
Can it read private accounts, stories or follower lists? No. Only public data that anyone can see without logging in. A private profile answers with 404 and code private, and is not charged.
How do I get more than one page? Pass the next_cursor of a page as cursor in the next call, until next_cursor is null.
Why can a page of reels hold fewer than the usual number? Each page reads a block of the profile's posts and returns the reels among them; when next_cursor is not null, more follow.
Why is likesCount sometimes null? The owner hid like counts on that post, or the field is not shown for that kind of item (hashtag top posts show plays rather than likes).
What happens when I send many calls at once? Calls are shared fairly between users. When too many arrive at once you get 429 with a Retry-After header; wait that many seconds and retry.
Is it legal to use this data? The API reads only public data. You are responsible for using it lawfully: profiles and comments can hold personal data, which laws such as the GDPR and the CCPA protect, so collect and keep only what you have a legitimate reason to process.
Other scrapers by Social Scrapers
| Scraper | What it gets |
|---|---|
| TikTok API | Profiles, Videos and Comments |
| TikTok Comments Scraper | Comments, Replies and Likes |
| TikTok Hashtag Scraper | Top Videos, Views and Likes |
| TikTok Profile Scraper | Followers, Bio, Stats and Videos |
| TikTok Scraper | Videos, Profiles, Hashtags and Comments |
| TikTok Sound Scraper | Videos Using a Sound and Music Info |
| TikTok Video Scraper | Views, Likes, Captions and Comments |
| Instagram Comments Scraper | Comments, Likes and Reply Counts |
| Instagram Hashtag Scraper | Reels and Keyword Search |
| Instagram Post Details Scraper | Likes, Comments, Views and Media |
| Instagram Post Scraper | Posts, Reels and Comments |
| Instagram Profile Scraper | Followers, Bio, Posts and Reels |
| Instagram Reels Scraper | Reels, Plays, Likes and Comments |
| Instagram Reels Transcript Scraper | Speech to Text and Captions |
| Instagram Scraper | Posts, Profiles, Reels, Comments and Hashtags |
| YouTube API | Videos, Transcripts, Search, Channels and Comments |
| YouTube Channel Scraper | Videos, Shorts, Subscribers and About |
| YouTube Comments Scraper | Comments, Replies and Likes |
| YouTube Scraper | Videos, Shorts, Channels and Comments |
| YouTube Search Scraper | Videos, Channels, Views and Filters |
| YouTube Shorts Scraper | Shorts, Views, Likes and Search |
| YouTube Transcript Scraper | Subtitles, Captions and SRT |
| YouTube Video Details Scraper | Stats, Subtitles and Comments |
| Facebook Ads Library Scraper | Meta Ad Library and Spend |
| Facebook Comments Scraper | Posts, Reels, Videos and Replies |
| Facebook Groups Scraper | Public Group Posts and Reactions |
| Facebook Marketplace Scraper | Prices, Locations and Sellers |
| Facebook Page Contact Info Scraper | Email, Phone and WhatsApp |
| Facebook Posts Scraper | Pages, Profiles and Timelines |
| Facebook Pages Scraper | Profiles, Contact Info and Reviews |
| Facebook Reels Scraper | Reels, Videos, Plays and Captions |
| X (Twitter) Profile Scraper | Followers, Bio and Tweets |
| X (Twitter) Tweet Scraper | Latest Posts by Profile |
| Threads Profile Scraper | Followers, Bio, Links and Posts |
| Threads Replies Scraper | Comments, Authors, Likes and Media |
| Threads Scraper | Posts, Profiles, Replies and Search |
| Threads Search Scraper | Keywords, Hashtags, Top and Recent Posts |
| Reddit Comments Scraper | Threads, Replies, Votes and Authors |
| Reddit Scraper | Posts, Comments, Subreddits, Users and Search |
| Reddit Search Scraper | Posts by Keyword, Subreddit and Date |
| Reddit User Scraper | Profiles, Karma, Posts and Comments |
| Subreddit Scraper | Hot, New and Top Posts with Comments |
| Quora Scraper | Answers, Questions, Profiles and Topic Search |
| LinkedIn Ad Library Scraper | Ads, Advertisers and Impressions |
| LinkedIn Job Search Scraper | Filters, Salaries and New Jobs |
| LinkedIn Jobs Scraper | Job Listings, Salaries and Companies |
| Google Maps Email Extractor | Emails, Phones and Social Links |
| Google Maps Scraper | Places, Phones, Websites, Ratings and Hours |
| Google News Scraper | Headlines, Articles and Search |
| Google Ads Transparency Scraper | Ad Creatives and Advertisers |
| Amazon Product Scraper | Search Results, Prices, Ratings, ASINs |
| Indeed Jobs Scraper | Salaries, Full Descriptions, Company Data |
| Contact Details Scraper | Emails, Phones and Social Links |
| Telegram Channel Scraper | Posts, Views and Media |
| Doximity Scraper | Physician Profiles and Doctor Directory |
| KevinMD Scraper | Physician Articles and Author Specialties |
| Op-Med Scraper | Physician Essays and Doctor Profiles |
| Career Site Jobs Scraper | Greenhouse, Lever, Ashby and Workday |
| Google Trends Scraper | Interest Over Time, Regions and Queries |