Virlo Trends API
Deprecated paths: use Topic Trends (`/v1/topic-trends`). These `/v1/trends` routes keep working with their original response. (v1)
Deprecated paths: use Topic Trends (`/v1/topic-trends`). These `/v1/trends` routes keep working with their original response. (v1)
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/virlo-ai:virlo-ai-trends-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Virlo Public 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: Trends
description: 'Deprecated paths: use Topic Trends (`/v1/topic-trends`). These `/v1/trends` routes keep working with their original response. (v1)'
paths:
/v1/trends/regions:
get:
description: 'Deprecated path, kept working: use `GET /v1/topic-trends/regions` (same response). Returns the regions that can be passed as the `region` query param. More regions will be added over time; poll this endpoint to discover them.'
operationId: V1TrendsController_getTrendRegions
parameters: []
responses:
'200':
description: Successfully retrieved trend regions
content:
application/json:
schema:
$ref: '#/components/schemas/V1TrendRegionsResponseDto'
'401':
description: Unauthorized - missing or invalid API key
'429':
description: Too many requests - rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
security:
- api-key: []
summary: List Topic Trends regions (deprecated path)
tags:
- Trends
deprecated: true
x-virlo-replacement: /v1/topic-trends/regions
x-virlo-migration-guide: https://dev.virlo.ai/docs/topic-trends#moving-from-v1-trends
/v1/trends:
get:
description: 'Deprecated path, kept working: use `GET /v1/topic-trends`, which returns the same topics with a `category` on each and accepts `category` / `exclude_category` filters. Topic Trends are what people are talking about, by region; for video formats creators are copying, use Content Trends (`/v1/content-trends`). Defaults to the last 24 hours and the global region. `limit` caps the number of topics returned in total, across all groups.'
operationId: V1TrendsController_getTrends
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
responses:
'200':
description: Successfully retrieved trend groups
content:
application/json:
schema:
$ref: '#/components/schemas/V1TrendsResponseDto'
'401':
description: Unauthorized - missing or invalid API key
'429':
description: Too many requests - rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
security:
- api-key: []
summary: Get Topic Trends by date range (deprecated path)
tags:
- Trends
deprecated: true
x-virlo-replacement: /v1/topic-trends
x-virlo-migration-guide: https://dev.virlo.ai/docs/topic-trends#moving-from-v1-trends
/v1/trends/emerging:
get:
description: 'Deprecated path, kept working: use `GET /v1/topic-trends/emerging`, which adds `category` and the category filters. Returns today''s `new` and `rising` topics for a region, ranked by live momentum heat (refreshed about every 2 hours).'
operationId: V1TrendsController_getEmergingTrends
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
responses:
'200':
description: Successfully retrieved emerging trends
content:
application/json:
schema:
$ref: '#/components/schemas/V1EmergingTrendsResponseDto'
'400':
description: Unknown region code
'401':
description: Unauthorized - missing or invalid API key
'429':
description: Too many requests - rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
security:
- api-key: []
summary: Get emerging Topic Trends (deprecated path)
tags:
- Trends
deprecated: true
x-virlo-replacement: /v1/topic-trends/emerging
x-virlo-migration-guide: https://dev.virlo.ai/docs/topic-trends#moving-from-v1-trends
/v1/trends/digest:
get:
description: 'Deprecated path, kept working: use `GET /v1/topic-trends/today`, which adds `category`, the category filters and a `limit`. Returns today''s topic group for the region (default global), based on the current date in the region''s timezone.'
operationId: V1TrendsController_getTrendsDigest
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
responses:
'200':
description: Successfully retrieved today's trends
content:
application/json:
schema:
$ref: '#/components/schemas/V1TrendsResponseDto'
'401':
description: Unauthorized - missing or invalid API key
'429':
description: Too many requests - rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
security:
- api-key: []
summary: Get today's Topic Trends (deprecated path)
tags:
- Trends
deprecated: true
x-virlo-replacement: /v1/topic-trends/today
x-virlo-migration-guide: https://dev.virlo.ai/docs/topic-trends#moving-from-v1-trends
components:
schemas:
V1TrendRankingDto:
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/V1TrendDto'
required:
- id
- trend_id
- trend_group_id
- ranking
- scrape_status
- exemplar_count
- top_exemplars
- trend
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
V1EmergingTrendDto:
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/V1TrendDto'
required:
- id
- trend_id
- ranking
- region
- status
- momentum_score
- exemplar_count
- top_exemplars
- trend
V1TrendDto:
type: object
properties:
id:
type: string
example: 550e8400-e29b-41d4-a716-446655440000
name:
type: string
example: AI-powered fitness coaching
description:
type: string
example: Creators are using AI tools to create personalized workout plans
trend_type:
type: string
example: content_format
required:
- id
- name
- description
- trend_type
V1TrendsResponseDto:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/V1TrendGroupDto'
required:
- data
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
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.
V1TrendGroupDto:
type: object
properties:
id:
type: string
example: 550e8400-e29b-41d4-a716-446655440000
title:
type: string
example: Trends for Mar 18
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.
trends:
type: array
items:
$ref: '#/components/schemas/V1TrendRankingDto'
required:
- id
- title
- region
- trends
V1TrendRegionsResponseDto:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/V1TrendRegionDto'
required:
- data
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
V1EmergingTrendsResponseDto:
type: object
properties:
region:
type: string
example: gb
description: Region the emerging trends were pulled from.
generated_at:
type: string
example: '2026-07-07T14:22:11.000Z'
description: When this response was generated (UTC).
data:
type: array
items:
$ref: '#/components/schemas/V1EmergingTrendDto'
required:
- region
- generated_at
- 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
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