Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Viral Outliers Agent Trends API
version: 1.0.0
description: 'Search viral outlier posts, pull profile stats, generate transcripts and crawl social profiles on demand. Prepaid credit billing with a hard stop at zero. Human docs: https://viraloutliers.com/docs'
servers:
- url: https://viraloutliers.com
tags:
- name: Trends
paths:
/api/v1/trends:
post:
operationId: niche_trends
summary: What's Trending in a Niche
description: 'Returns the top overperforming posts in a niche over a recent window (default one week), plus a breakdown of which content types are driving the trend and which creators are represented. Filter by keyword and platform. Great as the first call in a content-research loop: see what''s hot, then deep-dive or remix the winners.
Cost: 2 credits per call.'
security:
- apiKey: []
parameters: []
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
'401':
description: Invalid or revoked API key (or, on free skills, no key sent); code key_suspended means the key was suspended when its account was claimed by the email owner and can be reactivated in Settings
'402':
description: Payment required. Without an API key (billable skills only) the code is payment_required and error.payment.checkoutUrl (or, when no link is configured, error.payment.pageUrl at https://viraloutliers.com/api-access) buys a key without an account; with a key it is insufficient_credits and error.payment points at create_topup_link.
'429':
description: Rate limited
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: Niche keyword over captions/titles/handles.
platforms:
type: array
items:
type: string
description: '"tiktok" | "instagram" | "youtube".'
categoryId:
type: string
description: 'Niche filter: a category id from list_categories (covers its subtree). More precise than a keyword: it scopes to the creators categorized in that niche.'
timeFrame:
type: string
description: '"one_week" (default) up to "all_time".'
limit:
type: number
description: Top posts to return, clamped 1–50 (default 20).
required: []
tags:
- Trends
components:
securitySchemes:
apiKey:
type: http
scheme: bearer
description: 'API key (so_live_…) from Settings → API Keys, as "Authorization: Bearer so_live_…" or the x-api-key header.'
x-provenance:
method: harvested
publisher: Viral Outliers
source: https://viraloutliers.com/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)