Support needed? Reach out! 📧

Instagram Posts API

Access Instagram post feeds from any public account including captions, media URLs, and engagement metrics for content research and strategy.

python-logo Python
Instagram User Posts
1 import requests
2  
3 root = "https://ensembledata.com/apis"
4 endpoint = "/instagram/user/posts"
5 params = {
6   "user_id"18428658,
7   "depth"1,
8   "oldest_timestamp"1666262030,
9   "chunk_size"10,
10   "start_cursor""",
11   "alternative_method"False,
12   "token""YOUR-TOKEN-HERE"
13 }
14  
15 res = requests.get(root+endpoint, params=params)
16 print(res.json())
17  

Why Developer Teams Use Our API

Full Feed History

Paginate through an account's entire public post archive instead of the last few uploads.

Photos, Carousels, and Video

Every public post type comes back in one feed, not just single images.

Posting Cadence Analysis

Use publish dates across posts to calculate how often an account actually posts.

Content Benchmarking

Compare captions and engagement across accounts to see what format performs best.

Direct Media URLs

Get direct links to images and video instead of scraping them from HTML.

No Login Required

Only publicly visible Instagram posts are accessed, no account or session needed.

Scrape Instagram Data Effortlessly

Crawl Instagram content at scale with our posts API, great for auditing a creator's feed, spotting content trends, or benchmarking against competitors.

deco-icon

Carousel & Reel Coverage

Capture every Instagram post format, from single images to carousels, in one feed.

deco-icon

Feed Archive Snapshots

Store full Instagram feed pulls over time to track how content evolves.

deco-icon

Content Format Insights

Compare engagement across Instagram post types to see which format wins.

Instagram Scraping Features

Scrape user-generated content and post data from Instagram to understand what is resonating with audiences in your niche.

  • Paginate through an account's entire public Instagram feed instead of the latest few posts.
  • Capture single images, carousels, and video posts together in one unified feed pull.
  • Get direct media URLs alongside captions instead of scraping them out of raw HTML.
  • Count carousel slides directly from the returned media array for each post.
  • Calculate posting cadence and trends by comparing publish dates across the full history.

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

Each post includes the caption, media URL, like count, comment count, and publish date, so you can analyze the full post history of an account.

Yes, it returns all public post types, including single images, carousels, and videos, from the account's feed.

Yes, the endpoint paginates through an account's public post feed so you can collect its entire content history for auditing or benchmarking.

Yes, since each post includes a publish date, you can calculate posting frequency and cadence trends over any period.

Each call returns a page of posts along with a pagination cursor; keep passing it into the next request until the account's full feed has been collected.

Yes, carousel posts return an array of media items, and you can count the array length to get the total slides in that post.

Reels that appear on the main profile grid are included; for Reels-specific metrics like play count, use the dedicated Reels endpoint instead.

Previously retrieved data isn't affected, but subsequent requests to a now-private account return no post data, matching what's visible on the app.

Data is fetched live from Instagram at request time, so like counts, comment counts, and captions reflect the account's current state.