YouTube Transcript API Playlists API

Videos in a public playlist.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /youtube/playlist/videos Extract Playlist 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/youtubetranscriptapi-com:youtubetranscriptapi-com-playlists-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

youtubetranscriptapi-com-playlists-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YouTubeTranscriptAPI REST Playlists API
  version: 2.0.0
  summary: Fetch clean YouTube transcripts without 429 errors. Search, browse channels, and extract playlists through one REST API.
  description: 'Fetch YouTube transcripts, search YouTube, and list channel and playlist videos as JSON.


    **Authentication.** Send an API key on every request: `Authorization: Bearer tk_live_…`. Create keys at https://youtubetranscriptapi.com/dashboard/keys.


    **Credits.** Each operation''s price is in its description and in `x-credit-cost`. Only successful (200) responses are charged; errors and rate-limited requests never are. Free operations still need a balance of at least 1 credit. Without enough credits you get 402 with a link to billing. Plans: https://youtubetranscriptapi.com/pricing.


    **Errors.** Error bodies are `{ "detail": "…", "code": "…" }`. On 402 (`insufficient_credits`) `detail` is an object with the shortfall, a billing link and the plans; accounts without a plan also get `checkout_url`, a checkout that opens without signing in.


    **Balance.** Successful responses carry X-Credits-Charged and X-Credits-Remaining. GET /account/whoami returns the plan and balance for free.


    **Rate limits.** 300 requests per minute per API key by default, on a sliding one-minute window. Responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; 429, 408 and 503 add Retry-After.


    **Caching.** X-Cache-Status is HIT when a stored result was served and MISS otherwise. Stored responses cost the same as fresh ones.'
  termsOfService: https://youtubetranscriptapi.com/legal/terms
  contact:
    name: YouTubeTranscriptAPI
    url: https://youtubetranscriptapi.com/contact
    email: hello@youtubetranscriptapi.com
servers:
- url: https://youtubetranscriptapi.com/api/v2
security:
- bearerAuth: []
tags:
- name: Playlists
  description: Videos in a public playlist.
  externalDocs:
    url: https://youtubetranscriptapi.com/docs/api/playlist
paths:
  /youtube/playlist/videos:
    get:
      operationId: listPlaylistVideos
      summary: Extract Playlist Videos
      description: Up to 100 videos from any public YouTube playlist. Only the first page is served for now. continuation_token is always null; has_more says whether more videos exist. Costs 20 credits per successful (200) response; errors are never charged.
      tags:
      - Playlists
      externalDocs:
        url: https://youtubetranscriptapi.com/docs/api/playlist
      x-credit-cost: 20
      parameters:
      - name: playlist
        in: query
        required: true
        description: Playlist ID (PL…, UU…, LL…, FL…, OL…, RD…, UL… or PU…) or any URL with a list= parameter. A channel's uploads playlist (UU…) is listed like /youtube/channel/videos.
        schema:
          type: string
          minLength: 1
        example: PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf
      - $ref: '#/components/parameters/Continuation'
      responses:
        '200':
          description: Videos in playlist order.
          headers:
            X-Cache-Status:
              $ref: '#/components/headers/XCacheStatus'
            X-Credits-Charged:
              $ref: '#/components/headers/XCreditsCharged'
            X-Credits-Remaining:
              $ref: '#/components/headers/XCreditsRemaining'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Listing'
              examples:
                playlist:
                  value:
                    results:
                    - videoId: abc123xyz00
                      title: Playlist Video
                      channelId: UCAuUUnT6oDeKwE6v1NGQxug
                      channelTitle: TED
                      channelHandle: '@TED'
                      lengthText: '10:05'
                      viewCountText: 1.5M views 6 months ago
                      thumbnails:
                      - url: https://i.ytimg.com/vi/abc123xyz00/default.jpg
                        width: 120
                        height: 90
                      - url: https://i.ytimg.com/vi/abc123xyz00/mqdefault.jpg
                        width: 320
                        height: 180
                      - url: https://i.ytimg.com/vi/abc123xyz00/hqdefault.jpg
                        width: 480
                        height: 360
                      index: '0'
                    playlist_info:
                      title: Best Tech of 2025
                      numVideos: 47 videos
                      description: My picks for the best tech this year
                      ownerName: TED
                      viewCount: null
                    continuation_token: null
                    has_more: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Playlist not found or has no public videos (`playlist_not_found`); `channel_not_found` for a channel uploads playlist (UU…).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                playlist_not_found:
                  value:
                    detail: Playlist not found or has no public videos
                    code: playlist_not_found
        '408':
          $ref: '#/components/responses/Timeout'
        '422':
          description: A parameter is missing or invalid (`validation_error`), or a later page was requested (`continuation_unavailable`). Not charged.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_playlist:
                  value:
                    detail: 'Missing required parameter: playlist'
                    code: validation_error
                invalid_playlist:
                  value:
                    detail: playlist did not resolve to a valid playlist URL or ID
                    code: validation_error
                continuation_unavailable:
                  value:
                    detail: Only the first page of channel and playlist listings is available right now. Continuation requests are not served and were not charged.
                    code: continuation_unavailable
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  responses:
    PaymentRequired:
      description: Not enough credits for this call. detail says why and links to billing. Not charged.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/XRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/XRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/XRateLimitReset'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PaymentRequiredError'
          examples:
            insufficient_credits:
              value:
                detail:
                  message: This call needs 20 credits; you have 5. Choose a plan to keep going.
                  reason: insufficient_credits
                  required: 20
                  available: 5
                  action_label: Choose a plan
                  action_url: https://youtubetranscriptapi.com/dashboard/billing?from=402&plan=annual
                  plans:
                    monthly:
                      price_usd: 3
                      interval: month
                      credits_per_interval: 1000
                      topup_usd_per_1k: 2.5
                      url: https://youtubetranscriptapi.com/dashboard/billing?plan=monthly
                    annual:
                      price_usd: 30
                      interval: year
                      credits_per_interval: 15000
                      topup_usd_per_1k: 2
                      refund: Refundable within 14 days if under 1,000 credits are used
                      url: https://youtubetranscriptapi.com/dashboard/billing?plan=annual
                code: insufficient_credits
            free_credits_used:
              summary: Free account, with the no-login checkout link
              value:
                detail:
                  message: 'Your 100 free credits are used up. Annual: 15,000 credits for $30 ($2.5/mo). Monthly: 1,000 credits/mo for $3.'
                  reason: insufficient_credits
                  required: 1
                  available: 0
                  action_label: Choose a plan
                  action_url: https://youtubetranscriptapi.com/dashboard/billing?from=402&plan=annual
                  checkout_url: https://youtubetranscriptapi.com/u/eyJ1c2VyX2lkIjoi4oCmIn0.c2lnbmF0dXJl
                  checkout_plan: annual
                  plans:
                    monthly:
                      price_usd: 3
                      interval: month
                      credits_per_interval: 1000
                      topup_usd_per_1k: 2.5
                      url: https://youtubetranscriptapi.com/dashboard/billing?plan=monthly
                    annual:
                      price_usd: 30
                      interval: year
                      credits_per_interval: 15000
                      topup_usd_per_1k: 2
                      refund: Refundable within 14 days if under 1,000 credits are used
                      url: https://youtubetranscriptapi.com/dashboard/billing?plan=annual
                code: insufficient_credits
    Unauthorized:
      description: The bearer token is missing (`missing_auth`) or invalid or revoked (`invalid_auth`).
      headers:
        WWW-Authenticate:
          $ref: '#/components/headers/WWWAuthenticate'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing_auth:
              value:
                detail: Missing bearer token
                code: missing_auth
            invalid_auth:
              value:
                detail: Invalid or revoked API key
                code: invalid_auth
    Timeout:
      description: The upstream fetch timed out (`upstream_timeout`). Safe to retry after Retry-After seconds. Not charged.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/XRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/XRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/XRateLimitReset'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            upstream_timeout:
              value:
                detail: Upstream timed out; retry in a few seconds
                code: upstream_timeout
    Forbidden:
      description: API access for this account is paused while a payment dispute is reviewed (`account_frozen`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            account_frozen:
              value:
                detail: API access for this account is paused while a payment dispute is reviewed. Contact support.
                code: account_frozen
    Unavailable:
      description: 'Temporary failure: `upstream_error`, `internal` (the account check failed) or `config_missing`. Safe to retry after Retry-After seconds. Not charged.'
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            upstream_error:
              value:
                detail: Upstream unavailable; retry in a few seconds
                code: upstream_error
            internal:
              value:
                detail: Could not check your account right now; retry in a few seconds
                code: internal
    RateLimited:
      description: Rate limit exceeded (`rate_limited`). Wait Retry-After seconds, until the current one-minute window ends. Not charged.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/XRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/XRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/XRateLimitReset'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            rate_limited:
              value:
                detail: Rate limit exceeded
                code: rate_limited
  headers:
    XCreditsCharged:
      description: Credits this call cost. 0 for free operations. Sent on 200 responses only; errors are never charged.
      schema:
        type: integer
        minimum: 0
    XCacheStatus:
      description: HIT when a stored result was served (transcripts, resolved channel IDs), otherwise MISS. Same price either way.
      schema:
        type: string
        enum:
        - HIT
        - MISS
    RetryAfter:
      description: 'Seconds to wait before retrying: until the window ends on 429, 3 on 408 and 503.'
      schema:
        type: integer
        minimum: 1
    XCreditsRemaining:
      description: Spendable credits left after this call. Sent on 200 responses; left out rather than estimated when the balance can't be read.
      schema:
        type: integer
        minimum: 0
    XRateLimitRemaining:
      description: Requests left in the current sliding one-minute window.
      schema:
        type: integer
        minimum: 0
    XRequestId:
      description: Request ID for support. Echoes the X-Request-Id you sent, otherwise generated.
      schema:
        type: string
    XRateLimitReset:
      description: Unix time, in seconds, when the current minute window ends.
      schema:
        type: integer
    WWWAuthenticate:
      description: Always Bearer.
      schema:
        type: string
        enum:
        - Bearer
    XRateLimitLimit:
      description: Requests allowed per minute for this API key.
      schema:
        type: integer
  schemas:
    Error:
      type: object
      required:
      - detail
      - code
      properties:
        detail:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: 'Machine-readable code: validation_error, continuation_unavailable, missing_auth, invalid_auth, account_frozen, transcript_not_found, channel_not_found, playlist_not_found, upstream_timeout, rate_limited, upstream_error, config_missing or internal.'
    ListingVideo:
      type: object
      required:
      - videoId
      - title
      - channelId
      - channelTitle
      - channelHandle
      - lengthText
      - viewCountText
      - thumbnails
      - index
      properties:
        videoId:
          type: string
          description: 11-character YouTube video ID.
        title:
          type:
          - string
          - 'null'
          description: Video title.
        channelId:
          type:
          - string
          - 'null'
          description: UC… channel ID.
        channelTitle:
          type:
          - string
          - 'null'
          description: Channel name.
        channelHandle:
          type:
          - string
          - 'null'
          description: Channel @handle, e.g. @TED.
        lengthText:
          type:
          - string
          - 'null'
          description: Duration as YouTube shows it, e.g. 15:22.
        viewCountText:
          type:
          - string
          - 'null'
          description: View count and age together, e.g. 3.2M views 2 weeks ago.
        thumbnails:
          type: array
          items:
            $ref: '#/components/schemas/Thumbnail'
        index:
          type: string
          description: Zero-based position in the listing, as a string.
    Thumbnail:
      type: object
      required:
      - url
      - width
      - height
      properties:
        url:
          type: string
          format: uri
        width:
          type: integer
        height:
          type: integer
    PlanOffer:
      type: object
      required:
      - price_usd
      - interval
      - credits_per_interval
      - topup_usd_per_1k
      - url
      properties:
        price_usd:
          type: number
          description: Price per interval in US dollars.
        interval:
          type: string
          enum:
          - month
          - year
        credits_per_interval:
          type: integer
          description: 'Credits granted each interval: monthly each month, annual up front each year.'
        topup_usd_per_1k:
          type: number
          description: Top-up price per 1,000 credits on this plan.
        refund:
          type: string
          description: Refund terms, where the plan has them.
        url:
          type: string
          format: uri
          description: Billing page with this plan selected.
    Listing:
      type: object
      required:
      - results
      - playlist_info
      - continuation_token
      - has_more
      properties:
        results:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/ListingVideo'
        playlist_info:
          $ref: '#/components/schemas/PlaylistInfo'
        continuation_token:
          type:
          - string
          - 'null'
          description: 'Always null for now: only the first page is served.'
        has_more:
          type: boolean
          description: Whether there are more videos than this page holds.
    PaymentRequiredError:
      type: object
      required:
      - detail
      - code
      properties:
        detail:
          type: object
          required:
          - reason
          - required
          - available
          - message
          - action_label
          - action_url
          - plans
          properties:
            reason:
              type: string
              enum:
              - insufficient_credits
            required:
              type: integer
              description: 'Credits the call needs: its cost, or 1 for a free operation.'
            available:
              type: integer
              description: Spendable credits on the account.
            message:
              type: string
              description: The shortfall in numbers ("This call needs 20 credits; you have 5."), or that the credits have run out, then whether you need a plan, a top-up or an updated payment method.
            action_label:
              type: string
              description: Label for the suggested next step.
            action_url:
              type: string
              format: uri
              description: Billing page for the suggested next step.
            alt_action_label:
              type: string
              description: 'Monthly plans only: a second option, the upgrade to Annual.'
            alt_action_url:
              type: string
              format: uri
              description: Where alt_action_label leads.
            checkout_url:
              type: string
              format: uri
              description: 'Accounts without a plan only: a checkout for checkout_plan that opens without signing in, so it works from any browser, including the one inside an AI app. Valid for 7 days and only for this account. Absent for active or paused plans, which use action_url.'
            checkout_plan:
              type: string
              enum:
              - monthly
              - annual
              description: The plan checkout_url buys. Present whenever checkout_url is.
            plans:
              type: object
              description: Current price and credits of each plan.
              required:
              - monthly
              - annual
              properties:
                monthly:
                  $ref: '#/components/schemas/PlanOffer'
                annual:
                  $ref: '#/components/schemas/PlanOffer'
        code:
          type: string
          enum:
          - insufficient_credits
    PlaylistInfo:
      type: object
      required:
      - title
      - numVideos
      - ownerName
      - viewCount
      properties:
        title:
          type:
          - string
          - 'null'
          description: Playlist title; "Uploads from <channel>" for channel uploads.
        numVideos:
          type:
          - string
          - 'null'
          description: Video count as YouTube shows it, e.g. 47 videos. Null for channel uploads.
        description:
          type:
          - string
          - 'null'
          description: Playlist description. Absent for channel uploads.
        ownerName:
          type:
          - string
          - 'null'
          description: Playlist owner or channel name.
        viewCount:
          type:
          - string
          - 'null'
          description: Not provided yet; always null.
  parameters:
    Continuation:
      name: continuation
      in: query
      required: false
      description: 'Reserved for paging. Not served yet: a request with this parameter gets 422 continuation_unavailable, is not charged and needs no balance.'
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key (tk_live_…)
      description: 'API key from the dashboard, sent as `Authorization: Bearer tk_live_…`.'
externalDocs:
  description: API reference
  url: https://youtubetranscriptapi.com/docs/api