YepAPI
TikTok API

User Favorites

Get a list of videos that a TikTok user has favorited (bookmarked).

POST/v1/tiktok/user-favorites
$0.01/call

Usage

const res = await fetch('https://api.yepapi.com/v1/tiktok/user-favorites', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ user_id: '6842123456789012345' }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/tiktok/user-favorites \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id": "6842123456789012345"}'

Request Body

ParameterTypeRequiredDescriptionDefault
user_idstringYesTikTok user ID (numeric)
cursorstringNoPagination cursor from previous response
countnumberNoNumber of results to return20

Response

{
  "ok": true,
  "data": {
    "has_more": true,
    "cursor": "1712345678",
    "videos": [
      {
        "video_id": "7389012345678901234",
        "description": "The best chocolate cake recipe ever! #baking",
        "create_time": 1712456789,
        "author": {
          "unique_id": "bakingqueen",
          "nickname": "Baking Queen",
          "avatar": "https://p16-sign.tiktokcdn.com/..."
        },
        "statistics": {
          "play_count": 5600000,
          "digg_count": 420000,
          "comment_count": 8900
        },
        "video": {
          "duration": 60,
          "cover": "https://p16-sign.tiktokcdn.com/..."
        }
      }
    ]
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.has_morebooleanWhether more results are available
data.cursorstringCursor for fetching the next page
data.videosobject[]Array of favorited video objects
data.videos[].video_idstringUnique TikTok video identifier
data.videos[].descriptionstringVideo caption text
data.videos[].create_timenumberUnix timestamp of when the video was posted
data.videos[].authorobjectVideo author information
data.videos[].statisticsobjectEngagement metrics (plays, likes, comments)
data.videos[].videoobjectVideo media details (duration, cover image)

Use the cursor value from the response to paginate through results. Note that favorites are only accessible if the user's favorites are set to public.

On this page