Search Users
Accounts matching a query.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
query*stringWhat to search for.
cursor?stringnextCursor of the previous page.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.tiktok.searchUsers({ query: "nike" });Example Response
{ "data": [ { "id": "208464585232822272", "username": "nike", "displayName": "Nike", "bio": "Just Do It.", "avatarUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/e0b0ac7b6ad6447a8e923fd1eb162f2c~tplv-tiktokx-cropcenter:100:100.webp?biz_tag=tiktok_user.user_cover&dr=14579&idc=my&ps=13740610&refresh_token=1c9c423e&shcp=c1333099&shp=30310797&t=4d5b0474&x-expires=1795644000&x-signature=GDOAKVksH9yIGSSxLOPyuZReusg%3D", "url": "https://www.tiktok.com/@nike", "verified": true, "private": false, "followers": 9400000, "following": null, "likes": 51312863, "posts": null, "externalUrl": null, "createdAt": null, "ext": { "secUid": "MS4wLjABAAAA_3ndMt8d_tECTdpKgCxcx238tOnQZX-20wqN01aMui5zQ7hsqSdff-jC5qYC-Cl_", "friends": null, "liked": null, "category": null, "seller": false, "likesPublic": false, "roomId": null } }, { "id": "7481436802697839659", "username": "nikefootball", "displayName": "Nike Football", "bio": null, "avatarUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/91b628158cd4dd88147039197d1842b5~tplv-tiktokx-cropcenter:100:100.webp?biz_tag=tiktok_user.user_cover&dr=14579&idc=my&ps=13740610&refresh_token=2151fe4f&shcp=c1333099&shp=30310797&t=4d5b0474&x-expires=1795644000&x-signature=ZC%2FbrXSuga4hgIfG6NMZSYJrjCo%3D", "url": "https://www.tiktok.com/@nikefootball", "verified": true, "private": false, "followers": 714200, "following": null, "likes": 5983320, "posts": null, "externalUrl": null, "createdAt": null, "ext": { "secUid": "MS4wLjABAAAASaJUsOF0LAshl5VRYETtJiROSRolZzdAtYOxG1ldR40x8Qk9pY9zvd3jzQI67kWY", "friends": null, "liked": null, "category": null, "seller": false, "likesPublic": false, "roomId": null } } ], "pagination": { "nextCursor": "10", "hasMore": true }}