YouTube Transcript API Account API

Plan and credit balance.

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 /account/whoami Plan and balance #

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-account-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-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YouTubeTranscriptAPI REST Account 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: Account
  description: Plan and credit balance.
  externalDocs:
    url: https://youtubetranscriptapi.com/docs/api#account
paths:
  /account/whoami:
    get:
      operationId: getAccount
      summary: Plan and balance
      description: The plan and credit balance of the account that owns the key. Free (0 credits) and answers at a zero balance too.
      tags:
      - Account
      externalDocs:
        url: https://youtubetranscriptapi.com/docs/api#account
      x-credit-cost: 0
      responses:
        '200':
          description: The account's plan and balance.
          headers:
            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/Account'
              examples:
                free:
                  value:
                    user_id: 6f1c0d3e-0000-4000-8000-000000000000
                    plan: free
                    plan_status: null
                    credits:
                      spendable: 87
                      plan: 0
                      topup: 87
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  headers:
    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
    RetryAfter:
      description: 'Seconds to wait before retrying: until the window ends on 429, 3 on 408 and 503.'
      schema:
        type: integer
        minimum: 1
    XCreditsCharged:
      description: Credits this call cost. 0 for free operations. Sent on 200 responses only; errors are never charged.
      schema:
        type: integer
        minimum: 0
  schemas:
    Account:
      type: object
      required:
      - user_id
      - plan
      - plan_status
      - credits
      properties:
        user_id:
          type: string
          description: Account ID.
        plan:
          type: string
          enum:
          - free
          - monthly
          - annual
        plan_status:
          type:
          - string
          - 'null'
          description: Subscription status (active, on_hold, past_due, cancelled, expired…); null without a subscription.
        credits:
          type: object
          required:
          - spendable
          - plan
          - topup
          properties:
            spendable:
              type: integer
              description: 'What the API can spend now: top-up credits, plus plan credits while the plan allows them.'
            plan:
              type: integer
              description: Plan credits, including any paused by a failed renewal.
            topup:
              type: integer
              description: Free and top-up credits. They never expire.
    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.'
  responses:
    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
    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
    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
  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