How to Scrape Instagram Reels And Short Videos
This tutorial shows how to use Instagram Reels And Short Videos API to scrape and crawl structured Instagram data in real-time.
Extract Instagram Reels metadata at scale and access view counts, play rates, audio tracks, and engagement data for any creator's Reels feed through our API.
Access Instagram Data in 3 Steps
Start crawling Instagram reels analytics data. Follow these steps to extract social media data in minutes.
Create Your Account
Go to our registration page and make an account. It's free, no credit card, and you get credits right away to play around with.
Verify Your Email Address
You'll get a verification email, click the link in it. Once that's done, you can grab your API token from the dashboard.
Make Your First API Call
Copy the code snippet below, swap in your API key, and run it. You'll get Instagram data back as JSON within a few seconds.
Code Sample
Here's a JavaScript example to get you going. Swap out the token and you're good, works the same way in any language that can make HTTP requests. Start collecting reels analytics data via our REST API!
| 1 | const root = 'https://ensembledata.com/apis' |
| 2 | const endpoint = '/instagram/user/reels' |
| 3 | const params = { |
| 4 | "user_id": 18428658, |
| 5 | "depth": 1, |
| 6 | "include_feed_video": true, |
| 7 | "oldest_timestamp": 1666262030, |
| 8 | "start_cursor": "", |
| 9 | "chunk_size": 10, |
| 10 | "token": "YOUR-TOKEN-HERE" |
| 11 | } |
| 12 | |
| 13 | const queryString = new URLSearchParams(params).toString(); |
| 14 | const url = `${root}${endpoint}?${queryString}`; |
| 15 | |
| 16 | await fetch(url) |
| 17 | .then(response => response.json()) |
| 18 | .then(data => console.log(data)) |
| 19 | .catch(error => console.error(error)); |
| 20 |
Parameters
Example Response
Explore the fields returned by this endpoint. Click a row to expand nested objects and arrays, hover a value to copy it, or use "Expand all" to see everything at once.
dataobject2 fields
reelsarray1 item · schema from #0 1 item
mediaobject65 fields
clips_tab_pinned_user_idsarray0 items
locationobject11 fields
preview_commentsarray0 items
commentsarray0 items
usertagsobject1 field
inarray2 items · schema from #0 2 items
userobject8 fields
positionarray2 items · schema from #0 2 items
userobject14 fields
account_badgesarray0 items
fan_club_infoobject5 fields
image_versions2object3 fields
candidatesarray6 items · schema from #0 6 items
additional_candidatesobject3 fields
igtv_first_frameobject3 fields
first_frameobject3 fields
captionobject16 fields
userobject8 fields
coauthor_producersarray1 item · schema from #0 1 item
comment_inform_treatmentobject4 fields
sharing_friction_infoobject3 fields
video_versionsarray3 items · schema from #0 3 items
clips_metadataobject30 fields
original_sound_infoobject22 fields
ig_artistobject8 fields
consumption_infoobject5 fields
audio_partsarray0 items
mashup_infoobject10 fields
branded_content_tag_infoobject1 field
additional_audio_infoobject2 fields
audio_reattribution_infoobject1 field
audio_ranking_infoobject1 field
content_appreciation_infoobject1 field
achievements_infoobject2 fields
media_cropping_infoobject1 field
square_cropobject4 fields
Response Codes
Status codes this endpoint can return, so you can handle errors before they surprise you in production.
API Pricing
Fetch Instagram Data at Scale
Track Reels performance across multiple creators or campaigns and use the data to sharpen your short-form video content strategy.
Reels Metrics
Get view counts, play counts, and engagement for every Reel.
Audio Tracking
See which sound powers each Reel to spot trending tracks.
Top Performers
Rank a creator's Reels feed to find their best-performing clips.