How to Scrape Threads Post Replies
This tutorial shows how to use Threads Post Replies API to scrape and crawl structured Threads data in real-time.
Dig into Threads conversation threads with our replies API and extract post details alongside nested replies, reply authors, and engagement counts for community and sentiment analysis.
Access Threads Data in 3 Steps
Start crawling Threads post replies 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 Threads 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 post replies data via our REST API!
| 1 | const root = 'https://ensembledata.com/apis' |
| 2 | const endpoint = '/threads/post/replies' |
| 3 | const params = { |
| 4 | "id": 3742087106786012244, |
| 5 | "shortcode": "DPukGWujKxU", |
| 6 | "token": "YOUR-TOKEN-HERE" |
| 7 | } |
| 8 | |
| 9 | const queryString = new URLSearchParams(params).toString(); |
| 10 | const url = `${root}${endpoint}?${queryString}`; |
| 11 | |
| 12 | await fetch(url) |
| 13 | .then(response => response.json()) |
| 14 | .then(data => console.log(data)) |
| 15 | .catch(error => console.error(error)); |
| 16 |
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.
dataarray1 item · schema from #0 1 item
nodeobject6 fields
thread_itemsarray3 items · schema from #0 3 items
postobject33 fields
userobject12 fields
text_post_app_infoobject22 fields
pinned_post_infoobject2 fields
share_infoobject9 fields
reply_to_authorobject2 fields
text_fragmentsobject1 field
fragmentsarray1 item · schema from #0 1 item
image_versions2object1 field
candidatesarray0 items
captionobject3 fields
sharing_friction_infoobject2 fields
Response Codes
Status codes this endpoint can return, so you can handle errors before they surprise you in production.
API Pricing
Fetch Threads Data at Scale
Extract Threads post and reply data in bulk for sentiment analysis, community engagement research, or tracking how discussions unfold over time.
Nested Replies
Get full nested reply threads for any public Threads post.
Reply Authors
See which accounts are replying and driving the conversation.
Sentiment Ready
Feed clean reply text straight into sentiment analysis tools.