TubeGrade Ext API

The Ext API from TubeGrade, for ext.

GitHub OpenAPI

Operations 10

POST /ext/collect Ext Collect #
POST /ext/collect-batch Ext Collect Batch #
POST /ext/transcript Ext Transcript #
POST /ext/my-channel-detected Ext My Channel Detected #
GET /ext/verify-pro Ext Verify Pro #
POST /ext/lookup Ext Lookup #
POST /ext/channel-lookup Ext Channel Lookup #
GET /ext/similar-channels/{channel_id} Ext Similar Channels #
POST /ext/folders Ext Folders #
POST /ext/bookmark Ext Bookmark #

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-ext-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-ext-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Ext API
  version: 0.1.0
tags:
- name: Ext
paths:
  /ext/collect:
    post:
      summary: Ext Collect
      operationId: ext_collect_ext_collect_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtCollectBatchRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ext Collect Ext Collect Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ext
  /ext/collect-batch:
    post:
      summary: Ext Collect Batch
      operationId: ext_collect_batch_ext_collect_batch_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtCollectBatchRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ext Collect Batch Ext Collect Batch Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ext
  /ext/transcript:
    post:
      summary: Ext Transcript
      description: 'Fetch transcript URL for extension users (Bearer JWT auth).


        Pro-only: transcript export from the extension''s channel page is a

        Pro feature, enforced server-side so it can''t be unlocked by editing

        the extension.


        Rate limit: each transcript is one proxy-backed scrape (real cost), so

        even though the extension caps a batch at 100 client-side, we bound the

        per-user throughput here at 200/minute. That clears a legitimate

        100-video export comfortably (it runs at concurrency 3) but stops a

        bypassed-UI loop from draining the shared transcript proxy. The limiter

        keys off the Bearer token (rate_limit._get_user_key hashes the auth

        header), so the budget is per signed-in session, not per IP.'
      operationId: ext_transcript_ext_transcript_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtTranscriptRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ext Transcript Ext Transcript Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ext
  /ext/my-channel-detected:
    post:
      summary: Ext My Channel Detected
      description: 'Record which YouTube channel a signed-in user runs.


        Owner-facing observability only — the extension detects the channel

        from the user''s logged-in YouTube/Studio session and posts it here.

        Upserts into user_youtube_identity (history pool) keyed by

        (user_id, channel_id); the email is denormalized from the JWT so the

        table reads `email -> channel` directly. Not a user-facing feature and

        deliberately separate from the manual `/my-channel` link flow.'
      operationId: ext_my_channel_detected_ext_my_channel_detected_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtMyChannelDetectedRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ext My Channel Detected Ext My Channel Detected Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ext
  /ext/verify-pro:
    get:
      summary: Ext Verify Pro
      description: 'Tiny gate used by the thumbnail-analysis service to authorize the

        Pro-only CLIP `/api/similar` feature. The Node service forwards the

        extension''s Bearer JWT here; this verifies it (require_extension_user)

        and returns the plan so JWKS/plan logic stays in one place (Python).'
      operationId: ext_verify_pro_ext_verify_pro_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ext Verify Pro Ext Verify Pro Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ext
  /ext/lookup:
    post:
      summary: Ext Lookup
      description: Batch lookup channels from DB. Returns cached data for known channels.
      operationId: ext_lookup_ext_lookup_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtChannelLookupRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ext Lookup Ext Lookup Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ext
  /ext/channel-lookup:
    post:
      summary: Ext Channel Lookup
      operationId: ext_channel_lookup_ext_channel_lookup_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtChannelLookupRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ext Channel Lookup Ext Channel Lookup Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ext
  /ext/similar-channels/{channel_id}:
    get:
      summary: Ext Similar Channels
      description: 'Similar channels for the extension''s channel-page "Similar" button —

        the same topic-fingerprint matches the public channel pages show (and

        MCP''s tubegrade_similar_channels sells), up to 12. Read-only: stored

        rows and fingerprints only, never a scrape, so the per-user limit is

        just a bound on DB reads.


        `status` tells the popup why a list is empty: "unknown" (channel not

        stored), "not_fingerprinted" (fingerprints are built weekly) or "ok"

        (possibly with no close matches).'
      operationId: ext_similar_channels_ext_similar_channels__channel_id__get
      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
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ext Similar Channels Ext Similar Channels  Channel Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ext
  /ext/folders:
    post:
      summary: Ext Folders
      operationId: ext_folders_ext_folders_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtFoldersRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ext Folders Ext Folders Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ext
  /ext/bookmark:
    post:
      summary: Ext Bookmark
      operationId: ext_bookmark_ext_bookmark_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtBookmarkRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ext Bookmark Ext Bookmark Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Ext
components:
  schemas:
    ExtBookmarkRequest:
      properties:
        action:
          type: string
          title: Action
        folder_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Folder Id
        video_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Video Id
        channel_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Channel Id
        limit:
          anyOf:
          - type: integer
          - type: 'null'
          title: Limit
        video_ids:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Video Ids
        to_folder_id:
          anyOf:
          - type: string
          - type: 'null'
          title: To Folder Id
      type: object
      required:
      - action
      title: ExtBookmarkRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExtChannelLookupRequest:
      properties:
        refs:
          items:
            type: string
          type: array
          title: Refs
      type: object
      required:
      - refs
      title: ExtChannelLookupRequest
    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
    ExtTranscriptRequest:
      properties:
        videoId:
          type: string
          title: Videoid
      type: object
      required:
      - videoId
      title: ExtTranscriptRequest
    ExtMyChannelDetectedRequest:
      properties:
        channelId:
          type: string
          title: Channelid
        handle:
          anyOf:
          - type: string
          - type: 'null'
          title: Handle
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        subscribers:
          anyOf:
          - type: string
          - type: 'null'
          title: Subscribers
      type: object
      required:
      - channelId
      title: ExtMyChannelDetectedRequest
    ExtCollectBatchRequest:
      properties:
        channels:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Channels
          default: []
        videos:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Videos
          default: []
        client:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Client
      type: object
      title: ExtCollectBatchRequest
    ExtFoldersRequest:
      properties:
        action:
          type: string
          title: Action
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        folder_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Folder Id
        enabled:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Enabled
      type: object
      required:
      - action
      title: ExtFoldersRequest