Post
A post, with its replies, its author's follow-up posts in the thread, and the posts Threads shows with it.
GET/v1/threads/posts1 creditHeaders
Get your API keyx-api-key*stringrequiredheaderYour API key, made in the dashboard.
Parameters
2codestringoptionalqueryA post's code: the part after /post/ in its link. Give code or url.
example: DeZtp-TkQHh
urlstringoptionalqueryA post's link: threads.com/@<handle>/post/<code>. Give code or url.
max 300 chars
Response fields
112dataobjectThe result: one object, or a list for the endpoints that return several.
data.idstringThreads' id for the post.
data.urlstringThe post's link.
data.codestringThe post's code: the part after /post/ in its link.
data.textstringnullableWhat it says.
data.authorstringnullableIts author's username.
data.author_idstringnullableIts author's id.
data.author_namestringnullableIts author's display name.
data.author_picturestringnullableIts author's profile picture. The link is signed, and expires after a while.
data.author_verifiedbooleannullableWhether its author is verified.
data.is_replybooleannullableWhether it replies to another post.
data.reply_tostringnullableThe username of the post's author it replies to.
data.pinnedbooleannullableWhether it is pinned to its author's profile.
data.scoreintegernullableLikes.
data.comment_countintegernullableDirect replies.
data.repost_countintegernullableReposts.
data.quote_countintegernullableQuotes.
data.reshare_countintegernullableShares.
data.media_typestringnullableWhat it holds: text, image, video, carousel (several images or videos) or other.
data.mediaarraynullableIts images and videos, in order.
data.media[].typestringnullableimage or video; other for a kind Threads adds later.
data.media[].urlstringThe file's link. It is signed, and expires after a while.
data.media[].widthintegernullableIts width, in pixels.
data.media[].heightintegernullableIts height, in pixels.
data.created_atstringnullableWhen it was posted.
format: date-time
data.viewsintegernullableViews, where Threads shows them.
data.repliesarrayThe direct replies its page shows.
data.replies[].idstringThreads' id for the post.
data.replies[].urlstringThe post's link.
data.replies[].codestringThe post's code: the part after /post/ in its link.
data.replies[].textstringnullableWhat it says.
data.replies[].authorstringnullableIts author's username.
data.replies[].author_idstringnullableIts author's id.
data.replies[].author_namestringnullableIts author's display name.
data.replies[].author_picturestringnullableIts author's profile picture. The link is signed, and expires after a while.
data.replies[].author_verifiedbooleannullableWhether its author is verified.
data.replies[].is_replybooleannullableWhether it replies to another post.
data.replies[].reply_tostringnullableThe username of the post's author it replies to.
data.replies[].pinnedbooleannullableWhether it is pinned to its author's profile.
data.replies[].scoreintegernullableLikes.
data.replies[].comment_countintegernullableDirect replies.
data.replies[].repost_countintegernullableReposts.
data.replies[].quote_countintegernullableQuotes.
data.replies[].reshare_countintegernullableShares.
data.replies[].media_typestringnullableWhat it holds: text, image, video, carousel (several images or videos) or other.
data.replies[].mediaarraynullableIts images and videos, in order.
data.replies[].media[].typestringnullableimage or video; other for a kind Threads adds later.
data.replies[].media[].urlstringThe file's link. It is signed, and expires after a while.
data.replies[].media[].widthintegernullableIts width, in pixels.
data.replies[].media[].heightintegernullableIts height, in pixels.
data.replies[].created_atstringnullableWhen it was posted.
format: date-time
data.threadarrayIts author's own follow-up posts in the thread.
data.thread[].idstringThreads' id for the post.
data.thread[].urlstringThe post's link.
data.thread[].codestringThe post's code: the part after /post/ in its link.
data.thread[].textstringnullableWhat it says.
data.thread[].authorstringnullableIts author's username.
data.thread[].author_idstringnullableIts author's id.
data.thread[].author_namestringnullableIts author's display name.
data.thread[].author_picturestringnullableIts author's profile picture. The link is signed, and expires after a while.
data.thread[].author_verifiedbooleannullableWhether its author is verified.
data.thread[].is_replybooleannullableWhether it replies to another post.
data.thread[].reply_tostringnullableThe username of the post's author it replies to.
data.thread[].pinnedbooleannullableWhether it is pinned to its author's profile.
data.thread[].scoreintegernullableLikes.
data.thread[].comment_countintegernullableDirect replies.
data.thread[].repost_countintegernullableReposts.
data.thread[].quote_countintegernullableQuotes.
data.thread[].reshare_countintegernullableShares.
data.thread[].media_typestringnullableWhat it holds: text, image, video, carousel (several images or videos) or other.
data.thread[].mediaarraynullableIts images and videos, in order.
data.thread[].media[].typestringnullableimage or video; other for a kind Threads adds later.
data.thread[].media[].urlstringThe file's link. It is signed, and expires after a while.
data.thread[].media[].widthintegernullableIts width, in pixels.
data.thread[].media[].heightintegernullableIts height, in pixels.
data.thread[].created_atstringnullableWhen it was posted.
format: date-time
data.relatedarrayOther posts Threads shows with it.
data.related[].idstringThreads' id for the post.
data.related[].urlstringThe post's link.
data.related[].codestringThe post's code: the part after /post/ in its link.
data.related[].textstringnullableWhat it says.
data.related[].authorstringnullableIts author's username.
data.related[].author_idstringnullableIts author's id.
data.related[].author_namestringnullableIts author's display name.
data.related[].author_picturestringnullableIts author's profile picture. The link is signed, and expires after a while.
data.related[].author_verifiedbooleannullableWhether its author is verified.
data.related[].is_replybooleannullableWhether it replies to another post.
data.related[].reply_tostringnullableThe username of the post's author it replies to.
data.related[].pinnedbooleannullableWhether it is pinned to its author's profile.
data.related[].scoreintegernullableLikes.
data.related[].comment_countintegernullableDirect replies.
data.related[].repost_countintegernullableReposts.
data.related[].quote_countintegernullableQuotes.
data.related[].reshare_countintegernullableShares.
data.related[].media_typestringnullableWhat it holds: text, image, video, carousel (several images or videos) or other.
data.related[].mediaarraynullableIts images and videos, in order.
data.related[].media[].typestringnullableimage or video; other for a kind Threads adds later.
data.related[].media[].urlstringThe file's link. It is signed, and expires after a while.
data.related[].media[].widthintegernullableIts width, in pixels.
data.related[].media[].heightintegernullableIts height, in pixels.
data.related[].created_atstringnullableWhen it was posted.
format: date-time
pageobjectnullablePaging, for the endpoints that page; null for the others.
page.next_cursorstringnullableSend it as the cursor parameter, with the same other parameters, for the next page. Null on the last page.
page.has_morebooleanoptionalWhether another page follows.
default: false
metaobjectAbout this call.
meta.platformstringThe platform: reddit, threads, tiktok or youtube.
meta.endpointstringThe endpoint's name, such as channel_videos.
meta.paramsobjectThe call's parameters, defaults included. Parameters without a value, and the cursor, are left out.
meta.request_idstringThis call's id. Quote it when you report a problem.
meta.api_versionstringThe API version that answered.
meta.fetched_atstringWhen the data was fetched from the platform (UTC).
format: date-time
meta.cachedbooleanoptionalWhether it came from our cache; fetched_at says how old it is.
default: false
Code example
curl -X GET 'https://api.socialparse.dev/v1/threads/posts?code=DeZtp-TkQHh' \ -H 'x-api-key: YOUR_API_KEY'Responses
Successful Response
{ "data": { "id": "string", "url": "string", "code": "string", "text": "string", "author": "string", "author_id": "string", "author_name": "string", "author_picture": "string", "author_verified": true, "is_reply": true, "reply_to": "string", "pinned": true, "score": 0, "comment_count": 0, "repost_count": 0, "quote_count": 0, "reshare_count": 0, "media_type": "string", "media": [ { "type": "string", "url": "string", "width": 0, "height": 0 } ], "created_at": "2019-08-24T14:15:22Z", "views": 0, "replies": [ { "id": "string", "url": "string", "code": "string", "text": "string", "author": "string", "author_id": "string", "author_name": "string", "author_picture": "string", "author_verified": true, "is_reply": true, "reply_to": "string", "pinned": true, "score": 0, "comment_count": 0, "repost_count": 0, "quote_count": 0, "reshare_count": 0, "media_type": "string", "media": [ { "type": "string", "url": "string", "width": 0, "height": 0 } ], "created_at": "2019-08-24T14:15:22Z" } ], "thread": [ { "id": "string", "url": "string", "code": "string", "text": "string", "author": "string", "author_id": "string", "author_name": "string", "author_picture": "string", "author_verified": true, "is_reply": true, "reply_to": "string", "pinned": true, "score": 0, "comment_count": 0, "repost_count": 0, "quote_count": 0, "reshare_count": 0, "media_type": "string", "media": [ { "type": "string", "url": "string", "width": 0, "height": 0 } ], "created_at": "2019-08-24T14:15:22Z" } ], "related": [ { "id": "string", "url": "string", "code": "string", "text": "string", "author": "string", "author_id": "string", "author_name": "string", "author_picture": "string", "author_verified": true, "is_reply": true, "reply_to": "string", "pinned": true, "score": 0, "comment_count": 0, "repost_count": 0, "quote_count": 0, "reshare_count": 0, "media_type": "string", "media": [ { "type": "string", "url": "string", "width": 0, "height": 0 } ], "created_at": "2019-08-24T14:15:22Z" } ] }, "page": { "next_cursor": "string", "has_more": false }, "meta": { "platform": "string", "endpoint": "string", "params": { "property1": "string", "property2": "string" }, "request_id": "string", "api_version": "string", "fetched_at": "2019-08-24T14:15:22Z", "cached": false }}