Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Virlo Public Topic Trends API
description: 'Short-form social intelligence across TikTok, YouTube Shorts, Instagram Reels and Meta ads: Content Research Agents, Topic Trends (`/v1/topic-trends`: what people are talking about, by region, each topic with a category), Content Trends (`/v1/content-trends`: video formats creators are copying), hashtags, sounds, hooks, creator lookups and tracking. Send your API key as `Authorization: Bearer virlo_tkn_...`. Guides and pricing: https://dev.virlo.ai/docs'
version: 1.0.0
contact: {}
servers:
- url: https://api.virlo.ai
description: Production
tags:
- name: Topic Trends
description: 'Topic Trends: what people are talking about right now, by region (shows, celebrities, memes, sports, local events, news), each topic with a category you can filter on. Daily ranked lists with momentum and example videos. For video formats creators are copying, see Content Trends (`/v1/content-trends`). (v1)'
paths:
/v1/topic-trends/regions:
get:
description: 'Topic Trends are what people are talking about right now, by region: shows, celebrities, memes, sports moments, local events and news, read from curator accounts in each region. Each topic has a `category`. For video formats creators are copying, use Content Trends (`/v1/content-trends`). Returns the regions you can pass as `region`. ''global'' is the worldwide feed (the default); country regions (today ''us'', ''ca'', ''br'', ''gb'', ''fr'', ''au'' and ''sg'') are read from that country''s own accounts and videos in its own languages, with topic names in English. More regions will be added over time. Free.'
operationId: V1TopicTrendsController_regions
parameters: []
responses:
'200':
description: Regions
content:
application/json:
schema:
$ref: '#/components/schemas/V1TrendRegionsResponseDto'
'401':
description: Missing or invalid API key (`missing_api_key` / `invalid_api_key`)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded (`rate_limit_exceeded`); see the Retry-After header
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
security:
- api-key: []
summary: List Topic Trends regions
tags:
- Topic Trends
/v1/topic-trends/today:
get:
description: 'Topic Trends are what people are talking about right now, by region: shows, celebrities, memes, sports moments, local events and news, read from curator accounts in each region. Each topic has a `category`. For video formats creators are copying, use Content Trends (`/v1/content-trends`). Returns today''s topics for one region (default global), in ranking order. "Today" is the current date in the region''s own timezone; early in the local morning, recent topics from the day before keep the list full. Filter with `category` or `exclude_category` (for example `exclude_category=politics,news` for pop culture without politics).'
operationId: V1TopicTrendsController_today
parameters:
- name: region
required: false
in: query
description: 'Trend region to query. Defaults to ''global'' — the worldwide feed, which preserves the historical behavior of this endpoint. Supported today: ''global'', ''us'', ''ca'', ''br'', ''gb'', ''fr'', ''au'', ''sg''; more regions will be added over time — see GET /v1/topic-trends/regions for the current list. Unknown codes return a 400 listing the available regions.'
schema:
default: global
example: global
type: string
- name: top_exemplars
required: false
in: query
description: Top N example videos to include per trend ranking (checked against the topic, one per creator, most-viewed first). Use 0 to omit exemplars entirely.
schema:
minimum: 0
maximum: 20
default: 5
example: 5
type: number
- name: category
required: false
in: query
description: 'Only topics in these categories (comma-separated, or the parameter repeated). Categories: `entertainment` (TV, film, streaming, music, celebrities, reality shows, creators and influencers); `memes` (internet jokes, memes, viral moments, challenges, funny clips, internet culture); `sports` (games, matches, athletes, teams, sports results and moments); `fashion_beauty` (fashion, runway, style, beauty, makeup, skincare); `gaming_tech` (video games, apps, gadgets, AI, tech launches); `lifestyle` (food, drink, travel, places, local events and festivals, home, wellbeing); `politics` (elections, governments, politicians, parties, policy, protests about policy); `news` (crime, courts and trials, accidents, disasters, business and the economy, world events). Topics not categorised yet are left out whenever a category filter is set.'
schema:
example: entertainment,memes
type: string
- name: exclude_category
required: false
in: query
description: Leave out topics in these categories (comma-separated, or the parameter repeated). Same values as `category`. `exclude_category=politics,news` keeps entertainment, memes, sports, fashion, gaming and lifestyle topics.
schema:
example: politics,news
type: string
- name: limit
required: false
in: query
description: Maximum number of topics to return, in ranking order. Values above 100 are read as 100. Defaults to all of today's topics.
schema:
minimum: 1
maximum: 100
example: 20
type: number
responses:
'200':
description: Today's topics
content:
application/json:
schema:
$ref: '#/components/schemas/V1TopicTrendsResponseDto'
'400':
description: Unknown region or category value
'401':
description: Missing or invalid API key (`missing_api_key` / `invalid_api_key`)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded (`rate_limit_exceeded`); see the Retry-After header
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
security:
- api-key: []
summary: Get today's Topic Trends
tags:
- Topic Trends
/v1/topic-trends/emerging:
get:
description: 'Topic Trends are what people are talking about right now, by region: shows, celebrities, memes, sports moments, local events and news, read from curator accounts in each region. Each topic has a `category`. For video formats creators are copying, use Content Trends (`/v1/content-trends`). Returns today''s topics that are `new` or `rising`, ranked by live momentum (refreshed about every 2 hours). Takes the same category filters.'
operationId: V1TopicTrendsController_emerging
parameters:
- name: region
required: false
in: query
description: 'Trend region to query. Defaults to ''global'' — the worldwide feed. Composable with the emerging signal, e.g. region=gb answers "what''s emerging in the UK right now". Supported today: ''global'', ''us'', ''ca'', ''br'', ''gb'', ''fr'', ''au'', ''sg''; see GET /v1/topic-trends/regions for the current list. Unknown codes return a 400 listing the available regions.'
schema:
default: global
example: gb
type: string
- name: limit
required: false
in: query
description: Maximum number of emerging trends to return, ranked by momentum heat.
schema:
minimum: 1
maximum: 50
default: 20
example: 20
type: number
- name: top_exemplars
required: false
in: query
description: Top N example videos to include per emerging trend (checked against the topic, one per creator, most-viewed first). Use 0 to omit exemplars entirely.
schema:
minimum: 0
maximum: 20
default: 5
example: 5
type: number
- name: category
required: false
in: query
description: 'Only topics in these categories (comma-separated, or the parameter repeated). Categories: `entertainment` (TV, film, streaming, music, celebrities, reality shows, creators and influencers); `memes` (internet jokes, memes, viral moments, challenges, funny clips, internet culture); `sports` (games, matches, athletes, teams, sports results and moments); `fashion_beauty` (fashion, runway, style, beauty, makeup, skincare); `gaming_tech` (video games, apps, gadgets, AI, tech launches); `lifestyle` (food, drink, travel, places, local events and festivals, home, wellbeing); `politics` (elections, governments, politicians, parties, policy, protests about policy); `news` (crime, courts and trials, accidents, disasters, business and the economy, world events). Topics not categorised yet are left out whenever a category filter is set.'
schema:
example: entertainment,memes
type: string
- name: exclude_category
required: false
in: query
description: Leave out topics in these categories (comma-separated, or the parameter repeated). Same values as `category`. `exclude_category=politics,news` keeps entertainment, memes, sports, fashion, gaming and lifestyle topics.
schema:
example: politics,news
type: string
responses:
'200':
description: Emerging topics
content:
application/json:
schema:
$ref: '#/components/schemas/V1EmergingTopicsResponseDto'
'400':
description: Unknown region or category value
'401':
description: Missing or invalid API key (`missing_api_key` / `invalid_api_key`)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded (`rate_limit_exceeded`); see the Retry-After header
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
security:
- api-key: []
summary: Get emerging Topic Trends
tags:
- Topic Trends
/v1/topic-trends:
get:
description: 'Topic Trends are what people are talking about right now, by region: shows, celebrities, memes, sports moments, local events and news, read from curator accounts in each region. Each topic has a `category`. For video formats creators are copying, use Content Trends (`/v1/content-trends`). Returns topic groups (one per region and day) within a date range, newest first. Defaults to the last 24 hours and the global region. `limit` caps the number of topics returned in total, across all groups. Takes the same category filters.'
operationId: V1TopicTrendsController_range
parameters:
- name: region
required: false
in: query
description: 'Trend region to query. Defaults to ''global'' — the worldwide feed, which preserves the historical behavior of this endpoint. Supported today: ''global'', ''us'', ''ca'', ''br'', ''gb'', ''fr'', ''au'', ''sg''; more regions will be added over time — see GET /v1/topic-trends/regions for the current list. Unknown codes return a 400 listing the available regions.'
schema:
default: global
example: global
type: string
- name: start_date
required: false
in: query
description: Start date for filtering (ISO 8601). Defaults to 24 hours ago.
schema:
example: '2024-10-15T00:00:00.000Z'
type: string
- name: end_date
required: false
in: query
description: End date for filtering (ISO 8601). Defaults to now.
schema:
example: '2024-10-17T23:59:59.999Z'
type: string
- name: limit
required: false
in: query
description: Maximum number of trends to return in total, summed across all trend groups in the response (newest group first, trends in ranking order). Groups left empty by the cap are omitted.
schema:
minimum: 1
maximum: 100
default: 50
example: 50
type: number
- name: top_exemplars
required: false
in: query
description: Top N example videos to include per trend ranking (checked against the topic, one per creator, most-viewed first). Use 0 to omit exemplars entirely.
schema:
minimum: 0
maximum: 20
default: 5
example: 5
type: number
- name: category
required: false
in: query
description: 'Only topics in these categories (comma-separated, or the parameter repeated). Categories: `entertainment` (TV, film, streaming, music, celebrities, reality shows, creators and influencers); `memes` (internet jokes, memes, viral moments, challenges, funny clips, internet culture); `sports` (games, matches, athletes, teams, sports results and moments); `fashion_beauty` (fashion, runway, style, beauty, makeup, skincare); `gaming_tech` (video games, apps, gadgets, AI, tech launches); `lifestyle` (food, drink, travel, places, local events and festivals, home, wellbeing); `politics` (elections, governments, politicians, parties, policy, protests about policy); `news` (crime, courts and trials, accidents, disasters, business and the economy, world events). Topics not categorised yet are left out whenever a category filter is set.'
schema:
example: entertainment,memes
type: string
- name: exclude_category
required: false
in: query
description: Leave out topics in these categories (comma-separated, or the parameter repeated). Same values as `category`. `exclude_category=politics,news` keeps entertainment, memes, sports, fashion, gaming and lifestyle topics.
schema:
example: politics,news
type: string
responses:
'200':
description: Topic groups
content:
application/json:
schema:
$ref: '#/components/schemas/V1TopicTrendsResponseDto'
'400':
description: Unknown region or category value
'401':
description: Missing or invalid API key (`missing_api_key` / `invalid_api_key`)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded (`rate_limit_exceeded`); see the Retry-After header
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
security:
- api-key: []
summary: Get Topic Trends by date range
tags:
- Topic Trends
components:
schemas:
V1EmergingTopicItemDto:
type: object
properties:
id:
type: string
example: 550e8400-e29b-41d4-a716-446655440000
trend_id:
type: string
example: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
ranking:
type: number
example: 3
description: Position of the trend in its daily container.
region:
type: string
example: gb
description: Region this emerging trend belongs to.
status:
type: string
example: rising
enum:
- new
- rising
description: Lifecycle status. The emerging feed only returns `new` (just detected) and `rising` (accelerating) trends.
momentum_score:
type: number
example: 0.71
description: Normalized 0-1 heat used to rank the emerging list. Uses live momentum when available, otherwise a velocity-band fallback until the first snapshot runs.
views_per_hour:
type:
- number
- 'null'
example: 5200
description: Hourly view growth of the example videos between the last two snapshots, counting only videos measured at both. Null before the first snapshot.
detected_at:
type:
- string
- 'null'
example: '2026-07-07T09:12:03Z'
description: When this trend was first detected.
last_seen_at:
type:
- string
- 'null'
example: '2026-07-07T13:04:41Z'
description: Last intra-day analysis run that re-confirmed this trend.
exemplar_count:
type: number
example: 42
description: Example videos the topic shows after the check against the topic, one per creator.
top_exemplars:
description: Example videos that passed the check against the topic, one per creator, most-viewed first (checked before unchecked). Capped by the `top_exemplars` query param.
type: array
items:
$ref: '#/components/schemas/V1TrendExemplarVideoDto'
trend:
$ref: '#/components/schemas/V1EmergingTopicDto'
required:
- id
- trend_id
- ranking
- region
- status
- momentum_score
- exemplar_count
- top_exemplars
- trend
V1EmergingTopicsResponseDto:
type: object
properties:
region:
type: string
example: au
description: Region the emerging topics were pulled from.
generated_at:
type: string
example: '2026-11-07T14:22:11.000Z'
description: When this response was generated (UTC).
data:
type: array
items:
$ref: '#/components/schemas/V1EmergingTopicItemDto'
required:
- region
- generated_at
- data
V1TrendExemplarVideoDto:
type: object
properties:
video_id:
type: string
example: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
url:
type:
- string
- 'null'
example: https://www.tiktok.com/@example/video/12345
platform:
type: string
example: tiktok
enum:
- tiktok
- youtube
- instagram
views:
type: number
example: 1240000
thumbnail_url:
type:
- string
- 'null'
example: https://cdn.virlo.dev/thumbnails/abc.jpg
publish_date:
type:
- string
- 'null'
example: '2026-05-14T17:11:59Z'
author:
$ref: '#/components/schemas/V1TrendExemplarAuthorDto'
is_paid:
type: boolean
example: false
description: 'True when the post is paid distribution rather than organic reach: TikTok marked it boosted (ad spend) or a Paid partnership / Promotional content, Instagram marked it a paid partnership, or the caption discloses it (#ad, #sponsored, #<brand>partner, gifted). Its views reflect ad budget, so treat it as an ad, not an organic viral win. Paid exemplars are listed after organic ones.'
required:
- video_id
- views
- is_paid
ErrorResponse:
type: object
required:
- statusCode
- code
- error
- message
properties:
statusCode:
type: integer
example: 401
code:
type: string
description: Stable machine-readable error code. Branch on this, never on `message`.
enum:
- validation_error
- invalid_date_range
- unknown_region
- unknown_event_type
- unsupported_platform
- invalid_cursor
- cursor_too_long
- creator_login_required
- creator_not_found
- missing_api_key
- invalid_api_key
- insufficient_credits
- forbidden
- owner_only
- not_found
- conflict
- no_team
- rate_limit_exceeded
- library_quota
- internal_error
- upstream_error
- service_unavailable
- top_up_unavailable
- request_timeout
example: invalid_api_key
error:
type: string
example: Unauthorized
message:
description: Human-readable explanation (an array of messages for validation errors). Wording may change.
oneOf:
- type: string
- type: array
items:
type: string
example: Invalid or inactive API key
V1TopicTrendsResponseDto:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/V1TopicGroupDto'
required:
- data
RateLimitErrorResponse:
allOf:
- $ref: '#/components/schemas/ErrorResponse'
- type: object
properties:
limit:
type: integer
description: Requests allowed in the window.
remaining:
type: integer
description: Requests left in the window.
reset_at:
type: integer
description: Unix time (seconds) the window resets.
reset_at_formatted:
type: string
description: reset_at as a readable UTC time.
retry_after:
type: integer
description: Seconds to wait before retrying.
resetAt:
type: integer
deprecated: true
description: Deprecated alias of reset_at.
resetAtFormatted:
type: string
deprecated: true
description: Deprecated alias of reset_at_formatted.
retryAfter:
type: integer
deprecated: true
description: Deprecated alias of retry_after.
V1TrendRegionsResponseDto:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/V1TrendRegionDto'
required:
- data
V1TrendRegionDto:
type: object
properties:
code:
type: string
example: global
name:
type: string
example: Global
timezone:
type: string
example: America/New_York
required:
- code
- name
- timezone
V1TopicRankingDto:
type: object
properties:
id:
type: string
trend_id:
type: string
trend_group_id:
type: string
ranking:
type: number
example: 1
scrape_status:
type: string
example: success
enum:
- pending
- success
- failed
description: Status of the scrape job that links exemplar videos to this trend. `pending` while children are running, `success` when complete, `failed` if the scrape errored.
exemplar_count:
type: number
example: 141
description: Example videos the topic shows after the check against the topic, one per creator (not capped by top_exemplars).
top_exemplars:
description: Example videos that passed the check against the topic, one per creator, most-viewed first (checked before unchecked). Capped per request by the `top_exemplars` query param.
type: array
items:
$ref: '#/components/schemas/V1TrendExemplarVideoDto'
detected_at:
type:
- string
- 'null'
example: '2026-07-06T11:12:03Z'
description: When this trend was first detected and entered its day container.
last_seen_at:
type:
- string
- 'null'
example: '2026-07-06T23:04:41Z'
description: Last intra-day analysis run that re-confirmed this trend. Null when the trend was only seen once.
origin_region_codes:
example:
- gb
- us
description: 'Provenance for cross-regional (e.g. ''global'') trends: the regions whose independent detections evidenced this trend. Null for plain regional trends.'
type:
- array
- 'null'
items:
type: string
global_confidence:
type:
- number
- 'null'
example: 0.92
description: Confidence (0-1) that this is genuinely the same cross-regional trend. Only set on synthesis-promoted global trends.
velocity_today_count:
type:
- number
- 'null'
example: 87
description: Videos matching this trend in the last 24h at discovery time.
velocity_median_views:
type:
- number
- 'null'
example: 240000
description: Median exemplar views at discovery time.
momentum:
description: Live momentum signal, refreshed every ~2h by a stats-only loop. Null until the first snapshot runs for this trend, or while the topic has fewer than 3 example videos. Null means not measured, not zero growth.
allOf:
- $ref: '#/components/schemas/V1MomentumDto'
trend:
$ref: '#/components/schemas/V1TopicDto'
required:
- id
- trend_id
- trend_group_id
- ranking
- scrape_status
- exemplar_count
- top_exemplars
- trend
V1MomentumDto:
type: object
properties:
score:
type: number
example: 0.62
description: Normalized 0-1 heat derived from the current views/hour of the trend’s exemplars. Higher = hotter right now.
status:
type: string
example: rising
enum:
- new
- rising
- steady
- fading
description: Lifecycle status. `new` = just detected, `rising` = accelerating, `steady` = flat, `fading` = decelerating.
views_per_hour:
type: number
example: 4200
description: Hourly view growth of the example videos between the last two snapshots, counting only videos measured at both.
updated_at:
type: string
example: '2026-07-07T14:00:00.000Z'
description: When momentum was last recomputed (snapshot loop, ~2h cadence).
required:
- score
- status
- views_per_hour
V1TopicGroupDto:
type: object
properties:
id:
type: string
example: 550e8400-e29b-41d4-a716-446655440000
region:
type: string
example: global
description: Region this trend group belongs to. 'global' is the default worldwide feed.
local_date:
type:
- string
- 'null'
example: '2026-07-06'
description: Calendar day of this group in the region's local timezone. Null only for legacy groups predating regionalization.
title:
type: string
example: Topic Trends for Nov 7
trends:
description: Topics in ranking order. `ranking` is the position in the full feed, so it can skip numbers when a category filter is set.
type: array
items:
$ref: '#/components/schemas/V1TopicRankingDto'
required:
- id
- region
- title
- trends
V1EmergingTopicDto:
type: object
properties:
id:
type: string
example: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
name:
type: string
example: Love Island Australia week 2 breakdowns
description:
type:
- string
- 'null'
example: Episodes five and six of Love Island Australia's eighth season aired this week...
category:
type:
- string
- 'null'
enum:
- entertainment
- memes
- sports
- fashion_beauty
- gaming_tech
- lifestyle
- politics
- news
- null
example: entertainment
description: What the topic is about. Null for a topic not categorised yet (usually minutes old). Values may be added over time; treat an unknown value as "other".
created_at:
type: string
example: '2026-11-07T09:12:03Z'
required:
- id
- name
- description
- category
- created_at
V1TopicDto:
type: object
properties:
id:
type: string
example: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
name:
type: string
example: Love Island Australia week 2 breakdowns
description:
type:
- string
- 'null'
example: Episodes five and six of Love Island Australia's eighth season aired this week...
category:
type:
- string
- 'null'
enum:
- entertainment
- memes
- sports
- fashion_beauty
- gaming_tech
- lifestyle
- politics
- news
- null
example: entertainment
description: What the topic is about. Null for a topic not categorised yet (usually minutes old). Values may be added over time; treat an unknown value as "other".
required:
- id
- name
- description
- category
V1TrendExemplarAuthorDto:
type: object
properties:
username:
type:
- string
- 'null'
example: jane.creator
avatar_url:
type:
- string
- 'null'
example: https://cdn.virlo.dev/avatars/abc.jpg
verified:
type:
- boolean
- 'null'
example: true
securitySchemes:
api-key:
scheme: bearer
bearerFormat: API Key
type: http
name: Authorization
description: 'Enter your customer API key (format: virlo_tkn_xxxxx)'
in: header