TikTok Video Info API: Extract Complete Video Details
Need detailed information about a specific TikTok video? The Video Info API returns comprehensive metadata, engagement metrics, and download URLs from any TikTok video URL.
What Data Can You Extract?
| Field | Description |
|---|---|
| Video ID | Unique identifier |
| Caption | Full description text |
| Hashtags | Array of hashtags used |
| Views | Total view count |
| Likes | Number of likes |
| Comments | Comment count |
| Shares | Share count |
| Downloads | Number of downloads |
| Duration | Video length in seconds |
| Create Time | When video was posted |
| Download URL | Direct video file link |
| Author Info | Creator profile data |
| Music | Audio track details |
Using the Video Info API
const response = await fetch('https://api.sociavault.com/tiktok/video-info', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://www.tiktok.com/@user/video/7234567890123456789'
})
});
const videoInfo = await response.json();
Sample Response
{
"id": "7234567890123456789",
"url": "https://www.tiktok.com/@creator/video/7234567890123456789",
"caption": "This took me 3 hours to film 😅 #fyp #viral",
"hashtags": ["fyp", "viral"],
"stats": {
"views": 15400000,
"likes": 2100000,
"comments": 45000,
"shares": 89000,
"downloads": 12000
},
"duration": 45,
"createTime": "2026-01-08T14:30:00Z",
"downloadUrl": "https://...",
"author": {
"userId": "6987654321",
"username": "creator",
"displayName": "Content Creator",
"followers": 5200000,
"verified": true
},
"music": {
"id": "6987654321098765",
"title": "Trending Sound",
"author": "Artist Name",
"usageCount": 450000
}
}
Use Cases
Video Performance Tracking
Monitor how a video performs over time:
async function trackVideoPerformance(videoUrl) {
const info = await getVideoInfo(videoUrl);
await saveMetrics({
videoId: info.id,
views: info.stats.views,
likes: info.stats.likes,
engagementRate: (info.stats.likes + info.stats.comments) / info.stats.views,
timestamp: new Date()
});
}
// Track every hour
setInterval(() => trackVideoPerformance(videoUrl), 60 * 60 * 1000);
Calculate Engagement Rate
const { views, likes, comments, shares } = videoInfo.stats;
const engagementRate = ((likes + comments + shares) / views) * 100;
console.log(`Engagement rate: ${engagementRate.toFixed(2)}%`);
Compare Multiple Videos
Analyze performance across a creator's content:
const videoUrls = [
'https://www.tiktok.com/@user/video/1...',
'https://www.tiktok.com/@user/video/2...',
'https://www.tiktok.com/@user/video/3...'
];
const videoData = await Promise.all(
videoUrls.map(url => getVideoInfo(url))
);
// Find best performing
const bestVideo = videoData.sort((a, b) =>
b.stats.views - a.stats.views
)[0];
console.log(`Top video: ${bestVideo.id} with ${bestVideo.stats.views.toLocaleString()} views`);
Download Video Content
Use the download URL for content archival:
const { downloadUrl } = videoInfo;
// Download video
const videoResponse = await fetch(downloadUrl);
const videoBuffer = await videoResponse.arrayBuffer();
await fs.writeFile(`video_${videoInfo.id}.mp4`, Buffer.from(videoBuffer));
Related Endpoints
- TikTok Videos Scraper - Get all videos from a profile
- TikTok Comments Scraper - Extract video comments
- TikTok Transcript - Get video speech-to-text
- TikTok Profile Scraper - Creator profile data
Frequently Asked Questions
Can I get info for any TikTok video?
Yes, the API works with any public TikTok video URL. Private videos cannot be accessed.
Do I need the full URL or just the video ID?
You can use either the full URL or just the video ID. The API handles both formats.
How current is the view count data?
Statistics are fetched in real-time, giving you counts that are current within minutes.
Can I download videos without watermark?
The standard download URL includes TikTok's watermark. Contact us for watermark-free download options.
What's the difference between Video Info and Videos Scraper?
Video Info gets details for a single video URL. Videos Scraper retrieves multiple videos from a profile. Use Video Info when you have specific video URLs to analyze.
Get Started
Sign up free and start extracting TikTok video data.
Documentation: /docs/api-reference/tiktok/video-info
Found this helpful?
Share it with others who might benefit
Ready to Try SociaVault?
Start extracting social media data with our powerful API. No credit card required.