Support needed? Reach out! 📧

Instagram Post Information API

Get engagement metrics, comment data, and post-level details from Instagram for campaign analytics and marketing reporting.

python-logo Python
Instagram Post Info & Comments
1 import requests
2  
3 root = "https://ensembledata.com/apis"
4 endpoint = "/instagram/post/details"
5 params = {
6   "code""CjDN1tzMIjR",
7   "n_comments_to_fetch"0,
8   "token""YOUR-TOKEN-HERE"
9 }
10  
11 res = requests.get(root+endpoint, params=params)
12 print(res.json())
13  

Why Developer Teams Use Our API

Single Post Deep Dive

Query one Instagram post by shortcode and get every engagement metric tied to it.

Comments Included

Get post metadata and comment data together in one call instead of two requests.

Hashtag Reach Per Post

See every hashtag used on a post to measure campaign reach at that level.

Campaign Performance Reports

Pull likes, comments, and hashtag data for sponsored posts to build ROI reports.

Real-Time Engagement Numbers

Stats are pulled directly from Instagram's post page at request time.

Query by URL or Shortcode

No scraping needed, just pass a post reference and get structured stats back.

Scrape Instagram Data Effortlessly

Scrape the numbers that matter from any Instagram post including likes, comments, hashtags, and timestamps without any manual data entry.

deco-icon

Shortcode Lookup

Pass any Instagram post shortcode and get back full engagement metrics.

deco-icon

Combined Post & Reactions

Get post metadata and audience comments together in a single request.

deco-icon

Sponsored Post Audit

Verify the real engagement behind a sponsored Instagram post before paying out.

Instagram Scraping Features

Crawl Instagram post metadata at scale to understand content performance and make more informed decisions about what to create and promote.

  • Query a single Instagram post by shortcode or URL and get its full engagement breakdown.
  • Return post metadata and a first batch of top comments together in one API call.
  • See whether a post is a single image, video, or carousel along with type-specific fields.
  • Pull every hashtag used on a post to measure campaign reach at that specific level.
  • Read the tagged location name and coordinates when a poster has added one.

Starting crawling Instagram now!

deco-icon

Get Your API Key in Minutes

Create a free account (no credit card required) and receive an API token instantly to test endpoints, pull live data, and rapidly prototype integrations. Upgrade as your needs grow.

Get started free
deco-icon

Developer Support

Need help integrating or customizing data for your workflows? Our developer success team offers onboarding, guidance, and enterprise support to get your project production-ready.

Contact us

Frequently Asked Questions

It returns detailed metadata for one specific post, including like count, comment count, hashtags, and timestamp.

Yes, this endpoint returns post details together with comment data, so you don't need a separate call to see how audiences reacted.

You provide the post's shortcode or URL, and the endpoint returns full metadata and engagement data for that specific post.

Yes, pulling like, comment, and hashtag data for individual campaign posts is a common way to build performance reports.

It returns a first batch of top comments together with the post metadata; for the full thread beyond that batch, use the dedicated Comments endpoint with pagination.

Yes, either the shortcode from the post URL or the numeric media ID resolves to the same post data.

Yes, a media type field distinguishes between image, video, and carousel album posts, along with the relevant metadata for each type.

Yes, where the poster attached a location, the tagged place name and coordinates are included in the response.