Instagram (Meta) heavily restricts data access. Here's what still works.
Official Instagram API (2026)
Meta's Graph API is the only legal way:
- Instagram Basic Display API — deprecated 2024
- Instagram Graph API — requires Business/Creator account
- Content Publishing API — for posting, not scraping
What You CAN Access via Graph API
With a Facebook Developer account (free):
- Your own posts, stories, insights
- Business discovery (public business profiles)
- Hashtag search (limited)
- Mentioned media
What You CAN'T Access
- Other users' followers/following lists
- Private profiles
- DMs
- Bulk data extraction
Alternative: Profile Metadata
Public Instagram profiles have metadata in the page source:
// This approach may break — use with caution
async function getProfileMeta(username) {
const url = `https://www.instagram.com/${username}/?__a=1&__d=dis`;
const res = await fetch(url, {
headers: {
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0)',
'X-IG-App-ID': '936619743392459'
}
});
// Note: This endpoint changes frequently
}
Warning: Instagram actively blocks automated access. This is unreliable.
Better Alternatives for Social Data
Instead of fighting Instagram's restrictions, use platforms with open APIs:
| Platform | API | Auth | Rate Limit |
|---|---|---|---|
| Bluesky | AT Protocol | None | None |
| .json endpoint | None | Generous | |
| YouTube | Innertube | None | None |
| Hacker News | Algolia | None | None |
| Twitter/X | Free tier | OAuth | 1,500/mo |
My Recommendation
For social media analysis, Bluesky + Reddit + YouTube give better data with zero API restrictions. I cover all of these in my 77 free scrapers collection.
Resources
Need social media data? I extract from Bluesky, Reddit, YouTube, HN — $20. Open API approach = reliable results. Email: Spinov001@gmail.com | Hire me
Top comments (0)