Sumvid Statistics API

Public, aggregate usage stats. Served internal-only (not routed publicly via Caddy) and cached ~1h in-process; the frontend fetches these server-side with hourly ISR for the /statistics page.

GitHub OpenAPI

Operations 5

GET /stats/overview Stats Overview Endpoint #
GET /stats/top-videos Stats Top Videos Endpoint #
GET /stats/activity Stats Activity Endpoint #
GET /stats/queue Stats Queue Endpoint #
GET /stats/settlements Stats Settlements Endpoint #

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/sumvid-app:sumvid-app-statistics-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

sumvid-app-statistics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: summarize-vid Statistics API
  description: YouTube video transcript summarizer (Claude Haiku).
  version: 0.6.0
  x-guidance: 'Paid agent calls are POST /v1/summarize, POST /v1/transcript, POST /v1/channel/new, and POST /v1/json/format. Send the request with no authorization to receive HTTP 402. The payment requirements are in the PAYMENT-REQUIRED header and the JSON body. Retry with a PAYMENT-SIGNATURE header. Prices are on each operation under x-payment-info. Discovery documents: GET /.well-known/x402 and GET /.well-known/x402.json.'
tags:
- name: Statistics
  description: Public, aggregate usage stats. Served internal-only (not routed publicly via Caddy) and cached ~1h in-process; the frontend fetches these server-side with hourly ISR for the /statistics page.
