Get Video
Fetches one video with its current counts.
| Platform | platformVideoId | Notes |
|---|---|---|
| TikTok | numeric video id | |
| the shortcode in the Reel's URL | Reels only; a photo post or carousel is refused | |
| YouTube | the 11-character video id | built for Shorts |
| numeric reel or video id | the share count is rounded above 999 | |
| Snapchat | the Spotlight snap id | likes are Spotlight boosts |
Examples:
- GET /live/tiktok/videos/7123456789012345678
- GET /live/instagram/videos/Dd6pJEpAkQ5
- GET /live/youtube/videos/dQw4w9WgXcQ
Fields a platform does not publish are null. region is a hint: TikTok uses it as the country the lookup is made from, the other platforms ignore it.
Optional live endpoint. You do not need this endpoint for normal API integrations; prefer tracked accounts, tracked videos, analytics, projects, and Creator Hub endpoints when working with viral.app data.
⚠️ Consumes extra credits: 3 credits per request. Additional charges may apply.
Headers:
- X-Viral-Credits-Consumed
- X-Viral-Credits-Meter
- X-Viral-Credits-Benefited-Remaining
- X-Viral-Credits-Can-Purchase-Extra
- Retry-After (on 429 responses)
A page past the only one of a one-page lookup costs nothing: it carries X-Viral-Credits-Consumed: 0 and X-Viral-Credits-Meter, without the two balance headers.
Request
- Base URL: https://viral.app/api/v1
- URL: https://viral.app/api/v1/live/{platform}/videos/{platformVideoId}
- Auth: API key in header x-api-key
Path parameters
Social media platform (facebook, instagram, tiktok, youtube, snapchat)
Native platform video id found in the URL of the video
Query parameters
Region code (2-letter ISO country code)
Response
OK
Example response
{
"platform": "facebook",
"platform_video_id": "7123456789012345678",
"platform_account_id": "7123456789012345678",
"account_profile_picture_url": "https://www.myproject.com",
"region": "US",
"hashtags": [
"brand"
],
"thumbnail_url": "https://www.myproject.com",
"download_url": "https://www.myproject.com",
"music_play_url": "https://www.myproject.com",
"image_urls": [
"https://www.myproject.com"
],
"music_cover_url": "https://www.myproject.com"
}Changes
No recorded changes to this operation across all 1 revision of this API.