My TV Channel Account API

Who am I, what may I do, and how much of it is left.

GitHub OpenAPI

Operations 3

GET /users/status.php Who am I — tier, limits, quotas, channels and launch gaps #
GET /users/device.php The owner's YouTube ownership-proof tag #
GET /subscriptions/quota.php Upload and streaming quota detail #

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/my-tv-channel-com:my-tv-channel-com-account-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

my-tv-channel-com-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: My TV Channel — Agent Account API
  version: 1.0.0
  summary: Create and run 24/7 linear HLS TV channels programmatically.
  description: 'Create and run 24/7 linear TV channels — the kind that just play, with no menu to browse.

    Import videos, and the service transcodes them, builds a continuous schedule, and streams

    the result at `https://{handle}.my-tv-channel.com` and in the iOS, iPadOS, tvOS, macOS,

    Android, Fire TV and Roku apps.


    ## Before you start


    - **Every response uses the same envelope:** `{"success": true, "data": ...}` or

    `{"success": false, "error": "...", "code": N}`. There is exactly one exception, and it

    is called out on the operation: `GET /channels/schedule.php` returns `data` as a bare

    **array**.

    - **Authentication is an API key**, `Authorization: Bearer mytv_sk_...`, created by a

    signed-in human at or in the app under

    Profile → Agent Access. An active subscription on any tier is required, and the key

    inherits the owner''s tier limits. **An agent cannot mint its own key, by design** — if

    you do not have one, ask the owner for one.

    - **Rate limit:** 1,000 requests/hour per key. Exceeding it returns `429` with

    `Retry-After`; honour it rather than spinning.

    - **Start with `GET /users/status.php`.** It returns the tier, the real quota numbers for

    this account, every channel, and for each one exactly what it still needs before it can

    go live. Agents that skip this step guess, and guessing is expensive.


    ## The two things that catch everyone


    1. **Weights only reach the air when the schedule is generated.** A channel builds its

    schedule the instant it crosses the launch threshold, from the weights present at that

    moment. Weights set afterwards are stored faithfully, reported back correctly, and do

    not change what is broadcasting. Either set each asset''s weight as soon as it reports

    `ready`, or call `POST /schedule/regenerate.php` when you are done.

    2. **You cannot upload a local file over MCP**, because tool arguments are JSON and there

    is no multipart channel. `POST /assets/import-url.php` is therefore the ingestion path

    for an agent. `POST /assets/upload.php` exists for clients that can post multipart.


    ## Going live


    A channel launches **automatically** once it has ≥ 4 ready assets **and** ≥ 15 minutes of

    content with weight > 0. Transcoding is the slow step. Poll `GET /assets/status.php` for

    `summary.meetsLaunchRequirements`, then `GET /channels/get.php` until `scheduleStatus` is

    `active`, then report the watch URL to the owner.'
  contact:
    name: My TV Channel
    url: https://my-tv-channel.com/agents/
  license:
    name: Proprietary
    url: https://my-tv-channel.com/terms.html
servers:
- url: https://my-tv-channel.com/api/mytvchannel
  description: Production (canonical host)
- url: https://my-tv-channel.com/api/mytvchannel
  description: Production (legacy host, still live — prefer the canonical one)
security:
- bearerAuth: []
tags:
- name: Account
  description: Who am I, what may I do, and how much of it is left.
