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 Credits 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: Credits
paths:
/api/v1/credits:
get:
operationId: get_credit_balance
summary: Check Credit Balance
description: 'Returns the current API credit balance for the authenticated account, plus the automatic top-up state of the account (autoTopup: configured, enabled, pack, monthly charge cap and count, last error) so an agent can tell whether a zero balance is a hard stop or refills itself on the next billable call, and expiring: the next dates on which part of the balance expires, with the credits on each. Free to call. Agents should check the balance before starting large batch jobs and surface "insufficient_credits" errors to the user with a link to top up.
Cost: free.'
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
tags:
- Credits
/api/v1/credits/topup:
post:
operationId: create_topup_link
summary: Create a Credit Top-Up Link
description: 'Creates a Stripe Checkout link for a credit pack, so when the balance runs out mid-task you can hand the account owner a one-click payment link instead of instructions. Credits land within seconds of payment. Free to call (5 links/hour); links are valid for 24 hours. Packs: see the pricing table in the docs.
Cost: free.'
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: true
content:
application/json:
schema:
type: object
properties:
packId:
type: string
description: 'One of: pack_s, pack_m, pack_l.'
required:
- packId
tags:
- Credits
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)