Skip to Content

Search

Threads matching a query, top or latest first.

GET
/v1/threads/search

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

query*string

What to search for.

sort?string

top (the default) or recent.

Value in"top""recent"
maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.threads.search({ query: "coffee", sort: "top" });
Example Response
{  "data": [    {      "id": "4037745892547301312",      "url": "https://www.threads.com/@jamesarmstrong2753/post/DgI9H8Skw_A",      "text": "I have my coffee black with one sugar thankyou beautiful",      "createdAt": "2026-11-24T21:47:20.000Z",      "author": {        "id": "73901034480",        "username": "jamesarmstrong2753",        "displayName": "James Armstrong",        "avatarUrl": "https://scontent-yyz1-1.cdninstagram.com/v/t51.82787-19/829527873_17916648564458481_5333203763895066288_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=109&_nc_map=urlgen_bucketless&ig_cache_key=GEGXcTHxA0DRGKc-ALDevRWRWANKbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=43db74&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xNTAuQzMifQ%3D%3D&_nc_ohc=hkbaPcWd8V4Q7kNvwHUUHxU&_nc_oc=Adr5Azxjtmy7AFPKwdss2FwhWuIb5QhmMGuqu5x8lokUolvN8Qu9N1f4HGrtbnsG2d8&_nc_zt=24&_nc_ht=scontent-yyz1-1.cdninstagram.com&_nc_gid=zFB9D4Dg_hdBYo5R-fmPlQ&_nc_ss=79389&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQQFia1AUgiHfZoMMu85C5Y9u40_1fUvo-MWvN9TFhLQEg&oe=6B0BE416",        "verified": false,        "url": "https://www.threads.com/@jamesarmstrong2753"      },      "stats": {        "views": null,        "likes": 4,        "comments": 0,        "shares": null,        "saves": null,        "engagementRate": null      },      "media": [],      "hashtags": [],      "mentions": [],      "ext": {        "code": "DgI9H8Skw_A",        "kind": "text",        "reposts": 1,        "quotes": 0,        "isReply": true,        "replyTo": {          "id": "4037733930569549316",          "code": "DgI6Z31I8YE",          "username": "workwifemaya",          "text": "coffee run in five. how do you take yours?",          "url": "https://www.threads.com/@workwifemaya/post/DgI6Z31I8YE"        },        "quoted": null,        "link": null,        "topic": null,        "pinned": false,        "continued": false,        "repostedAt": null,        "language": "en",        "paidPartnership": false,        "altText": null      }    },    {      "id": "4037761338593056274",      "url": "https://www.threads.com/@migs.joe/post/DgJAotipRYS",      "text": "Apparently people don't like ICE coffee!!",      "createdAt": "2026-11-24T22:18:02.000Z",      "author": {        "id": "69417262801",        "username": "migs.joe",        "displayName": "Joe Migs",        "avatarUrl": "https://scontent-yyz1-1.cdninstagram.com/v/t51.82787-19/912496160_17957818908318802_2269378701315452396_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=102&_nc_map=urlgen_bucketless&ig_cache_key=GCCWYzZSnPiIisw-AOytvrjnc34fbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=43db74&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy44OTguQzMifQ%3D%3D&_nc_ohc=exMDrfGKo6wQ7kNvwEBKGze&_nc_oc=AdpxsLX-AA6RP7fHGT9FPYor9mpW40Zn3JLslEYXx4m8VnWfRWguw-QtUfbR8oJH7io&_nc_zt=24&_nc_ht=scontent-yyz1-1.cdninstagram.com&_nc_gid=zFB9D4Dg_hdBYo5R-fmPlQ&_nc_ss=79389&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQQf7g4aHStBg8NCa9UU8tOZBVPt2JufZOQb9njDX8ON4w&oe=6B0BDFAC",        "verified": false,        "url": "https://www.threads.com/@migs.joe"      },      "stats": {        "views": null,        "likes": 1,        "comments": 0,        "shares": null,        "saves": null,        "engagementRate": null      },      "media": [],      "hashtags": [],      "mentions": [],      "ext": {        "code": "DgJAotipRYS",        "kind": "text",        "reposts": 0,        "quotes": 0,        "isReply": true,        "replyTo": {          "id": "4037707163694677618",          "code": "DgI0UXPEj5y",          "username": "jonsaysstuff",          "text": "Update on Latin and ICE-owned Tasa Coffee Roasters in Chicago, Illinois: \nIt's PERMANENTLY closed! You guys don't play! \nI'd be on the lookout for it to be reopened under a new name. \nRemember Pierre and Jackie Marquez for what they are - traitors to our brothers and sisters.",          "url": "https://www.threads.com/@jonsaysstuff/post/DgI0UXPEj5y"        },        "quoted": null,        "link": null,        "topic": null,        "pinned": false,        "continued": false,        "repostedAt": null,        "language": "en",        "paidPartnership": false,        "altText": "Hungry So Good GIF by Rice Robot"      }    }  ],  "pagination": {    "nextCursor": null,    "hasMore": false  }}