Youtube · Capability

YouTube Data API v3 — Subscriptions

YouTube Data API v3 — Subscriptions. 3 operations. Lead operation: Youtube List Subscriptions. Self-contained Naftiko capability covering one Youtube business surface.

Run with Naftiko YoutubeSubscriptions

What You Can Do

GET
Youtubesubscriptionslist — Youtube List Subscriptions
/v1/subscriptions
POST
Youtubesubscriptionsinsert — Youtube Subscribe to a Channel
/v1/subscriptions
DELETE
Youtubesubscriptionsdelete — Youtube Unsubscribe From a Channel
/v1/subscriptions

MCP Tools

youtube-list-subscriptions

Youtube List Subscriptions

read-only idempotent
youtube-subscribe-channel

Youtube Subscribe to a Channel

youtube-unsubscribe-channel

Youtube Unsubscribe From a Channel

idempotent

Capability Spec

data-subscriptions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: YouTube Data API v3 — Subscriptions
  description: 'YouTube Data API v3 — Subscriptions. 3 operations. Lead operation: Youtube List Subscriptions. Self-contained
    Naftiko capability covering one Youtube business surface.'
  tags:
  - Youtube
  - Subscriptions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    YOUTUBE_API_KEY: YOUTUBE_API_KEY
capability:
  consumes:
  - type: http
    namespace: data-subscriptions
    baseUri: https://www.googleapis.com/youtube/v3
    description: YouTube Data API v3 — Subscriptions business capability. Self-contained, no shared references.
    resources:
    - name: subscriptions
      path: /subscriptions
      operations:
      - name: youtubesubscriptionslist
        method: GET
        description: Youtube List Subscriptions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: query
          type: string
          description: Comma-separated list of YouTube subscription IDs for the resources being retrieved.
        - name: mine
          in: query
          type: boolean
          description: Set this parameter to true to retrieve the subscriptions of the authenticated user.
        - name: channelId
          in: query
          type: string
          description: Retrieves subscriptions for the channel with the specified YouTube channel ID.
      - name: youtubesubscriptionsinsert
        method: POST
        description: Youtube Subscribe to a Channel
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: youtubesubscriptionsdelete
        method: DELETE
        description: Youtube Unsubscribe From a Channel
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: query
          type: string
          description: The ID of the subscription to delete.
          required: true
    authentication:
      type: bearer
      token: '{{env.YOUTUBE_API_KEY}}'
  exposes:
  - type: rest
    namespace: data-subscriptions-rest
    port: 8080
    description: REST adapter for YouTube Data API v3 — Subscriptions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/subscriptions
      name: subscriptions
      description: REST surface for subscriptions.
      operations:
      - method: GET
        name: youtubesubscriptionslist
        description: Youtube List Subscriptions
        call: data-subscriptions.youtubesubscriptionslist
        with:
          id: rest.id
          mine: rest.mine
          channelId: rest.channelId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: youtubesubscriptionsinsert
        description: Youtube Subscribe to a Channel
        call: data-subscriptions.youtubesubscriptionsinsert
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: youtubesubscriptionsdelete
        description: Youtube Unsubscribe From a Channel
        call: data-subscriptions.youtubesubscriptionsdelete
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: data-subscriptions-mcp
    port: 9090
    transport: http
    description: MCP adapter for YouTube Data API v3 — Subscriptions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: youtube-list-subscriptions
      description: Youtube List Subscriptions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-subscriptions.youtubesubscriptionslist
      with:
        id: tools.id
        mine: tools.mine
        channelId: tools.channelId
      outputParameters:
      - type: object
        mapping: $.
    - name: youtube-subscribe-channel
      description: Youtube Subscribe to a Channel
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: data-subscriptions.youtubesubscriptionsinsert
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: youtube-unsubscribe-channel
      description: Youtube Unsubscribe From a Channel
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: data-subscriptions.youtubesubscriptionsdelete
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.