![Youtube avatar](https://images.apifyusercontent.com/UtxVzYu5zTHIu-e76IuDTthmx1vWST0fMAJO8u1lBpg/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20veENIcGN0MkdlQjcwaVpUTHcvbWFQSHVjZzI3VG13TXo5WW0teW91dHViZS5wbmc.webp)
Youtube
3 days trial then $5.00/month - No credit card required now
![Youtube](https://images.apifyusercontent.com/UtxVzYu5zTHIu-e76IuDTthmx1vWST0fMAJO8u1lBpg/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20veENIcGN0MkdlQjcwaVpUTHcvbWFQSHVjZzI3VG13TXo5WW0teW91dHViZS5wbmc.webp)
Youtube
3 days trial then $5.00/month - No credit card required now
Collect channels, videos (with comments), shorts, streams, playlists, podcasts and posts from Youtube! Filters included. It's fast and costs little!
You can access the Youtube 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": "1.4",
5 "x-build-id": "K30GOU3QCHGb2NcRZ"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/canadesk~youtube/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-canadesk-youtube",
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/canadesk~youtube/runs": {
50 "post": {
51 "operationId": "runs-sync-canadesk-youtube",
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/canadesk~youtube/run-sync": {
93 "post": {
94 "operationId": "run-sync-canadesk-youtube",
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 "process",
135 "query"
136 ],
137 "properties": {
138 "process": {
139 "title": "Process",
140 "enum": [
141 "gct",
142 "gcm",
143 "gcc",
144 "giv",
145 "gip",
146 "gss"
147 ],
148 "type": "string",
149 "description": "",
150 "default": "gcc"
151 },
152 "query": {
153 "title": "URL",
154 "type": "string",
155 "description": "Defines the type of content to fetch. See Information tab."
156 },
157 "sorting": {
158 "title": "Sorting",
159 "enum": [
160 "latest",
161 "oldest",
162 "popular"
163 ],
164 "type": "string",
165 "description": "Does not apply to Search. See Information tab.",
166 "default": "latest"
167 },
168 "follow": {
169 "title": "Search Filters",
170 "enum": [
171 "all",
172 "Last hour",
173 "Today",
174 "This week",
175 "This month",
176 "This year",
177 "Video",
178 "Channel",
179 "Playlist",
180 "Film",
181 "Under 4 minutes",
182 "4 - 20 minutes",
183 "Over 20 minutes",
184 "Live",
185 "4K",
186 "HD",
187 "Subtitles/CC",
188 "Creative Commons",
189 "360°",
190 "VR180",
191 "3D",
192 "HDR",
193 "Location"
194 ],
195 "type": "string",
196 "description": "Only for Search process. See Information tab.",
197 "default": "all"
198 },
199 "daterange": {
200 "title": "Date filter",
201 "type": "array",
202 "description": "See Information tab."
203 },
204 "maximum": {
205 "title": "Maximum results",
206 "minimum": 20,
207 "maximum": 150,
208 "type": "integer",
209 "description": "See Information tab.",
210 "default": 40
211 },
212 "delay": {
213 "title": "Delay",
214 "minimum": 1,
215 "maximum": 30,
216 "type": "integer",
217 "description": "Waiting time between requests.",
218 "default": 2
219 },
220 "retries": {
221 "title": "Retries",
222 "minimum": 1,
223 "maximum": 5,
224 "type": "integer",
225 "description": "Number of retries after failure.",
226 "default": 2
227 },
228 "proxy": {
229 "title": "Proxy configuration",
230 "type": "object",
231 "description": "Select proxies to be used by your crawler."
232 }
233 }
234 },
235 "runsResponseSchema": {
236 "type": "object",
237 "properties": {
238 "data": {
239 "type": "object",
240 "properties": {
241 "id": {
242 "type": "string"
243 },
244 "actId": {
245 "type": "string"
246 },
247 "userId": {
248 "type": "string"
249 },
250 "startedAt": {
251 "type": "string",
252 "format": "date-time",
253 "example": "2025-01-08T00:00:00.000Z"
254 },
255 "finishedAt": {
256 "type": "string",
257 "format": "date-time",
258 "example": "2025-01-08T00:00:00.000Z"
259 },
260 "status": {
261 "type": "string",
262 "example": "READY"
263 },
264 "meta": {
265 "type": "object",
266 "properties": {
267 "origin": {
268 "type": "string",
269 "example": "API"
270 },
271 "userAgent": {
272 "type": "string"
273 }
274 }
275 },
276 "stats": {
277 "type": "object",
278 "properties": {
279 "inputBodyLen": {
280 "type": "integer",
281 "example": 2000
282 },
283 "rebootCount": {
284 "type": "integer",
285 "example": 0
286 },
287 "restartCount": {
288 "type": "integer",
289 "example": 0
290 },
291 "resurrectCount": {
292 "type": "integer",
293 "example": 0
294 },
295 "computeUnits": {
296 "type": "integer",
297 "example": 0
298 }
299 }
300 },
301 "options": {
302 "type": "object",
303 "properties": {
304 "build": {
305 "type": "string",
306 "example": "latest"
307 },
308 "timeoutSecs": {
309 "type": "integer",
310 "example": 300
311 },
312 "memoryMbytes": {
313 "type": "integer",
314 "example": 1024
315 },
316 "diskMbytes": {
317 "type": "integer",
318 "example": 2048
319 }
320 }
321 },
322 "buildId": {
323 "type": "string"
324 },
325 "defaultKeyValueStoreId": {
326 "type": "string"
327 },
328 "defaultDatasetId": {
329 "type": "string"
330 },
331 "defaultRequestQueueId": {
332 "type": "string"
333 },
334 "buildNumber": {
335 "type": "string",
336 "example": "1.0.0"
337 },
338 "containerUrl": {
339 "type": "string"
340 },
341 "usage": {
342 "type": "object",
343 "properties": {
344 "ACTOR_COMPUTE_UNITS": {
345 "type": "integer",
346 "example": 0
347 },
348 "DATASET_READS": {
349 "type": "integer",
350 "example": 0
351 },
352 "DATASET_WRITES": {
353 "type": "integer",
354 "example": 0
355 },
356 "KEY_VALUE_STORE_READS": {
357 "type": "integer",
358 "example": 0
359 },
360 "KEY_VALUE_STORE_WRITES": {
361 "type": "integer",
362 "example": 1
363 },
364 "KEY_VALUE_STORE_LISTS": {
365 "type": "integer",
366 "example": 0
367 },
368 "REQUEST_QUEUE_READS": {
369 "type": "integer",
370 "example": 0
371 },
372 "REQUEST_QUEUE_WRITES": {
373 "type": "integer",
374 "example": 0
375 },
376 "DATA_TRANSFER_INTERNAL_GBYTES": {
377 "type": "integer",
378 "example": 0
379 },
380 "DATA_TRANSFER_EXTERNAL_GBYTES": {
381 "type": "integer",
382 "example": 0
383 },
384 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
385 "type": "integer",
386 "example": 0
387 },
388 "PROXY_SERPS": {
389 "type": "integer",
390 "example": 0
391 }
392 }
393 },
394 "usageTotalUsd": {
395 "type": "number",
396 "example": 0.00005
397 },
398 "usageUsd": {
399 "type": "object",
400 "properties": {
401 "ACTOR_COMPUTE_UNITS": {
402 "type": "integer",
403 "example": 0
404 },
405 "DATASET_READS": {
406 "type": "integer",
407 "example": 0
408 },
409 "DATASET_WRITES": {
410 "type": "integer",
411 "example": 0
412 },
413 "KEY_VALUE_STORE_READS": {
414 "type": "integer",
415 "example": 0
416 },
417 "KEY_VALUE_STORE_WRITES": {
418 "type": "number",
419 "example": 0.00005
420 },
421 "KEY_VALUE_STORE_LISTS": {
422 "type": "integer",
423 "example": 0
424 },
425 "REQUEST_QUEUE_READS": {
426 "type": "integer",
427 "example": 0
428 },
429 "REQUEST_QUEUE_WRITES": {
430 "type": "integer",
431 "example": 0
432 },
433 "DATA_TRANSFER_INTERNAL_GBYTES": {
434 "type": "integer",
435 "example": 0
436 },
437 "DATA_TRANSFER_EXTERNAL_GBYTES": {
438 "type": "integer",
439 "example": 0
440 },
441 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
442 "type": "integer",
443 "example": 0
444 },
445 "PROXY_SERPS": {
446 "type": "integer",
447 "example": 0
448 }
449 }
450 }
451 }
452 }
453 }
454 }
455 }
456 }
457}
Youtube 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 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
4 monthly users
-
2 stars
>99% runs succeeded
7 days response time
Created in Dec 2024
Modified 2 months ago