Youtube Transcripts avatar

Youtube Transcripts

Try for free

Pay $7.50 for 1,000 transcripts

Go to Store
Youtube Transcripts

Youtube Transcripts

karamelo/youtube-transcripts
Try for free

Pay $7.50 for 1,000 transcripts

Extract 1 or 1000s of YouTube transcripts fast. Save time & effort . Get accurate structured transcripts or captions in seconds for each video & short. Export in various formats,, JSON, XML, HTML, CSV, EXCEL... Boost your productivity!

Developer
Maintained by Community

Actor Metrics

  • 471 monthly users

  • No reviews yet

  • 84 bookmarks

  • >99% runs succeeded

  • 9.1 hours response time

  • Created in Sep 2024

  • Modified 10 hours ago

You can access the Youtube Transcripts programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "0.0",
5    "x-build-id": "xISrj6pIaa8pi5MBe"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/karamelo~youtube-transcripts/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-karamelo-youtube-transcripts",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/karamelo~youtube-transcripts/runs": {
50      "post": {
51        "operationId": "runs-sync-karamelo-youtube-transcripts",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/karamelo~youtube-transcripts/run-sync": {
93      "post": {
94        "operationId": "run-sync-karamelo-youtube-transcripts",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "urls"
135        ],
136        "properties": {
137          "outputFormat": {
138            "title": "Select output format",
139            "enum": [
140              "captions",
141              "textWithTimestamps",
142              "xmlWithoutTimestamps",
143              "xmlWithTimestamps",
144              "singleStringText"
145            ],
146            "type": "string",
147            "description": "Select the format in which you want your captions",
148            "default": "captions"
149          },
150          "urls": {
151            "title": "URL(s) for the Video(s)",
152            "type": "array",
153            "description": "The URLs of the videos you want to extract the transcript/captions from.",
154            "items": {
155              "type": "string"
156            }
157          },
158          "maxRetries": {
159            "title": "Maximum retries.",
160            "minimum": 3,
161            "maximum": 12,
162            "type": "integer",
163            "description": "Maximum number requests to retry if your get blocked, increase for better chance",
164            "default": 8
165          },
166          "channelHandleBoolean": {
167            "title": "Channel Handle",
168            "type": "boolean",
169            "description": "Indicates whether the channel handle should be included.",
170            "default": true
171          },
172          "channelNameBoolean": {
173            "title": "Channel Name",
174            "type": "boolean",
175            "description": "Indicates whether the channel Name should be included.",
176            "default": true
177          },
178          "channelIDBoolean": {
179            "title": "Channel ID",
180            "type": "boolean",
181            "description": "Indicates whether the channel ID should be included.",
182            "default": false
183          },
184          "subscriberCountBoolean": {
185            "title": "Subscriber Count",
186            "type": "boolean",
187            "description": "Indicates whether the subscriber count should be included.",
188            "default": false
189          },
190          "dateTextBoolean": {
191            "title": "Date Text",
192            "type": "boolean",
193            "description": "Indicates whether the formatted date (Feb 7, 2025) should be included.",
194            "default": false
195          },
196          "relativeDateTextBoolean": {
197            "title": "Relative Date Text",
198            "type": "boolean",
199            "description": "Indicates whether the relative date (example 3 days ago) should be included.",
200            "default": true
201          },
202          "datePublishedBoolean": {
203            "title": "Date Published",
204            "type": "boolean",
205            "description": "Indicates whether the full date and time the video was published (example 2025-02-07T07:00:15-08:00) should be included.",
206            "default": true
207          },
208          "uploadDateBoolean": {
209            "title": "Upload Date",
210            "type": "boolean",
211            "description": "Indicates whether the full date and time the video was uploaded (example 2025-02-07T07:00:15-08:00) should be included.",
212            "default": false
213          },
214          "viewCountBoolean": {
215            "title": "View Count",
216            "type": "boolean",
217            "description": "Indicates whether the view count (example 69,916 views) should be included.",
218            "default": false
219          },
220          "likesBoolean": {
221            "title": "Likes",
222            "type": "boolean",
223            "description": "Indicates whether the number of likes (example 4.8K) should be included.",
224            "default": false
225          },
226          "commentsBoolean": {
227            "title": "Comments",
228            "type": "boolean",
229            "description": "Indicates whether the number of comments (example 456) should be included.",
230            "default": false
231          },
232          "keywordsBoolean": {
233            "title": "Keywords",
234            "type": "boolean",
235            "description": "Indicates whether the keywords (or tags) should be included.",
236            "default": false
237          },
238          "thumbnailBoolean": {
239            "title": "Thumbnail",
240            "type": "boolean",
241            "description": "Indicates whether the thumbnail url should be included.",
242            "default": false
243          },
244          "descriptionBoolean": {
245            "title": "Description",
246            "type": "boolean",
247            "description": "Indicates whether the video description should be included.",
248            "default": false
249          },
250          "proxyOptions": {
251            "title": "Proxy configuration",
252            "type": "object",
253            "description": "Select proxies to be used by your actor."
254          }
255        }
256      },
257      "runsResponseSchema": {
258        "type": "object",
259        "properties": {
260          "data": {
261            "type": "object",
262            "properties": {
263              "id": {
264                "type": "string"
265              },
266              "actId": {
267                "type": "string"
268              },
269              "userId": {
270                "type": "string"
271              },
272              "startedAt": {
273                "type": "string",
274                "format": "date-time",
275                "example": "2025-01-08T00:00:00.000Z"
276              },
277              "finishedAt": {
278                "type": "string",
279                "format": "date-time",
280                "example": "2025-01-08T00:00:00.000Z"
281              },
282              "status": {
283                "type": "string",
284                "example": "READY"
285              },
286              "meta": {
287                "type": "object",
288                "properties": {
289                  "origin": {
290                    "type": "string",
291                    "example": "API"
292                  },
293                  "userAgent": {
294                    "type": "string"
295                  }
296                }
297              },
298              "stats": {
299                "type": "object",
300                "properties": {
301                  "inputBodyLen": {
302                    "type": "integer",
303                    "example": 2000
304                  },
305                  "rebootCount": {
306                    "type": "integer",
307                    "example": 0
308                  },
309                  "restartCount": {
310                    "type": "integer",
311                    "example": 0
312                  },
313                  "resurrectCount": {
314                    "type": "integer",
315                    "example": 0
316                  },
317                  "computeUnits": {
318                    "type": "integer",
319                    "example": 0
320                  }
321                }
322              },
323              "options": {
324                "type": "object",
325                "properties": {
326                  "build": {
327                    "type": "string",
328                    "example": "latest"
329                  },
330                  "timeoutSecs": {
331                    "type": "integer",
332                    "example": 300
333                  },
334                  "memoryMbytes": {
335                    "type": "integer",
336                    "example": 1024
337                  },
338                  "diskMbytes": {
339                    "type": "integer",
340                    "example": 2048
341                  }
342                }
343              },
344              "buildId": {
345                "type": "string"
346              },
347              "defaultKeyValueStoreId": {
348                "type": "string"
349              },
350              "defaultDatasetId": {
351                "type": "string"
352              },
353              "defaultRequestQueueId": {
354                "type": "string"
355              },
356              "buildNumber": {
357                "type": "string",
358                "example": "1.0.0"
359              },
360              "containerUrl": {
361                "type": "string"
362              },
363              "usage": {
364                "type": "object",
365                "properties": {
366                  "ACTOR_COMPUTE_UNITS": {
367                    "type": "integer",
368                    "example": 0
369                  },
370                  "DATASET_READS": {
371                    "type": "integer",
372                    "example": 0
373                  },
374                  "DATASET_WRITES": {
375                    "type": "integer",
376                    "example": 0
377                  },
378                  "KEY_VALUE_STORE_READS": {
379                    "type": "integer",
380                    "example": 0
381                  },
382                  "KEY_VALUE_STORE_WRITES": {
383                    "type": "integer",
384                    "example": 1
385                  },
386                  "KEY_VALUE_STORE_LISTS": {
387                    "type": "integer",
388                    "example": 0
389                  },
390                  "REQUEST_QUEUE_READS": {
391                    "type": "integer",
392                    "example": 0
393                  },
394                  "REQUEST_QUEUE_WRITES": {
395                    "type": "integer",
396                    "example": 0
397                  },
398                  "DATA_TRANSFER_INTERNAL_GBYTES": {
399                    "type": "integer",
400                    "example": 0
401                  },
402                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
403                    "type": "integer",
404                    "example": 0
405                  },
406                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
407                    "type": "integer",
408                    "example": 0
409                  },
410                  "PROXY_SERPS": {
411                    "type": "integer",
412                    "example": 0
413                  }
414                }
415              },
416              "usageTotalUsd": {
417                "type": "number",
418                "example": 0.00005
419              },
420              "usageUsd": {
421                "type": "object",
422                "properties": {
423                  "ACTOR_COMPUTE_UNITS": {
424                    "type": "integer",
425                    "example": 0
426                  },
427                  "DATASET_READS": {
428                    "type": "integer",
429                    "example": 0
430                  },
431                  "DATASET_WRITES": {
432                    "type": "integer",
433                    "example": 0
434                  },
435                  "KEY_VALUE_STORE_READS": {
436                    "type": "integer",
437                    "example": 0
438                  },
439                  "KEY_VALUE_STORE_WRITES": {
440                    "type": "number",
441                    "example": 0.00005
442                  },
443                  "KEY_VALUE_STORE_LISTS": {
444                    "type": "integer",
445                    "example": 0
446                  },
447                  "REQUEST_QUEUE_READS": {
448                    "type": "integer",
449                    "example": 0
450                  },
451                  "REQUEST_QUEUE_WRITES": {
452                    "type": "integer",
453                    "example": 0
454                  },
455                  "DATA_TRANSFER_INTERNAL_GBYTES": {
456                    "type": "integer",
457                    "example": 0
458                  },
459                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
460                    "type": "integer",
461                    "example": 0
462                  },
463                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
464                    "type": "integer",
465                    "example": 0
466                  },
467                  "PROXY_SERPS": {
468                    "type": "integer",
469                    "example": 0
470                  }
471                }
472              }
473            }
474          }
475        }
476      }
477    }
478  }
479}

Youtube Transcripts OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for Youtube Transcripts from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients: