YouTube Third Party Links API

The ThirdPartyLinks API from YouTube — 1 operation(s) for thirdpartylinks.

GitHub OpenAPI

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /youtube/v3/thirdPartyLinks List third-party links · List thirdPartyLinks #
Ask an LLM
“Which third-party accounts are linked to my channel?”
“Can I list only the links of a given type?”
Tell an agent
List third-party links of type {type}.
Show the link with linking token {linkingToken}.
PUT /youtube/v3/thirdPartyLinks Update a third-party link · Update thirdPartyLinks #
Ask an LLM
“How do I change the status of a third-party link?”
“Can I update an existing third-party linking token?”
Tell an agent
Update the third-party link with status {status}.
Change the linking token of third-party link {linking_token}.
DELETE /youtube/v3/thirdPartyLinks Unlink a third-party account · Delete thirdPartyLinks #
Ask an LLM
“How do I unlink a third-party account from my channel?”
“Can I delete a partner link by its linking token?”
Tell an agent destructive · confirm first
Delete the {type} third-party link with linking token {linkingToken}.
Unlink partner account {linkingToken} of type {type}.
POST /youtube/v3/thirdPartyLinks Link a third-party account · Insert thirdPartyLinks #
Ask an LLM
“How do I link my channel to a third-party account?”
“Can I create a new third-party link with a linking token?”
Tell an agent
Create a third-party link with linking token {linkingToken}.
Insert a new partner link using {linkingToken}.

Documentation

📖
Documentation
https://developers.google.com/youtube/v3/docs/activities/list
📖
GettingStarted
https://developers.google.com/youtube/v3/getting-started
📖
Authentication
https://developers.google.com/youtube/v3/guides/authentication
📖
Documentation
https://developers.google.com/youtube/v3/docs/channels/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/comments/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/commentThreads/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/playlists/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/playlistItems/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/search/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/subscriptions/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/videos/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/captions
📖
Documentation
https://developers.google.com/youtube/v3/docs/videoCategories
📖
Documentation
https://developers.google.com/youtube/v3/docs/i18nLanguages
📖
Documentation
https://developers.google.com/youtube/v3/docs/i18nRegions
📖
Documentation
https://developers.google.com/youtube/analytics
📖
GettingStarted
https://developers.google.com/youtube/reporting/guides/authorization
📖
APIReference
https://developers.google.com/youtube/analytics/reference
📖
Authentication
https://developers.google.com/youtube/reporting/guides/authorization
📖
Documentation
https://developers.google.com/youtube/reporting
📖
APIReference
https://developers.google.com/youtube/reporting/v1/reference/rest
📖
Documentation
https://developers.google.com/youtube/reporting/v1/reports
📖
GettingStarted
https://developers.google.com/youtube/v3/live/getting-started
📖
Documentation
https://developers.google.com/youtube/v3/live/docs
📖
APIReference
https://developers.google.com/youtube/v3/live/docs

Specifications

Code Examples

Schemas & Data

Other Resources

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/youtube:youtube-thirdpartylinks-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

youtube-thirdpartylinks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YouTube Data API v3 Third Party Links API
  version: v3
  description: Generated from Google's published Discovery document for YouTube Data API v3 (youtube v3, revision 20261111). 4 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://youtube.googleapis.com
tags:
- name: ThirdPartyLinks
paths:
  /youtube/v3/thirdPartyLinks:
    get:
      operationId: youtube.thirdPartyLinks.list
      summary: List thirdPartyLinks
      description: Retrieves a list of resources, possibly filtered.
      parameters:
      - name: externalChannelId
        in: query
        required: false
        description: Channel ID to which changes should be applied, for delegation.
        schema:
          type: string
      - name: linkingToken
        in: query
        required: false
        description: Get a third party link with the given linking token.
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter specifies the thirdPartyLink resource parts that the API response will include. Supported values are linkingToken, status, and snippet.
        schema:
          type: array
          items:
            type: string
      - name: type
        in: query
        required: false
        description: Get a third party link of the given type.
        schema:
          type: string
          enum:
          - linkUnspecified
          - channelToStoreLink
          - channelToAffiliateProgramLink
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThirdPartyLinkListResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - apiKey: []
      tags:
      - ThirdPartyLinks
    put:
      operationId: youtube.thirdPartyLinks.update
      summary: Update thirdPartyLinks
      description: Updates an existing resource.
      parameters:
      - name: externalChannelId
        in: query
        required: false
        description: Channel ID to which changes should be applied, for delegation.
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter specifies the thirdPartyLink resource parts that the API request and response will include. Supported values are linkingToken, status, and snippet.
        schema:
          type: array
          items:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyLink'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThirdPartyLink'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - apiKey: []
      tags:
      - ThirdPartyLinks
    delete:
      operationId: youtube.thirdPartyLinks.delete
      summary: Delete thirdPartyLinks
      description: Deletes a resource.
      parameters:
      - name: externalChannelId
        in: query
        required: false
        description: Channel ID to which changes should be applied, for delegation.
        schema:
          type: string
      - name: linkingToken
        in: query
        required: true
        description: Delete the partner links with the given linking token.
        schema:
          type: string
      - name: part
        in: query
        required: false
        description: Do not use. Required for compatibility.
        schema:
          type: array
          items:
            type: string
      - name: type
        in: query
        required: true
        description: Type of the link to be deleted.
        schema:
          enum:
          - linkUnspecified
          - channelToStoreLink
          - channelToAffiliateProgramLink
          type: string
      responses:
        '200':
          description: Successful response
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - apiKey: []
      tags:
      - ThirdPartyLinks
    post:
      operationId: youtube.thirdPartyLinks.insert
      summary: Insert thirdPartyLinks
      description: Inserts a new resource into this collection.
      parameters:
      - name: externalChannelId
        in: query
        required: false
        description: Channel ID to which changes should be applied, for delegation.
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter specifies the thirdPartyLink resource parts that the API request and response will include. Supported values are linkingToken, status, and snippet.
        schema:
          type: array
          items:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyLink'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThirdPartyLink'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - apiKey: []
      tags:
      - ThirdPartyLinks
components:
  schemas:
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    ChannelToStoreLinkDetails:
      type: object
      properties:
        storeName:
          type: string
          description: Name of the store.
        merchantAffiliateProgramDetails:
          $ref: '#/components/schemas/ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails'
          description: Information specific to merchant affiliate program (read-only).
        storeUrl:
          description: Landing page of the store.
          type: string
        billingDetails:
          $ref: '#/components/schemas/ChannelToStoreLinkDetailsBillingDetails'
          description: Information specific to billing (read-only).
        merchantId:
          type: string
          format: uint64
          description: Google Merchant Center id of the store.
      description: Information specific to a store on a merchandising platform linked to a YouTube channel.
    ThirdPartyLinkStatus:
      type: object
      properties:
        linkStatus:
          enum:
          - unknown
          - failed
          - pending
          - linked
          type: string
      description: The third-party link status object contains information about the status of the link.
    ChannelToAffiliateProgramLinkDetails:
      properties:
        statusUpdateReason:
          description: Optional. Reason for the last update of the affiliate program status.
          type: string
        programStatus:
          enum:
          - affiliateProgramStatusUnspecified
          - active
          - inactive
          description: Required. Affiliate program status.
          type: string
        merchantId:
          format: uint64
          description: Required. Google Merchant Center ID of the partner.
          type: string
        statusUpdateTime:
          description: Optional. Timestamp when the affiliate program status was last updated.
          type: string
          format: google-datetime
      type: object
      description: Information specific to a creator in an affiliate program linked to a YouTube channel.
    ThirdPartyLinkSnippet:
      description: Basic information about a third party account link, including its type and type-specific information.
      properties:
        channelToAffiliateProgramLink:
          $ref: '#/components/schemas/ChannelToAffiliateProgramLinkDetails'
          description: Information specific to a link between a channel and an affiliate program of a partner.
        type:
          enum:
          - linkUnspecified
          - channelToStoreLink
          - channelToAffiliateProgramLink
          description: Type of the link named after the entities that are being linked.
          type: string
        channelToStoreLink:
          $ref: '#/components/schemas/ChannelToStoreLinkDetails'
          description: Information specific to a link between a channel and a store on a merchandising platform.
      type: object
    ChannelToStoreLinkDetailsBillingDetails:
      properties:
        billingStatus:
          description: The current billing profile status.
          type: string
          enum:
          - billingStatusUnspecified
          - billingStatusPending
          - billingStatusActive
          - billingStatusInactive
      description: Information specific to billing.
      type: object
    ThirdPartyLinkListResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyLink'
        kind:
          type: string
          default: youtube#thirdPartyLinkListResponse
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#thirdPartyLinkListResponse".'
        etag:
          description: Etag of this resource.
          type: string
    ThirdPartyLink:
      description: A *third party account link* resource represents a link between a YouTube account or a channel and an account on a third-party service.
      properties:
        kind:
          default: youtube#thirdPartyLink
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#thirdPartyLink".'
          type: string
        etag:
          description: Etag of this resource
          type: string
        status:
          $ref: '#/components/schemas/ThirdPartyLinkStatus'
          description: The status object contains information about the status of the link.
        linkingToken:
          description: The linking_token identifies a YouTube account and channel with which the third party account is linked.
          type: string
        snippet:
          $ref: '#/components/schemas/ThirdPartyLinkSnippet'
          description: The snippet object contains basic details about the third- party account link.
      type: object
    ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails:
      description: Information specific to merchant affiliate program.
      properties:
        status:
          enum:
          - merchantAffiliateProgramStatusUnspecified
          - merchantAffiliateProgramStatusEligible
          - merchantAffiliateProgramStatusActive
          - merchantAffiliateProgramStatusPaused
          description: The current merchant affiliate program status.
          type: string
      type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/youtube: Manage your YouTube account
            https://www.googleapis.com/auth/youtubepartner: View and manage your assets and associated content on YouTube
            https://www.googleapis.com/auth/youtube.channel-memberships.creator: See a list of your current active channel members, their current level, and when they became a member
            https://www.googleapis.com/auth/youtubepartner-channel-audit: View private information of your YouTube channel relevant during the audit process with a YouTube partner
            https://www.googleapis.com/auth/youtube.force-ssl: See, edit, and permanently delete your YouTube videos, ratings, comments and captions
            https://www.googleapis.com/auth/youtube.readonly: View your YouTube account
            https://www.googleapis.com/auth/youtube.upload: Manage your YouTube videos
externalDocs:
  url: https://developers.google.com/youtube/
x-provenance:
  method: harvested
  publisher: Google
  source: https://youtube.googleapis.com/$discovery/rest?version=v3
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261111)