Get top performing accounts by metrics
Retrieves top performing accounts ranked by specified metrics. Includes lifetime totals (viewCount, engagementRate) and period-specific gains (viewCountInPeriod, videoCountInPeriod). Returns account analytics including follower counts, posting frequency, and performance averages. Filter by platforms, accounts, projects, and content types.
Request
- Base URL: https://viral.app/api/v1
- URL: https://viral.app/api/v1/analytics/top-accounts
- 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 accounts by. Supports both lifetime totals and period-specific gains
Response
OK
Example response
[
{
"id": "orgacc_W97M6KLWV4Yq",
"platform": "tiktok",
"username": "viral_creator",
"loadAt": "2025-12-20T08:00:00Z",
"followerCount": 2500000,
"followingCount": 150,
"profilePictureUrl": "https://example.com/profile.jpg",
"displayName": "Viral Creator",
"countryCode": "US",
"viewCount": 45000000,
"likeCount": 3200000,
"commentCount": 180000,
"shareCount": 95000,
"bookmarkCount": 250000,
"videoCount": 120,
"averageViewsPerVideo": 375000,
"engagementRate": 0.0811,
"viralityRate": 0.25,
"latestVideoPublishedAt": "2025-12-18T15:30:00Z",
"daysSinceLastPost": 2,
"user": {
"id": "track_91rBGUI9L6Db",
"platform": "tiktok",
"username": "viral_creator",
"maxVideos": 100,
"userId": "user_PxyfnFj5JUx5",
"orgId": "org_GbuDqv3RjdSW",
"createdAt": "2025-01-15T10:00:00.000Z",
"updatedAt": "2025-12-20T08:00:00.000Z"
},
"viewCountInPeriod": 12500000,
"likeCountInPeriod": 890000,
"commentCountInPeriod": 48000,
"shareCountInPeriod": 25000,
"bookmarkCountInPeriod": 67000,
"videoCountInPeriod": 15,
"averageViewsPerVideoInPeriod": 833333,
"engagementRateInPeriod": 0.0824
}
]Changes
No recorded changes to this operation across all 1 revision of this API.