# YouTube — Transcript

Get YouTube Transcript data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by ScrapeCreators, pass parameters such as language, url, and retrieve structured data including returned credits charged field, returned credits remaining field, returned language field, returned success field, and text for content research and account lookup, and integration reference.

Documentation: https://openany.si/youtube/youtube-scrapecreators-transcript/0b3a8c90-28e0-4d46-8db4-d2150ce0061e/
API ID: 0b3a8c90-28e0-4d46-8db4-d2150ce0061e
Provider: scrapecreators
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/youtube/video/transcript
Page update time: 2026-12-03T02:50:47.554Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00188 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:50:46.584Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## YouTube — Transcript API

Retrieve publicly available captions, subtitles, or transcripts from a YouTube video or Short. Provide url in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `credits_charged` | Returned credits charged field |
| `credits_remaining` | Returned credits remaining field |
| `language` | Returned language field |
| `success` | Returned success field |
| `transcript[].text` | Text |
| `transcript[].endMs` | Returned end ms field |
| `transcript[].startMs` | Returned start ms field |
| `transcript[].startTimeText` | Returned start time text field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "YouTube — Transcript request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "YouTube video or short URL"
        },
        "language": {
          "type": "string",
          "description": "Language code, ie 'en', 'es', 'fr' or 'en-US'. Overrides the default track selection unless original_audio=true. If omitted, prefers captions matching the original spoken language when YouTube identifies the original audio. If that metadata is unavailable or ambiguous, prefers an auto-generated caption, otherwise the first caption track. If the requested or identified original language has no matching captions, the transcript will be null and no credits are charged."
        },
        "original_audio": {
          "type": "boolean",
          "description": "Set to true to return captions only in the original spoken language identified by YouTube. Takes precedence over language. If the original audio cannot be reliably identified or has no matching captions, transcript, transcript_only_text, and language are null and no credits are charged. No extra lookup or credit cost; a returned transcript costs the usual 1 credit. Omit or set to false for the existing default selection."
        },
        "cache_max_age": {
          "type": "string",
          "description": "If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with \"cached\": true and a \"cached_at\" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.](https://docs.scrapecreators.com/caching)",
          "enum": [
            "1d",
            "3d",
            "7d",
            "14d",
            "30d"
          ]
        }
      },
      "required": [
        "url"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "language": {
      "type": "string"
    },
    "success": {
      "type": "boolean"
    },
    "transcript": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "endMs": {
            "type": "string"
          },
          "startMs": {
            "type": "string"
          },
          "startTimeText": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      }
    },
    "transcript_only_text": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "videoId": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/youtube/video/transcript?language=en&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbjVIDXPP7Uk' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "credits_charged": 1,
  "credits_remaining": 1000000,
  "language": "English",
  "success": true,
  "transcript": [
    {
      "endMs": "1920",
      "startMs": "160",
      "startTimeText": "0:00",
      "text": "welcome back to the hell farm and the"
    }
  ],
  "transcript_only_text": "welcome back to the hell farm and the backyard trails we built these jumps two years ago and last year we just kind of rebuilt them and this year......",
  "type": "video",
  "url": "https://www.youtube.com/watch?v=bjVIDXPP7Uk",
  "videoId": "bjVIDXPP7Uk"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide url in query (string). Keep identifiers and URLs in the formats documented for this implementation.

### Which values can I use for cache_max_age?
The selected schema accepts 1d, 3d, 7d, 14d, 30d. Keep the documented string type and exact spelling for this input.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- scrapecreators: https://openany.si/youtube/youtube-scrapecreators-transcript/0b3a8c90-28e0-4d46-8db4-d2150ce0061e/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
