PeerTube · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for PeerTube Video Stats API

5 actions 5 updates phrasing extends openapi/peertube-video-stats-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for PeerTube's API. It is a proposal applied on top of the contract, not a document PeerTube publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 5

$.info
$.paths['/api/v1/videos/{id}/stats/overall'].get
$.paths['/api/v1/videos/{id}/stats/user-agent'].get
$.paths['/api/v1/videos/{id}/stats/retention'].get
$.paths['/api/v1/videos/{id}/stats/timeseries/{metric}'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for PeerTube Video Stats API
  version: 1.0.0
extends: openapi/peertube-video-stats-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-22'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 4
- target: $.paths['/api/v1/videos/{id}/stats/overall'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a video's overall stats
      effect: read
      questions:
      - How many views and plays has a video had overall?
      - Can I see a video's overall stats for a date range?
      instructions:
      - text: Get overall stats for video {id}.
        slots:
          id: path.id
      - text: Show total views and plays for video {id} from {startDate} to {endDate}.
        slots:
          id: path.id
          startDate: query.startDate
          endDate: query.endDate
      method: generated
      generated: '2026-11-22'
- target: $.paths['/api/v1/videos/{id}/stats/user-agent'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a video's user-agent stats
      effect: read
      questions:
      - Which browsers and devices have played a video?
      - Can I break down a video's plays by user agent?
      instructions:
      - text: Get user-agent stats for video {id}.
        slots:
          id: path.id
      - text: Show how video {id} was played by browser and device between {startDate} and {endDate}.
        slots:
          id: path.id
          startDate: query.startDate
          endDate: query.endDate
      method: generated
      generated: '2026-11-22'
- target: $.paths['/api/v1/videos/{id}/stats/retention'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a video's retention curve
      effect: read
      questions:
      - How much of a video do viewers typically watch?
      - What does a video's retention curve look like?
      instructions:
      - text: Get the retention curve for video {id}.
        slots:
          id: path.id
      - text: Show how long viewers stay with video {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-22'
- target: $.paths['/api/v1/videos/{id}/stats/timeseries/{metric}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a video's stats over time
      effect: read
      questions:
      - How has a video's view count changed day by day?
      - Can I get a video's stats as a time series for one metric?
      instructions:
      - text: Get the {metric} time series for video {id}.
        slots:
          metric: path.metric
          id: path.id
      - text: Show daily {metric} for video {id} from {startDate} to {endDate}.
        slots:
          metric: path.metric
          id: path.id
          startDate: query.startDate
          endDate: query.endDate
      method: generated
      generated: '2026-11-22'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/peertube-video-stats-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.