Skip to Content

Search Users

Accounts matching a name, the first 10.

GET
/v1/threads/search/users

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

query*string

A name or username to search for.

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.searchUsers({ query: "coffee" });
Example Response
{  "data": [    {      "id": "70183576958",      "username": "abd_coffeeandlife",      "displayName": "A BEAUTIFUL DAY COMPANY",      "bio": null,      "avatarUrl": "https://scontent-nrt1-2.cdninstagram.com/v/t51.2885-19/464276214_570486432040993_1805345661052971785_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby43MDkuYzIifQ&_nc_ht=scontent-nrt1-2.cdninstagram.com&_nc_cat=101&_nc_oc=Q6cZ2gFgsGQetrnORkrUSXucOi5QjolJ5j8nfHeJzGKpuM0V6JvulcMvdQm8SSc5vYcVFmQ&_nc_ohc=T036o6raNXQQ7kNvwF10NwX&_nc_gid=QycRRqZt17oiL0z6fW58eg&edm=AHhEZX8BAAAA&ccb=7-5&_nc_ct=RQAsPBUCFQIAAAA&oh=00_AQQZPvBaKYIAqKd5ik3q-0v4lmWmHgk9CXp1T68uf6Kzrg&oe=6B0BE593&_nc_sid=e8efdc",      "url": "https://www.threads.com/@abd_coffeeandlife",      "verified": false,      "private": false,      "followers": null,      "following": null,      "likes": null,      "posts": null,      "externalUrl": null,      "createdAt": null,      "ext": {        "bioLinks": [],        "interests": []      }    },    {      "id": "72554974779",      "username": "coffee_nor_beer",      "displayName": "珈琲苦うぃー",      "bio": null,      "avatarUrl": "https://scontent-nrt6-1.cdninstagram.com/v/t51.82787-19/765247621_17916353208422780_2010608728711815419_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby44MDIuYzIifQ&_nc_ht=scontent-nrt6-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gFgsGQetrnORkrUSXucOi5QjolJ5j8nfHeJzGKpuM0V6JvulcMvdQm8SSc5vYcVFmQ&_nc_ohc=fG2_s1C8kBYQ7kNvwHXywIA&_nc_gid=QycRRqZt17oiL0z6fW58eg&edm=AHhEZX8BAAAA&ccb=7-5&_nc_ct=RQAsPBUCFQIAAAA&oh=00_AQQ3VEghSt-UQJ1SGJd-eDI2HYYlN3UHHcwbkrzBTQ8eEw&oe=6B0BE3DE&_nc_sid=e8efdc",      "url": "https://www.threads.com/@coffee_nor_beer",      "verified": false,      "private": false,      "followers": null,      "following": null,      "likes": null,      "posts": null,      "externalUrl": null,      "createdAt": null,      "ext": {        "bioLinks": [],        "interests": []      }    }  ],  "pagination": {    "nextCursor": null,    "hasMore": false  }}