Skip to Content

Profile Liked

Posts an account liked, when its likes are public.

GET
/v1/tiktok/profile/liked

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

handle?string

The username, with or without @.

secUid?string

TikTok's stable key for the account (a profile's ext.secUid), instead of handle.

url?string

The profile's link, instead of handle.

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.profileLiked({ handle: "tiktok" });
Example Response
{  "data": [],  "pagination": {    "nextCursor": null,    "hasMore": false  }}