Ssocialgraph.dev
Platforms / Instagram
IG

Instagram API for public profiles, posts, reels and comments

Look up public Instagram accounts by username or ID, pull their latest posts and reels, get full post details with likes, comments and views, and read the comments on any public post. Every Instagram endpoint returns the same clean, consistent field names.

What you can do with the Instagram API

  • Profile details, follower and following counts
  • Latest 12 posts, up to 120 recent posts, and reels
  • Post and reel details with likes, comments and views
  • Comments by shortcode or media ID
  • One consistent schema across every endpoint
Live demos use Instagram's own account, @instagram. Run it right here; no account needed.
Try it live: Profile details by username GET

๐Ÿ”’ Preset demo input. Live demos use Instagram's own account, @instagram. Sign up free to use your own.

All Instagram API endpoints

GET Profile details by username Public profile details for a username: bio, links, counts, verification and profile picture. /api/v1/instagram/profile 2 credits / call GET Profile details by user ID Public profile details for a numeric Instagram user ID. /api/v1/instagram/profile-by-id 2 credits / call GET Follower & following counts Follower count, following count and user ID for a username. /api/v1/instagram/follow-counts 2 credits / call GET Post details Details of a single post or reel by shortcode, without the view count. /api/v1/instagram/post-details 2 credits / call GET Reel details with view count Full details of a single reel by shortcode, including its view count. /api/v1/instagram/reel-details-with-views 2 credits / call GET Latest 12 posts & reels The 12 most recent posts and reels of a username. /api/v1/instagram/latest-posts 2 credits / call GET Reels by username Reels among the most recent posts of a username. Each page scans 12 posts and returns the reels among them, so pages=3 checks the latest 36 posts. /api/v1/instagram/reels 2 credits / call GET Recent posts & reels (up to 120) Up to 120 of the most recent posts and reels of a username. /api/v1/instagram/posts 2 credits / call GET Recent posts statistics Engagement statistics for the last 12 posts and reels of a username. /api/v1/instagram/posts-statistics 2 credits / call GET Post comments by shortcode Comments on a post or reel, looked up by its shortcode. /api/v1/instagram/comments-by-shortcode 2 credits / call GET Post comments by media ID Comments on a post or reel, looked up by its numeric media ID. /api/v1/instagram/comments-by-media-id 2 credits / call

Instagram API: frequently asked questions

Can I use the Instagram API without a login or access token?

Yes. Every endpoint returns publicly available data from a username, user ID or post shortcode. No Instagram account, Graph API app or access token is involved; you only need a socialgraph.dev API key.

What Instagram data is available?

Profile details and follower counts by username or user ID, the latest 12 or up to 120 recent posts and reels, reels with view counts, single post and reel details by shortcode, and comments by shortcode or media ID.

Is the data live?

Yes. Every call fetches the data from Instagram at the time of the request. Nothing is served from a stale index.

How much do Instagram API calls cost?

Every Instagram endpoint costs 2 credits per successful call, which is US$0.004. Errors, not-found responses and invalid input are never charged, and credits never expire.

Does it work for private accounts?

Only public information is returned. For private accounts you get the profile basics (name, counts, private flag) but no posts or comments.

Start with 100 free credits

Create an account in seconds. No card, no subscription. Credits never expire.

Create free account โ†’