YepAPI
TikTok API

Video Details

Get full details for a TikTok video including metadata, statistics, and media URLs.

POST/v1/tiktok/video
$0.01/call

Usage

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

Request Body

ParameterTypeRequiredDescriptionDefault
urlstringYesFull TikTok video URL

Response

{
  "ok": true,
  "data": {
    "video_id": "7356291048572839174",
    "description": "Easy 15-minute pasta recipe #cooking #recipes",
    "create_time": 1712345678,
    "author": {
      "unique_id": "chefmaria",
      "nickname": "Chef Maria",
      "avatar": "https://p16-sign.tiktokcdn.com/...",
      "is_verified": true
    },
    "statistics": {
      "play_count": 2450000,
      "digg_count": 185000,
      "comment_count": 3200,
      "share_count": 12500,
      "collect_count": 89000
    },
    "video": {
      "duration": 45,
      "width": 1080,
      "height": 1920,
      "cover": "https://p16-sign.tiktokcdn.com/...",
      "play_addr": "https://v16-webapp.tiktok.com/...",
      "download_addr": "https://v16-webapp.tiktok.com/..."
    },
    "music": {
      "id": "7123456789012345678",
      "title": "original sound",
      "author": "chefmaria",
      "cover": "https://p16-sign.tiktokcdn.com/...",
      "play_url": "https://sf16-ies-music.tiktokcdn.com/..."
    }
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.video_idstringUnique TikTok video identifier
data.descriptionstringVideo caption text
data.create_timenumberUnix timestamp of when the video was posted
data.authorobjectVideo author information
data.author.unique_idstringAuthor's unique handle
data.author.nicknamestringAuthor's display name
data.author.is_verifiedbooleanWhether the author is verified
data.statisticsobjectEngagement metrics
data.statistics.play_countnumberTotal number of plays
data.statistics.digg_countnumberTotal number of likes
data.statistics.comment_countnumberTotal number of comments
data.statistics.share_countnumberTotal number of shares
data.statistics.collect_countnumberTotal number of saves/bookmarks
data.videoobjectVideo media details
data.video.durationnumberVideo duration in seconds
data.video.coverstringCover image URL
data.video.play_addrstringVideo playback URL
data.musicobjectMusic/sound used in the video

On this page