How to Scrape Threads Keyword Search Posts
This tutorial shows how to use Threads Keyword Search Posts API to scrape and crawl structured Threads data in real-time.
Search Threads conversations by keyword through our API and extract matching posts, author handles, and engagement data to monitor emerging topics and brand mentions in real time.
Access Threads Data in 3 Steps
Start crawling Threads keyword 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 keyword posts data via our REST API!
| 1 | const root = 'https://ensembledata.com/apis' |
| 2 | const endpoint = '/threads/keyword/search' |
| 3 | const params = { |
| 4 | "name": "ferrari", |
| 5 | "sorting": 0, |
| 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
nodeobject2 fields
threadobject4 fields
thread_itemsarray1 item · schema from #0 1 item
postobject31 fields
userobject11 fields
text_post_app_infoobject21 fields
share_infoobject9 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
Crawl Threads keyword search results at scale and feed them into your content monitoring or trend tracking workflows.
Matching Posts
Get Threads posts matching any keyword or phrase you search.
Author Handles
See which accounts are driving the conversation on a topic.
Engagement Data
Pull like and reply counts for each matching post returned.