How to Scrape Threads User Posts
This tutorial shows how to use Threads User Posts API to scrape and crawl structured Threads data in real-time.
Collect complete post histories from any Threads account through our API and extract post text, like counts, reply totals, and timestamps for content benchmarking and trend research.
Access Threads Data in 3 Steps
Start crawling Threads user posts 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 user posts data via our REST API!
| 1 | const root = 'https://ensembledata.com/apis' |
| 2 | const endpoint = '/threads/user/posts' |
| 3 | const params = { |
| 4 | "id": 195178788, |
| 5 | "chunk_size": 10, |
| 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
nodeobject5 fields
thread_itemsarray1 item · schema from #0 1 item
postobject31 fields
userobject11 fields
text_post_app_infoobject21 fields
pinned_post_infoobject2 fields
share_infoobject9 fields
quoted_postobject29 fields
carousel_mediaarray2 items · schema from #0 2 items
image_versions2object1 field
candidatesarray12 items · schema from #0 12 items
image_versions2object1 field
candidatesarray10 items · schema from #0 10 items
captionobject3 fields
userobject8 fields
sharing_friction_infoobject2 fields
text_post_app_infoobject14 fields
share_infoobject8 fields
text_fragmentsobject1 field
fragmentsarray1 item · schema from #0 1 item
text_fragmentsobject1 field
fragmentsarray1 item · schema from #0 1 item
image_versions2object1 field
candidatesarray10 items · schema from #0 10 items
video_versionsarray3 items · schema from #0 3 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
Retrieve complete Threads post feeds for research, competitive analysis, or feeding your content intelligence and social media tools.
Full Post History
Paginate through a user's entire public Threads post history.
Text & Timestamps
Get post text and publish timestamps for every post returned.
Engagement Stats
Pull like and reply counts for each post automatically.