![YouTube Video Downloader avatar](https://images.apifyusercontent.com/NZTnwiL3rVNgd69OqJwvqmb3KvIurhHuHGC0ahRh5lM/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vVVVoSkRmS0pUMlNzWGRjbFIvTEpHcTFUeUduNGJRaEVqaEQtWW91VHViZV9WaWRlb19Eb3dubG9hZGVyLnBuZw.webp)
YouTube Video Downloader
This Actor is paid per event
![YouTube Video Downloader](https://images.apifyusercontent.com/NZTnwiL3rVNgd69OqJwvqmb3KvIurhHuHGC0ahRh5lM/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vVVVoSkRmS0pUMlNzWGRjbFIvTEpHcTFUeUduNGJRaEVqaEQtWW91VHViZV9WaWRlb19Eb3dubG9hZGVyLnBuZw.webp)
YouTube Video Downloader
This Actor is paid per event
Use YouTube Video Downloader to download YouTube videos in MP4, MP3, avi, and other formats directly to your cloud storage service. Just add a YouTube video URL and get the converted video in a few seconds.
You can access the YouTube Video Downloader programmatically from your own applications by using the Apify API. You can 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": "hEUHu6qWvrOXwIYW4"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/streamers~youtube-video-downloader/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-streamers-youtube-video-downloader",
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/streamers~youtube-video-downloader/runs": {
50 "post": {
51 "operationId": "runs-sync-streamers-youtube-video-downloader",
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/streamers~youtube-video-downloader/run-sync": {
93 "post": {
94 "operationId": "run-sync-streamers-youtube-video-downloader",
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 "videos"
135 ],
136 "properties": {
137 "videos": {
138 "title": "Videos",
139 "minItems": 1,
140 "type": "array",
141 "description": "A list of video urls",
142 "items": {
143 "type": "object",
144 "required": [
145 "url"
146 ],
147 "properties": {
148 "url": {
149 "type": "string",
150 "title": "URL of a web page",
151 "format": "uri"
152 }
153 }
154 }
155 },
156 "filenameTemplateParts": {
157 "title": "Filename parts",
158 "maxItems": 3,
159 "type": "array",
160 "description": "Specifies what video info to include in the filename. Each part will be separated by an underscore. Video ID is always included at the start",
161 "items": {
162 "type": "string",
163 "enum": [
164 "title",
165 "uploader",
166 "timestamp"
167 ],
168 "enumTitles": [
169 "Title",
170 "Uploader's name",
171 "Publishing UNIX timestamp"
172 ]
173 },
174 "default": [
175 "title"
176 ]
177 },
178 "preferredQuality": {
179 "title": "Preferred quality",
180 "enum": [
181 "144p",
182 "240p",
183 "360p",
184 "480p",
185 "720p",
186 "1080p",
187 "1440p",
188 "2160p"
189 ],
190 "type": "string",
191 "description": "Optional quality, may require more time to process if > 720p",
192 "default": "720p"
193 },
194 "preferredFormat": {
195 "title": "Preferred format",
196 "enum": [
197 "avi",
198 "flv",
199 "gif",
200 "mkv",
201 "mov",
202 "mp4",
203 "webm",
204 "aac",
205 "aiff",
206 "alac",
207 "flac",
208 "m4a",
209 "mka",
210 "mp3",
211 "ogg",
212 "opus",
213 "vorbis",
214 "wav"
215 ],
216 "type": "string",
217 "description": "Optional format, may require more time to process"
218 },
219 "s3AccessKeyId": {
220 "title": "S3 Access Key ID",
221 "type": "string",
222 "description": "Access key ID for the S3 bucket"
223 },
224 "s3SecretAccessKey": {
225 "title": "S3 Secret Access Key",
226 "type": "string",
227 "description": "Secret access key for the S3 bucket"
228 },
229 "s3Bucket": {
230 "title": "S3 Bucket",
231 "type": "string",
232 "description": "Name of the S3 bucket. Must be created by you."
233 },
234 "s3Region": {
235 "title": "S3 Region",
236 "type": "string",
237 "description": "Region of the S3 bucket. E.g. 'us-west-1'"
238 },
239 "azureConnectionString": {
240 "title": "Azure Connection String",
241 "type": "string",
242 "description": "Connection string for the Azure Blob Storage"
243 },
244 "azureContainerName": {
245 "title": "Azure Container Name",
246 "type": "string",
247 "description": "Name of the Azure container. Will be auto-created if doesn't exist"
248 },
249 "googleCloudServiceKey": {
250 "title": "Google Cloud Service Key JSON",
251 "type": "string",
252 "description": "Service account's key JSON object for the Google Cloud Storage"
253 },
254 "googleCloudBucketName": {
255 "title": "Google Cloud Bucket Name",
256 "type": "string",
257 "description": "Name of the Google Cloud bucket. Must be created by you"
258 }
259 }
260 },
261 "runsResponseSchema": {
262 "type": "object",
263 "properties": {
264 "data": {
265 "type": "object",
266 "properties": {
267 "id": {
268 "type": "string"
269 },
270 "actId": {
271 "type": "string"
272 },
273 "userId": {
274 "type": "string"
275 },
276 "startedAt": {
277 "type": "string",
278 "format": "date-time",
279 "example": "2025-01-08T00:00:00.000Z"
280 },
281 "finishedAt": {
282 "type": "string",
283 "format": "date-time",
284 "example": "2025-01-08T00:00:00.000Z"
285 },
286 "status": {
287 "type": "string",
288 "example": "READY"
289 },
290 "meta": {
291 "type": "object",
292 "properties": {
293 "origin": {
294 "type": "string",
295 "example": "API"
296 },
297 "userAgent": {
298 "type": "string"
299 }
300 }
301 },
302 "stats": {
303 "type": "object",
304 "properties": {
305 "inputBodyLen": {
306 "type": "integer",
307 "example": 2000
308 },
309 "rebootCount": {
310 "type": "integer",
311 "example": 0
312 },
313 "restartCount": {
314 "type": "integer",
315 "example": 0
316 },
317 "resurrectCount": {
318 "type": "integer",
319 "example": 0
320 },
321 "computeUnits": {
322 "type": "integer",
323 "example": 0
324 }
325 }
326 },
327 "options": {
328 "type": "object",
329 "properties": {
330 "build": {
331 "type": "string",
332 "example": "latest"
333 },
334 "timeoutSecs": {
335 "type": "integer",
336 "example": 300
337 },
338 "memoryMbytes": {
339 "type": "integer",
340 "example": 1024
341 },
342 "diskMbytes": {
343 "type": "integer",
344 "example": 2048
345 }
346 }
347 },
348 "buildId": {
349 "type": "string"
350 },
351 "defaultKeyValueStoreId": {
352 "type": "string"
353 },
354 "defaultDatasetId": {
355 "type": "string"
356 },
357 "defaultRequestQueueId": {
358 "type": "string"
359 },
360 "buildNumber": {
361 "type": "string",
362 "example": "1.0.0"
363 },
364 "containerUrl": {
365 "type": "string"
366 },
367 "usage": {
368 "type": "object",
369 "properties": {
370 "ACTOR_COMPUTE_UNITS": {
371 "type": "integer",
372 "example": 0
373 },
374 "DATASET_READS": {
375 "type": "integer",
376 "example": 0
377 },
378 "DATASET_WRITES": {
379 "type": "integer",
380 "example": 0
381 },
382 "KEY_VALUE_STORE_READS": {
383 "type": "integer",
384 "example": 0
385 },
386 "KEY_VALUE_STORE_WRITES": {
387 "type": "integer",
388 "example": 1
389 },
390 "KEY_VALUE_STORE_LISTS": {
391 "type": "integer",
392 "example": 0
393 },
394 "REQUEST_QUEUE_READS": {
395 "type": "integer",
396 "example": 0
397 },
398 "REQUEST_QUEUE_WRITES": {
399 "type": "integer",
400 "example": 0
401 },
402 "DATA_TRANSFER_INTERNAL_GBYTES": {
403 "type": "integer",
404 "example": 0
405 },
406 "DATA_TRANSFER_EXTERNAL_GBYTES": {
407 "type": "integer",
408 "example": 0
409 },
410 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
411 "type": "integer",
412 "example": 0
413 },
414 "PROXY_SERPS": {
415 "type": "integer",
416 "example": 0
417 }
418 }
419 },
420 "usageTotalUsd": {
421 "type": "number",
422 "example": 0.00005
423 },
424 "usageUsd": {
425 "type": "object",
426 "properties": {
427 "ACTOR_COMPUTE_UNITS": {
428 "type": "integer",
429 "example": 0
430 },
431 "DATASET_READS": {
432 "type": "integer",
433 "example": 0
434 },
435 "DATASET_WRITES": {
436 "type": "integer",
437 "example": 0
438 },
439 "KEY_VALUE_STORE_READS": {
440 "type": "integer",
441 "example": 0
442 },
443 "KEY_VALUE_STORE_WRITES": {
444 "type": "number",
445 "example": 0.00005
446 },
447 "KEY_VALUE_STORE_LISTS": {
448 "type": "integer",
449 "example": 0
450 },
451 "REQUEST_QUEUE_READS": {
452 "type": "integer",
453 "example": 0
454 },
455 "REQUEST_QUEUE_WRITES": {
456 "type": "integer",
457 "example": 0
458 },
459 "DATA_TRANSFER_INTERNAL_GBYTES": {
460 "type": "integer",
461 "example": 0
462 },
463 "DATA_TRANSFER_EXTERNAL_GBYTES": {
464 "type": "integer",
465 "example": 0
466 },
467 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
468 "type": "integer",
469 "example": 0
470 },
471 "PROXY_SERPS": {
472 "type": "integer",
473 "example": 0
474 }
475 }
476 }
477 }
478 }
479 }
480 }
481 }
482 }
483}
YouTube Video Downloader 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 Video Downloader 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:
Actor Metrics
3 monthly users
-
0 No stars yet
0% runs succeeded
Created in Jan 2025
Modified 7 hours ago