YouTube Subtitles
youtube_subtitlesFetch a YouTube video's subtitles as JSON by video ID to read or summarize spoken content. Set language_code to retrieve subtitles in a specific language.
Instructions
Fetch the subtitles of a YouTube video by video ID through the Decodo Web Data API (youtube_subtitles target) and return them as JSON. Use it to read or summarise what is said in a video; set language_code for a specific language. Docs: https://help.decodo.com/docs/web-scraping-api-youtube-subtitles
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "youtube_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | YouTube video ID (e.g., "L8zSWbQN-v8") | |
| language_code | No | Language code for subtitles (e.g., "en", "es") |