Threads API
10 endpoints for profiles, threads and search.
Every Threads endpoint, by group. Each is a GET under /v1/threads.
Quick Reference
| Property | Value |
|---|---|
| Base path | /v1/threads |
| Endpoints | 10 |
| Credits | 1 a call |
| Guide | Threads |
Accounts
GETProfile
/v1/threads/profileA profile with its follower count.1 creditGETProfile Media/v1/threads/profile/mediaAn account's threads with photos or videos, 25 a page.1 creditGETProfile Posts/v1/threads/profile/postsAn account's threads, newest first, 25 a page.1 creditGETProfile Replies/v1/threads/profile/repliesAn account's replies to other threads, 25 a page.1 creditGETProfile Reposts/v1/threads/profile/repostsOther people's threads an account reposted.1 creditPosts
GETPost
/v1/threads/postOne thread with its counts, media and links.1 creditGETPost Comments/v1/threads/post/commentsA thread's replies, top or latest first.1 creditDiscovery
GETSearch
/v1/threads/searchThreads matching a query, top or latest first.1 creditGETSearch Users/v1/threads/search/usersAccounts matching a name, the first 10.1 creditGETTrending/v1/threads/trendingThe feed Threads gives a visitor now.1 creditExample Request
Every Threads endpoint is called this way: its path, and what to read as query parameters.
import { SocialAPI } from "@socialapihq/sdk";
const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });
const { data } = await client.threads.profile({ handle: "zuck" });{
"data": {
"id": "63055343223",
"username": "zuck",
"displayName": "Mark Zuckerberg",
"bio": "Mostly superintelligence and MMA takes",
"avatarUrl": "https://scontent-nrt6-1.cdninstagram.com/v/t51.82787-19/825322135_17989325280103224_1252773933700107438_n.jpg?stp=dst-jpg_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-nrt6-1.cdninstagram.com&_nc_cat=100&_nc_oc=Q6cZ2gEbJAaY4VAfsA-SdUiOuyyefB_PaDbIjArtHdBA5E9_oz8s23mkKO8K36do2sY94fk&_nc_ohc=TcNBs21yW1gQ7kNvwHHOsMz&_nc_gid=3utomVOdhJVr5GxFQLdxgQ&edm=AAZTMJEBAAAA&ccb=7-5&_nc_ct=RQAsPBUCFQIAAAA&oh=00_AQQ7XHzV0_X-JdqIiVqvgiHTaON1Otu3q1X6WoaBBg9WbA&oe=6B0BE5EB&_nc_sid=49cb7f",
"url": "https://www.threads.com/@zuck",
"verified": true,
"private": false,
"followers": 5783862,
"following": null,
"likes": null,
"posts": null,
"externalUrl": null,
"createdAt": null,
"ext": {
"bioLinks": [],
"interests": [
"AI Threads",
"UFC Threads",
"AI"
]
}
}
}Errors
A call that fails costs nothing. See Errors for every code.