Get top performing videos by metrics
Retrieves top performing videos ranked by specified metrics. Supports both lifetime totals (viewCount, likeCount) and period-specific gains (viewCountInPeriod, likeCountInPeriod). Filter by platforms, accounts, projects, and publication date. Set onlyPublished=true to include only videos published within the date range.
Request
- Base URL: https://viral.app/api/v1
- URL: https://viral.app/api/v1/analytics/top-videos
- Auth: API key in header x-api-key
Query parameters
Start date in ISO format (YYYY-MM-DD)
End date in ISO format (YYYY-MM-DD)
Social media platforms (facebook, instagram, tiktok, youtube, snapchat)
[ "facebook", "instagram" ]
Organization account IDs
[ "orgacc_1A2B3C4D5E6F" ]
Content types (video, slideshow)
[ "video" ]
Organization project IDs
Deprecated. Use tag filters (tags / tagGroups) instead — a project's virtual project tag id (orgproj_…) works as a tag id. See the migration guide.
[ "orgproj_1A2B3C4D5E6F" ]
Tag IDs. Custom and project tags must all match (intersection); country tags and continent:<CODE> values combine into one geographic group satisfied by any of them. none:<category> values (custom/project/country/continent) match entities WITHOUT any tag of the category. Ignored when tagGroups is provided.
[ "orgtag_1A2B3C4D5E6F" ]
[
{
"mode": "all",
"ids": [
"orgtag_1A2B3C4D5E6F"
]
},
{
"mode": "any",
"ids": [
"systag_1A2B3C4D5E6F",
"continent:EU"
]
}
]Maximum number of results to return (1-100)
Whether to only include content published within the date range
Metric to sort videos by. Supports both lifetime totals and period-specific gains
Response
OK
Example response
[
{
"id": "orgvid_91rBGUI9L6Db",
"platformVideoId": "76891234567890012345678",
"platform": "tiktok",
"accountUsername": "influencer_account",
"platformAccountId": "tiktok_user_123456",
"accountDisplayName": "Influencer Account",
"accountProfilePictureUrl": "https://example.com/profile.jpg",
"caption": "Amazing content that went viral! #trending #viral",
"hashtags": [
"trending",
"viral",
"content"
],
"contentType": "video",
"videoIndex": 1,
"thumbnailUrl": "https://example.com/thumbnail.jpg",
"musicId": "music_123",
"musicTitle": "Trending Song",
"musicArtist": "Popular Artist",
"musicAlbum": "Latest Album",
"musicPlayUrl": "https://example.com/music.mp3",
"musicCoverUrl": "https://example.com/music-cover.jpg",
"isOriginalMusic": 0,
"durationSeconds": 30,
"viewCount": 1250000,
"likeCount": 89500,
"commentCount": 2340,
"shareCount": 1890,
"bookmarkCount": 4567,
"engagementRate": 0.0789,
"viralityFactor": 2.34,
"publishedDate": "2025-12-15",
"publishedAt": "2025-12-15T10:30:00Z",
"loadAt": "2025-12-20T08:00:00Z",
"orgAccountId": "orgacc_W97M6KLWV4Yq",
"tracking_status": 1,
"viewCountInPeriod": 850000,
"likeCountInPeriod": 60000,
"commentCountInPeriod": 1500,
"shareCountInPeriod": 1200,
"bookmarkCountInPeriod": 3000,
"engagementRateInPeriod": 0.0762
}
]Changes
No recorded changes to this operation across all 1 revision of this API.