paths:
  /stats/overview:
    get:
      tags:
      - Statistics
      summary: Stats Overview Endpoint
      description: 'Aggregate usage counters over the window (default all-time): unique

        videos, total requests, unique users, and cache-hit rate. Counts completed

        jobs only (failures excluded).'
      operationId: stats_overview_endpoint_stats_overview_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Window
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatsOverview'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /stats/top-videos:
    get:
      tags:
      - Statistics
      summary: Stats Top Videos Endpoint
      description: 'Most-requested videos over the window, ranked by request count (with the

        distinct-user count and display metadata alongside). `lang` is the

        reader''s language: titles come from the summary in that language when one

        exists (else English, else YouTube''s). Reads never generate translations.'
      operationId: stats_top_videos_endpoint_stats_top_videos_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Window
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 10
          title: Limit
      - name: lang
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Lang
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopVideosResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /stats/activity:
    get:
      tags:
      - Statistics
      summary: Stats Activity Endpoint
      description: 'Completed-request volume over time, bucketed in UTC. bucket=''day'' gives

        a date series; bucket=''hour'' gives hour-of-day (0-23) totals.'
      operationId: stats_activity_endpoint_stats_activity_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Window
      - name: bucket
        in: query
        required: false
        schema:
          type: string
          default: day
          title: Bucket
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /stats/queue:
    get:
      tags:
      - Statistics
      summary: Stats Queue Endpoint
      description: 'Public-safe preview of the live in-flight queue for the /statistics page.


        Returns the top `limit` jobs in worker-processing order (running first, then

        pending FIFO), each with its position, size, ETA, and display metadata —

        but **none** of the identifying fields the admin `/queue` exposes (no

        user_id, raw URL, or job_id). `count` is the full queue length so the UI can

        show "+ N more". Cached ~10s, so it''s near-live without hammering Postgres.'
      operationId: stats_queue_endpoint_stats_queue_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 10
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueuePreviewResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /stats/settlements:
    get:
      tags:
      - Statistics
      summary: Stats Settlements Endpoint
      description: 'Public settlements feed for the frontend `/settlements` page: recent

        settled x402 payments (sanitized), plus all-time totals and a 30-day

        daily series. Reads `x402_payments` directly (settled rows only), unlike

        the job-ledger-derived aggregates above. Cached ~10s, near-live.'
      operationId: stats_settlements_endpoint_stats_settlements_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 25
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicSettlementsFeed'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PublicSettlementTotals:
      properties:
        settled_count:
          type: integer
          title: Settled Count
        settled_amount_atomic:
          type: string
          title: Settled Amount Atomic
        distinct_payers:
          type: integer
          title: Distinct Payers
        settled_last_24h:
          type: integer
          title: Settled Last 24H
        last_settled_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Settled At
      type: object
      required:
      - settled_count
      - settled_amount_atomic
      - distinct_payers
      - settled_last_24h
      title: PublicSettlementTotals
    PublicSettlementsFeed:
      properties:
        totals:
          $ref: '#/components/schemas/PublicSettlementTotals'
        settlements:
          items:
            $ref: '#/components/schemas/PublicSettlementRow'
          type: array
          title: Settlements
        daily:
          items:
            $ref: '#/components/schemas/PublicSettlementDailyPoint'
          type: array
          title: Daily
      type: object
      required:
      - totals
      - settlements
      - daily
      title: PublicSettlementsFeed
    PublicSettlementRow:
      properties:
        id:
          type: integer
          title: Id
        sku:
          type: string
          title: Sku
        surface:
          type: string
          title: Surface
        network:
          anyOf:
          - type: string
          - type: 'null'
          title: Network
        amount_atomic:
          type: string
          title: Amount Atomic
        payer_short:
          type: string
          title: Payer Short
        tx_hash:
          anyOf:
          - type: string
          - type: 'null'
          title: Tx Hash
        settled_at:
          type: string
          format: date-time
          title: Settled At
        created_at:
          type: string
          format: date-time
          title: Created At
        youtube_video_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Youtube Video Id
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        channel:
          anyOf:
          - type: string
          - type: 'null'
          title: Channel
        served_from_cache:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Served From Cache
      type: object
      required:
      - id
      - sku
      - surface
      - amount_atomic
      - payer_short
      - settled_at
      - created_at
      title: PublicSettlementRow
    QueuePreviewResponse:
      properties:
        count:
          type: integer
          title: Count
        queue:
          items:
            $ref: '#/components/schemas/QueuePreviewItem'
          type: array
          title: Queue
      type: object
      required:
      - count
      - queue
      title: QueuePreviewResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ActivityBucket:
      properties:
        bucket:
          type: string
          title: Bucket
        requests:
          type: integer
          title: Requests
      type: object
      required:
      - bucket
      - requests
      title: ActivityBucket
    QueuePreviewItem:
      properties:
        position:
          type: integer
          title: Position
        status:
          type: string
          title: Status
        youtube_video_id:
          type: string
          title: Youtube Video Id
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        channel:
          anyOf:
          - type: string
          - type: 'null'
          title: Channel
        thumbnail_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Thumbnail Url
        duration_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Duration Seconds
        transcript_chars:
          anyOf:
          - type: integer
          - type: 'null'
          title: Transcript Chars
        eta_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Eta Seconds
      type: object
      required:
      - position
      - status
      - youtube_video_id
      title: QueuePreviewItem
    TopVideo:
      properties:
        youtube_video_id:
          type: string
          title: Youtube Video Id
        video_url:
          type: string
          title: Video Url
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        original_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Original Title
        language_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Language Code
        channel:
          anyOf:
          - type: string
          - type: 'null'
          title: Channel
        thumbnail_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Thumbnail Url
        duration_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Duration Seconds
        first_transcribed_at:
          type: string
          format: date-time
          title: First Transcribed At
        requests:
          type: integer
          title: Requests
        unique_users:
          type: integer
          title: Unique Users
      type: object
      required:
      - youtube_video_id
      - video_url
      - first_transcribed_at
      - requests
      - unique_users
      title: TopVideo
    PublicSettlementDailyPoint:
      properties:
        day:
          type: string
          format: date
          title: Day
        settled_count:
          type: integer
          title: Settled Count
        settled_amount_atomic:
          type: string
          title: Settled Amount Atomic
      type: object
      required:
      - day
      - settled_count
      - settled_amount_atomic
      title: PublicSettlementDailyPoint
    TopVideosResponse:
      properties:
        requested_language:
          type: string
          title: Requested Language
          default: en
        window:
          type: string
          title: Window
        videos:
          items:
            $ref: '#/components/schemas/TopVideo'
          type: array
          title: Videos
      type: object
      required:
      - window
      - videos
      title: TopVideosResponse
    ActivityResponse:
      properties:
        window:
          type: string
          title: Window
        bucket:
          type: string
          title: Bucket
        series:
          items:
            $ref: '#/components/schemas/ActivityBucket'
          type: array
          title: Series
      type: object
      required:
      - window
      - bucket
      - series
      title: ActivityResponse
    StatsOverview:
      properties:
        window:
          type: string
          title: Window
        unique_videos:
          type: integer
          title: Unique Videos
        total_requests:
          type: integer
          title: Total Requests
        unique_users:
          type: integer
          title: Unique Users
        cache_hits:
          type: integer
          title: Cache Hits
        cache_hit_rate:
          type: number
          title: Cache Hit Rate
      type: object
      required:
      - window
      - unique_videos
      - total_requests
      - unique_users
      - cache_hits
      - cache_hit_rate
      title: StatsOverview
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer