Virlo Audience API

Creator audience demographics and geography (v1)

GitHub OpenAPI
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).

Operations 1

GET /v1/audience/snapshot/{job_id} Poll an audience snapshot job by ID #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/virlo-ai:virlo-ai-audience-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

virlo-ai-audience-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Virlo Public Audience 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: Audience
  description: Creator audience demographics and geography (v1)
paths:
  /v1/audience/snapshot/{job_id}:
    get:
      description: Returns the current state of a single audience snapshot job. Free — no credit cost. Surfaced as the `poll_url` on `pending_jobs[]` entries returned by Satellite and Tracking. Job state is cached in Redis for 24 hours after completion; older job IDs return 404.
      operationId: V1AudienceController_getSnapshotJob
      parameters:
      - name: job_id
        required: true
        in: path
        description: The audience job ID, as returned in `pending_jobs[].job_id` or in the `audience_demographics` / `audience_geography` processing pointer on a Satellite lookup result.
        schema:
          type: string
      responses:
        '200':
          description: Job state retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudienceSnapshotJobResponseDto'
        '401':
          description: Unauthorized - missing or invalid API key
        '404':
          description: Job not found or expired
        '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: Poll an audience snapshot job by ID
      tags:
      - Audience
components:
  schemas:
    AudienceSnapshotJobResponseDto:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AudienceSnapshotJobDataDto'
      required:
      - data
    AudienceSnapshotDto:
      type: object
      properties:
        snapshot_id:
          type: string
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        snapshot_at:
          type: string
          example: '2026-05-21T01:06:00.000Z'
        sample_size:
          type: number
          example: 1500
          description: Number of commenter samples resolved for this snapshot
        age_distribution:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
          description: 'Age band → share of resolved sample (0–1). Keys: "13-17", "18-24", "25-34", "35-44", "45+". Null when confidence is below internal floor.'
          example:
            13-17: 0.05
            18-24: 0.4
            25-34: 0.35
            35-44: 0.15
            45+: 0.05
        gender_distribution:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
          description: 'Gender → share of resolved sample (0–1). Keys: "female", "male", "unknown".'
          example:
            female: 0.62
            male: 0.34
            unknown: 0.04
        country_distribution:
          description: 'Top countries, ordered by share descending. Low-volume tail entries (those backed by fewer than 2 underlying commenters) are consolidated into a single trailing `{ "name": "Other (N countries)", "pct": <sum> }` bucket so the distribution head stays readable on small samples.'
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/AudienceGeoBucketDto'
        city_distribution:
          description: 'Top cities, ordered by share descending. Long-tail consolidation matches `country_distribution` — singletons are rolled into a trailing `{ "name": "Other (N cities)", "pct": <sum> }` bucket. May be null when city signal is too sparse.'
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/AudienceGeoBucketDto'
        language_distribution:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
          description: Language code → share of resolved sample (0–1). ISO 639-1 lowercase codes.
          example:
            en: 0.78
            es: 0.12
            pt: 0.05
        confidence_per_signal:
          description: Per-signal confidence scores (0–1). Distributions are returned null when confidence is below the model floor.
          allOf:
          - $ref: '#/components/schemas/AudienceConfidenceDto'
        confidence_level:
          type: string
          enum:
          - low
          - medium
          - high
          example: medium
          description: Coarse confidence band. "high" = ≥200 samples with strong signals; "medium" = ≥100 or "high" downgraded (weak signals OR followers-only sample); "low" = ≥30 samples. Quick-take on snapshot reliability before reading `confidence_per_signal`.
        data_source:
          type: string
          enum:
          - comments
          - mixed
          - followers
          - comments_extended
          example: comments
          description: 'How the sample was assembled. "comments" — engagement-only sample (default); "mixed" — comments + follower list blend (TikTok Tier 1 fallback when comments are sparse); "followers" — follower-list only (TikTok Tier 2 fallback, indicates audience composition without active engagement); "comments_extended" — comments re-collected over an extended post window (IG/YT fallback). Use to weight signals: comment-derived samples reflect active engagement; follower-derived samples reflect who chose to subscribe.'
        signal_breakdown:
          type: object
          properties:
            comments:
              type: number
              example: 245
            followers:
              type: number
              example: 0
            coverage:
              type: object
              description: 'How many sampled people each signal rests on. Every share in a distribution is a share of that signal''s `n`, not of `sample_size`. A distribution resting on fewer than 25 is null, with `hidden_for_low_n: true`. Absent on snapshots built before Nov 2026.'
              additionalProperties:
                type: object
                properties:
                  n:
                    type: number
                    example: 124
                  share_of_sample:
                    type: number
                    example: 0.506
                  margin_of_error_pts:
                    type:
                    - number
                    - 'null'
                    example: 7.7
                    description: 95% margin of error, in percentage points, on the largest bucket.
                  hidden_for_low_n:
                    type: boolean
          example:
            comments: 245
            followers: 0
            coverage:
              age:
                n: 98
                share_of_sample: 0.4
                margin_of_error_pts: 9.8
              gender:
                n: 231
                share_of_sample: 0.943
                margin_of_error_pts: 6.1
              country:
                n: 124
                share_of_sample: 0.506
                margin_of_error_pts: 7.7
              city:
                n: 12
                share_of_sample: 0.049
                margin_of_error_pts: 27.7
                hidden_for_low_n: true
              language:
                n: 240
                share_of_sample: 0.98
                margin_of_error_pts: 2.4
          description: Per-source contribution to `sample_size`. Always sums to `sample_size`. For `data_source = "followers"` snapshots, `comments` is 0; for `data_source = "comments"` snapshots, `followers` is 0; for `mixed` both are non-zero. `coverage` gives the base of every distribution, so a share reads as "X% of n people".
        evidence_summary:
          type:
          - string
          - 'null'
          description: Human-readable summary of how the inferences were derived. Calls out when the sample is follower-sourced rather than commenter-sourced.
        model_version:
          type: string
          example: v1
          description: Audience inference model version.
      required:
      - snapshot_id
      - snapshot_at
      - sample_size
      - confidence_per_signal
      - confidence_level
      - data_source
      - signal_breakdown
      - model_version
    AudienceSnapshotJobErrorDto:
      type: object
      properties:
        code:
          type: string
          example: INSUFFICIENT_SAMPLE
        message:
          type: string
          example: Only 12 unique commenters collected (min 30). Creator likely has very little public engagement. The customer was NOT charged for this attempt.
      required:
      - code
      - message
    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
    AudienceConfidenceDto:
      type: object
      properties:
        age:
          type: number
          example: 0.72
        gender:
          type: number
          example: 0.78
        country:
          type: number
          example: 0.65
        city:
          type: number
          example: 0.55
        language:
          type: number
          example: 0.7
    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.
    PendingJobDto:
      type: object
      properties:
        type:
          type: string
          description: Stable identifier for the kind of secondary job. Use this to switch on the field where the result will appear (see `result_path`).
          enum:
          - viral_analysis
          - audience_demographics
          - audience_geography
          - tracking_report
          - data_intelligence
          example: viral_analysis
        status:
          type: string
          description: Current non-terminal state of the job. Once the job reaches a terminal state (ready / failed / skipped) the entry is removed from `pending_jobs[]`.
          enum:
          - pending
          - processing
          example: processing
        job_id:
          type: string
          description: Optional opaque identifier for the underlying job, when one exists. Useful with `poll_url` to fetch the result directly.
          example: aud_01HXYZ
        poll_url:
          type: string
          description: Path (relative to api.virlo.ai) you can GET to fetch the result of this job once it is ready. Free to call.
          example: /v1/orbit/orb_01HXYZ/analysis/latest
        result_path:
          type: string
          description: Dot-path inside the parent resource's response body where the completed result will appear. Useful for clients that re-fetch the resource instead of using `poll_url`.
          example: data.analysis_data
        webhook_event:
          type: string
          description: Name of an event from the existing `SUPPORTED_EVENTS` list that fires when this job reaches a terminal state. Subscribe to it via POST /v1/webhooks to avoid polling. Guaranteed to be one of the already-supported event names so existing webhook subscriptions keep working — no new event types were introduced.
          example: orbit.run.completed
        started_at:
          type: string
          description: When the job entered its current state (ISO 8601 UTC).
          example: '2026-05-22T05:00:00.000Z'
        retry_after_seconds:
          type: number
          description: Suggested minimum delay (seconds) before polling again. Respect this to avoid hitting rate limits.
          example: 15
      required:
      - type
      - status
    AudienceGeoBucketDto:
      type: object
      properties:
        code:
          type: string
          example: US
          description: ISO 3166-1 alpha-2 code (countries) or two-letter country code the city belongs to. Omitted on the trailing "Other" bucket that aggregates the long tail.
        name:
          type: string
          example: United States
          description: Display name. The trailing bucket may be returned as "Other (N countries)" / "Other (N cities)" when low-volume tail entries are consolidated.
        pct:
          type: number
          example: 0.42
          description: Share of the resolved sample (0–1)
        confidence:
          type: number
          example: 0.72
          description: Aggregate confidence the pipeline has in this bucket assignment (0–1). Combines per-commenter inference confidence and corroborating signals. Omitted on the trailing "Other" bucket.
      required:
      - name
      - pct
    AudienceSnapshotJobDataDto:
      type: object
      properties:
        job_id:
          type: string
          example: aud_a1b2c3d4e5f6
        status:
          type: string
          enum:
          - processing
          - completed
          - failed
          - unknown
          example: completed
        snapshot:
          description: Populated when status = "completed".
          allOf:
          - $ref: '#/components/schemas/AudienceSnapshotDto'
        error:
          description: Populated when status = "failed".
          allOf:
          - $ref: '#/components/schemas/AudienceSnapshotJobErrorDto'
        finalized:
          type: boolean
          example: true
          description: True once the snapshot job reaches a terminal state (`completed` or `failed`). Included for shape uniformity across async resources.
        pending_jobs:
          description: Always an empty array for this endpoint — it polls a single audience job and exposes nothing else. Included so consumers can treat every async response the same way.
          type: array
          items:
            $ref: '#/components/schemas/PendingJobDto'
      required:
      - job_id
      - status
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: API Key
      type: http
      name: Authorization
      description: 'Enter your customer API key (format: virlo_tkn_xxxxx)'
      in: header