Viral Content API
The Viral Content API allows you to discover and analyze viral TikTok content. Filter by categories, countries, view counts, virality scores, date ranges, and music to find trending content that matches your criteria.Key Features
Category Filtering
Filter viral posts by content categories like comedy, dance, food, and more.
Geographic Targeting
Find viral content from specific countries and regions.
Virality Scoring
Filter by our proprietary virality score to find the most engaging content.
Music Discovery
Search for viral posts using specific trending sounds and music.
Authentication
All requests require an API key passed in thex-ty-api-key header.
Request Parameters
| Parameter | Type | Description |
|---|---|---|
categories | string[] | Filter by content categories. See available categories |
countries | string[] | Filter by countries (full names). See available countries |
viewsMin | integer | Minimum number of views |
viewsMax | integer | Maximum number of views |
viralityScoreMin | float | Minimum virality score (0-1) |
viralityScoreMax | float | Maximum virality score (0-1) |
dateCreatedFrom | string | Posts created on or after this date (YYYY-MM-DD) |
dateCreatedTo | string | Posts created on or before this date (YYYY-MM-DD) |
musicTitle | string | Filter by music/sound title |
page | integer | Page number (default: 1) |
pageSize | integer | Results per page (default: 12, max: 100) |
Pricing
Each request costs 1 credit per returned content. For example, if you requestpageSize: 12 and receive 12 results, that costs 12 credits.
Rate Limits
The Viral Content API is subject to rate limits. If you exceed the limit, you’ll receive a429 response with a retryAfter field indicating how long to wait before retrying.