Skip to Content

Search

Posts matching a query, 30 a page.

GET
/v1/tiktok/search

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

query*string

What to search for.

cursor?string

nextCursor of the previous page.

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.tiktok.search({ query: "nike" });
Example Response
{  "data": [    {      "id": "7619097889943358750",      "url": "https://www.tiktok.com/@kylekruegerr/video/7619097889943358750",      "text": "i just got the world's most futuristic shoe and my feet are so confused 😂 what should i step on next? #tech #gadget #sneakers #nikemind #unboxing",      "createdAt": "2026-03-19T22:31:17.000Z",      "author": {        "id": "1693136",        "username": "kylekruegerr",        "displayName": "Kyle Krueger",        "avatarUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/7310438429072818219~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=940b8bb0&x-expires=1795730400&x-signature=QQusCBNyXyvcp9om9BjBGWg5bY8%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my",        "verified": true,        "url": "https://www.tiktok.com/@kylekruegerr"      },      "stats": {        "views": 956800,        "likes": 70000,        "comments": 475,        "shares": 780,        "saves": 5478,        "engagementRate": 0.0745      },      "media": [        {          "kind": "video",          "url": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/ogzMePQRGR1W44RIAMLAU2GFWFe1mfQgIjANRe/?a=1988&bti=ODszNWYuMDE6&&bt=2131&ft=I~da4ogrD12Nviib3lIxRGk_glBF-UjNSaopiX&mime_type=video_mp4&rc=aDM0ODdpZ2VmNDs2aDhpZEBpMzhmN245cjM6OTMzaTczNEAvMS5eMmIyXzUxMF4yMmM1YSNrM25eMmRrZnJhLS1kMTJzcw%3D%3D&expire=1795731809&l=20261125062227EA51D5AF8CDBD04ED5A1&ply_type=2&policy=2&signature=976d6306a330b4925b6b24b4c72bc705&tk=tt_chain_token&btag=e00090000",          "thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast8-p-0068-tx2/oMm4CLAvfAQgRkVYIDRpmTBceEEVFECGoHLQVo~tplv-tiktokx-origin.image?dr=14575&x-expires=1795730400&x-signature=M%2BntKKNV4hD3A3Gkp83Y1sooqxA%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my",          "width": 720,          "height": 1280,          "durationSeconds": 61        }      ],      "hashtags": [        "tech",        "gadget",        "sneakers"      ],      "mentions": [],      "ext": {        "authorSecUid": "MS4wLjABAAAAgk1KZSB3EIeiyrn91ljrZTpDwmcRD4vyoxCgZrg4kpo",        "sound": {          "id": "7579661510428428289",          "title": "Cycle Syncing Frequency",          "artist": "Still Haven",          "original": false        },        "durationSeconds": 61,        "reposts": null,        "pinned": false,        "ad": false,        "playlistId": null,        "region": null,        "language": "en",        "screenText": [],        "subtitles": [          {            "language": "eng-US",            "format": "webvtt",            "source": "ASR"          }        ]      }    },    {      "id": "7711846763140795678",      "url": "https://www.tiktok.com/@prvt.selection/video/7711846763140795678",      "text": "GTA 6 X TRAVIS SCOTT… THE REAL SHOE OF THE YEAR?! 👀 Gaming and sneaker culture collide with arguably one of the most anticipated Nike collaborations in recent memory. With three different Air Force 1 colorways, which one are you going for? And does this collaboration have the potential to be shoe of the year?",      "createdAt": "2026-11-24T21:04:21.000Z",      "author": {        "id": "6882811036690400261",        "username": "prvt.selection",        "displayName": "Private Selection",        "avatarUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/902c44e093a86e7dbd25c967b7277a64~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=b81fffce&x-expires=1795730400&x-signature=u7t7utjZqVBJshtLf%2BLJ683CJh8%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my",        "verified": false,        "url": "https://www.tiktok.com/@prvt.selection"      },      "stats": {        "views": 345,        "likes": 4,        "comments": 0,        "shares": 0,        "saves": 1,        "engagementRate": 0.0116      },      "media": [        {          "kind": "video",          "url": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/okeKpdHeQXeYLgAwgeFINecGAI7io0BEGVLtRA/?a=1988&bti=ODszNWYuMDE6&&bt=1347&ft=I~da4ogrD12Nviib3lIxRGk_glBF-UjNSaopiX&mime_type=video_mp4&rc=Z2c3Z2VoZzY1NjQ3ZTpkaUBpM3FvcnY5cmp5ZjMzaTczNEBhNi8yNWMvNi8xXzA0XzNjYSMuYjUtMmRzay9hLS1kMTJzcw%3D%3D&expire=1795731907&l=20261125062227EA51D5AF8CDBD04ED5A1&ply_type=2&policy=2&signature=4ef1958b5ea4a3451151bcd3ccca98d5&tk=tt_chain_token&btag=e00090000",          "thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast8-p-0068-tx2/o0EuCDEfjWEFAqI8CKDLuvFfz9xCAA4IDWeSQI~tplv-tiktokx-origin.image?dr=14575&x-expires=1795730400&x-signature=AI25XV4OUmYIuvuRFqHPC9917i0%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my",          "width": 720,          "height": 1280,          "durationSeconds": 159        }      ],      "hashtags": [],      "mentions": [],      "ext": {        "authorSecUid": "MS4wLjABAAAASx-z_tSjxVU98BPvHJGX2DNkrgpCiwUZ5UB82oI_IsvHopoQdMy_tD6BuVd0S8HM",        "sound": {          "id": "7711846812595850015",          "title": "original sound",          "artist": "Private Selection",          "original": true        },        "durationSeconds": 159,        "reposts": null,        "pinned": false,        "ad": false,        "playlistId": null,        "region": null,        "language": "en",        "screenText": [],        "subtitles": []      }    }  ],  "pagination": {    "nextCursor": "30:20261125062227EA51D5AF8CDBD04ED5A1",    "hasMore": true  }}