TubeGrade Competitors API

The competitors API from TubeGrade, for competitors.

GitHub OpenAPI

Operations 6

GET /competitors List Competitors #
POST /competitors Add Competitor #
DELETE /competitors/{channel_id} Remove Competitor #
GET /competitors/feed Competitor Feed #
GET /competitors/graph Competitor Graph #
GET /competitors/{channel_id}/videos Competitor Channel Videos #

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/tubegrade-com:tubegrade-com-competitors-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

tubegrade-com-competitors-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Competitors API
  version: 0.1.0
tags:
- name: competitors
paths:
  /competitors:
    get:
      tags:
      - competitors
      summary: List Competitors
      operationId: list_competitors_competitors_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: __Host-auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Auth Token'
      - name: auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Token
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response List Competitors Competitors Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - competitors
      summary: Add Competitor
      operationId: add_competitor_competitors_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: __Host-auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Auth Token'
      - name: auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Token
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddCompetitorRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Add Competitor Competitors Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /competitors/{channel_id}:
    delete:
      tags:
      - competitors
      summary: Remove Competitor
      operationId: remove_competitor_competitors__channel_id__delete
      parameters:
      - name: channel_id
        in: path
        required: true
        schema:
          type: string
          title: Channel Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: __Host-auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Auth Token'
      - name: auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Token
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Remove Competitor Competitors  Channel Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /competitors/feed:
    get:
      tags:
      - competitors
      summary: Competitor Feed
      description: 'Merged latest-uploads feed across all tracked competitors — a pure

        read of the canonical videos table, populated by the daily job.'
      operationId: competitor_feed_competitors_feed_get
      parameters:
      - name: outliers_only
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Outliers Only
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: __Host-auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Auth Token'
      - name: auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Token
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Competitor Feed Competitors Feed Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /competitors/graph:
    get:
      tags:
      - competitors
      summary: Competitor Graph
      description: 'Bucketed subscriber/view series for ALL tracked channels in one

        query (growth.py bucketing shape, multi-channel). Both metrics are

        returned per point; the frontend toggles between them.


        Windows match the snapshot thinning tiers (scripts/prune_snapshots.py:

        daily kept ≤7d, weekly ≤30d, monthly ≤365d) — asking for daily over a

        longer window would just return the thinned points anyway.'
      operationId: competitor_graph_competitors_graph_get
      parameters:
      - name: period
        in: query
        required: false
        schema:
          type: string
          default: weekly
          title: Period
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: __Host-auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Auth Token'
      - name: auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Token
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Competitor Graph Competitors Graph Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /competitors/{channel_id}/videos:
    get:
      tags:
      - competitors
      summary: Competitor Channel Videos
      description: 'One competitor''s recent videos (per-channel tab) — must be on the

        caller''s watchlist so this can''t be used as a generic video API.'
      operationId: competitor_channel_videos_competitors__channel_id__videos_get
      parameters:
      - name: channel_id
        in: path
        required: true
        schema:
          type: string
          title: Channel Id
      - name: outliers_only
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Outliers Only
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: __Host-auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Auth Token'
      - name: auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Token
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Competitor Channel Videos Competitors  Channel Id  Videos Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AddCompetitorRequest:
      properties:
        channel:
          type: string
          title: Channel
      type: object
      required:
      - channel
      title: AddCompetitorRequest
    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