paths:
  /users/status.php:
    get:
      operationId: getAccountStatus
      tags:
      - Account
      summary: Who am I — tier, limits, quotas, channels and launch gaps
      description: '**The right first call.** Returns the owner''s subscription tier and the real limits

        for this account, upload and streaming quota used vs remaining over a rolling 7-day

        window, and every channel with its `launchGaps` — a human-readable list of what each

        channel still needs, e.g. `"needs 2 more ready asset(s)"`.


        Do not hardcode tier limits from documentation; read them from here. Quota is measured

        in seconds for upload and minutes for streaming.'
      responses:
        '200':
          description: Account status
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ApiSuccess'
                - type: object
                  properties:
                    data:
                      $ref: '#/components/schemas/AccountStatus'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /users/device.php:
    get:
      operationId: getOwnershipTag
      tags:
      - Account
      summary: The owner's YouTube ownership-proof tag
      description: 'Returns the device tag used to prove YouTube ownership, in the form

        `MyTVChannelApp#`. The owner pastes this exact string into a video''s

        description or tags on YouTube; only the uploader can do that, which is the proof.


        See `POST /assets/import-youtube.php`. **Relay the string verbatim** — it is matched

        exactly.'
      responses:
        '200':
          description: The ownership tag for this account
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ApiSuccess'
                - type: object
                  properties:
                    data:
                      type: object
                      properties:
                        deviceId:
                          type: string
                        tag:
                          type: string
                          examples:
                          - MyTVChannelApp#61030AF7-FC5C-4131-AA9F-1E62DC0BA25F
        '401':
          $ref: '#/components/responses/Unauthorized'
  /subscriptions/quota.php:
    get:
      operationId: getQuota
      tags:
      - Account
      summary: Upload and streaming quota detail
      description: A narrower view of the quota already included in `GET /users/status.php`. Prefer that call unless you specifically only want quota.
      responses:
        '200':
          description: Quota detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSuccess'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ApiError:
      type: object
      required:
      - success
      - error
      properties:
        success:
          type: boolean
          const: false
        error:
          type: string
          description: Human-readable. For the YouTube ownership failure this string contains the exact tag the owner must publish — relay it verbatim.
        code:
          type: integer
    Channel:
      type: object
      properties:
        id:
          type: integer
        handle:
          $ref: '#/components/schemas/Handle'
        name:
          type: string
        description:
          type: string
        channelType:
          type: string
        isPublic:
          type: boolean
        category:
          type: string
        tags:
          type: array
          items:
            type: string
        scheduleStatus:
          $ref: '#/components/schemas/ScheduleStatus'
        schedule_status:
          $ref: '#/components/schemas/ScheduleStatus'
          description: Snake-case alias of `scheduleStatus`; both are returned.
        watchUrl:
          type: string
          format: uri
          examples:
          - https://retro-arcade.my-tv-channel.com
        launchGaps:
          type: array
          description: What this channel still needs before it can go live, in plain language. Empty once the requirements are met.
          items:
            type: string
          examples:
          - - needs 2 more ready asset(s)
    ScheduleStatus:
      type: string
      enum:
      - inactive
      - pending
      - active
      - error
      description: '`active` means the channel is broadcasting.'
    AccountStatus:
      type: object
      properties:
        user:
          type: object
        tier:
          type: string
        hasSubscription:
          type: boolean
        subscription:
          type: object
        limits:
          type: object
          description: The real limits for this account. Read them here rather than hardcoding.
          properties:
            uploadMinutesPerWeek:
              type: number
            streamMinutesPerWeek:
              type: number
            liveStreaming:
              type: boolean
            manualSchedule:
              type: boolean
            publicChannel:
              type: boolean
            resolution:
              type: string
        quota:
          type: object
          description: Usage over a rolling 7-day window.
          properties:
            uploadUsedSeconds:
              type: number
            uploadLimitSeconds:
              type: number
            uploadRemainingSeconds:
              type: number
            streamUsedMinutes:
              type: number
            streamLimitMinutes:
              type: number
            streamRemainingMinutes:
              type: number
            window:
              type: string
        channels:
          type: array
          items:
            allOf:
            - $ref: '#/components/schemas/Channel'
            - type: object
              properties:
                readyAssetCount:
                  type: integer
                readyDurationSeconds:
                  type: number
                meetsLaunchRequirements:
                  type: boolean
        launchRequirements:
          type: object
          properties:
            minReadyAssets:
              type: integer
              examples:
              - 4
            minReadySeconds:
              type: integer
              examples:
              - 900
    Handle:
      type: string
      pattern: ^[a-z0-9-]{3,63}$
      description: 3–63 characters, lowercase letters, digits and hyphens. Becomes the channel's subdomain — `https://{handle}.my-tv-channel.com` — so treat it as permanent.
      examples:
      - retro-arcade
    ApiSuccess:
      type: object
      required:
      - success
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
        data: {}
  responses:
    Unauthorized:
      description: Missing, malformed or revoked API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    RateLimited:
      description: Rate limit or throttle exceeded — 1,000 requests/hour per key, and separately one schedule regeneration per channel per 5 minutes. Honour `Retry-After`; do not spin.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'An API key, `Authorization: Bearer mytv_sk_...`. Created by a signed-in human at

        <https://my-tv-channel.com/agent-keys/> or in the app under Profile → Agent Access.

        Requires an active subscription on any tier; the key inherits the owner''s tier limits.


        Key management — creating and revoking — is deliberately impossible with an API key,

        so an agent holding one cannot escalate to issuing more. **Never ask the owner for

        their Apple password or app login.** The key is all you need.

        '
externalDocs:
  description: Agent guide, with a worked path from nothing to a broadcasting channel. Read this if the spec alone leaves you unsure what order to call things in.
  url: https://my-tv-channel.com/api/mytvchannel/docs/AGENTS.md