
Youtube Search Api
Pricing
$2.00 / 1,000 results

Youtube Search Api
Search YouTube videos, channels, and playlists using the YouTube Data API. Features comprehensive filtering options, automatic authentication, and detailed results including thumbnails and metadata. Perfect for content research, marketing analysis, and finding targeted videos.
5.0 (2)
Pricing
$2.00 / 1,000 results
0
Monthly users
10
Runs succeeded
>99%
Last modified
10 days ago
You can access the Youtube Search Api 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.2",
5 "x-build-id": "tvoKG19D5mxOHIG3A"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/grow_media~youtube-search-api/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-grow_media-youtube-search-api",
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/grow_media~youtube-search-api/runs": {
50 "post": {
51 "operationId": "runs-sync-grow_media-youtube-search-api",
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/grow_media~youtube-search-api/run-sync": {
93 "post": {
94 "operationId": "run-sync-grow_media-youtube-search-api",
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 "q"
135 ],
136 "properties": {
137 "q": {
138 "title": "Search Query",
139 "type": "string",
140 "description": "Enter keywords to search for on YouTube",
141 "default": "surfing"
142 },
143 "maxResults": {
144 "title": "Max Results",
145 "minimum": 1,
146 "maximum": 1000,
147 "type": "integer",
148 "description": "The maximum number of items to return (up to 1000)",
149 "default": 100
150 },
151 "useFilters": {
152 "title": "Add filters",
153 "type": "boolean",
154 "description": "Enable to use advanced filtering options",
155 "default": false
156 },
157 "channelType": {
158 "title": "Channel Type",
159 "enum": [
160 "any",
161 "show"
162 ],
163 "type": "string",
164 "description": "The type of channel to search for",
165 "default": "any"
166 },
167 "eventType": {
168 "title": "Event Type",
169 "enum": [
170 "completed",
171 "live",
172 "upcoming"
173 ],
174 "type": "string",
175 "description": "The event type to search for"
176 },
177 "order": {
178 "title": "Sort By",
179 "enum": [
180 "date",
181 "rating",
182 "relevance",
183 "title",
184 "videoCount",
185 "viewCount"
186 ],
187 "type": "string",
188 "description": "How to sort the search results",
189 "default": "relevance"
190 },
191 "publishedAfter": {
192 "title": "Published After",
193 "type": "string",
194 "description": "Only show content published after this date (RFC 3339 format, e.g. 2022-01-01T00:00:00Z)"
195 },
196 "publishedBefore": {
197 "title": "Published Before",
198 "type": "string",
199 "description": "Only show content published before this date (RFC 3339 format, e.g. 2022-12-31T23:59:59Z)"
200 },
201 "regionCode": {
202 "title": "Region Code",
203 "type": "string",
204 "description": "The region code for search results (ISO 3166-1 alpha-2 country code, e.g. US)"
205 },
206 "relevanceLanguage": {
207 "title": "Relevance Language",
208 "type": "string",
209 "description": "The language to search in (ISO 639-1 two-letter language code, e.g. en)"
210 },
211 "safeSearch": {
212 "title": "Safe Search",
213 "enum": [
214 "moderate",
215 "none",
216 "strict"
217 ],
218 "type": "string",
219 "description": "Whether to include restricted content",
220 "default": "moderate"
221 },
222 "videoDefinition": {
223 "title": "Video Definition",
224 "enum": [
225 "any",
226 "high",
227 "standard"
228 ],
229 "type": "string",
230 "description": "Whether to search for HD or standard videos",
231 "default": "any"
232 },
233 "videoDuration": {
234 "title": "Video Duration",
235 "enum": [
236 "any",
237 "long",
238 "medium",
239 "short"
240 ],
241 "type": "string",
242 "description": "The duration of videos to search for",
243 "default": "any"
244 },
245 "videoLicense": {
246 "title": "Video License",
247 "enum": [
248 "any",
249 "creativeCommon",
250 "youtube"
251 ],
252 "type": "string",
253 "description": "The license of videos to search for",
254 "default": "any"
255 }
256 }
257 },
258 "runsResponseSchema": {
259 "type": "object",
260 "properties": {
261 "data": {
262 "type": "object",
263 "properties": {
264 "id": {
265 "type": "string"
266 },
267 "actId": {
268 "type": "string"
269 },
270 "userId": {
271 "type": "string"
272 },
273 "startedAt": {
274 "type": "string",
275 "format": "date-time",
276 "example": "2025-01-08T00:00:00.000Z"
277 },
278 "finishedAt": {
279 "type": "string",
280 "format": "date-time",
281 "example": "2025-01-08T00:00:00.000Z"
282 },
283 "status": {
284 "type": "string",
285 "example": "READY"
286 },
287 "meta": {
288 "type": "object",
289 "properties": {
290 "origin": {
291 "type": "string",
292 "example": "API"
293 },
294 "userAgent": {
295 "type": "string"
296 }
297 }
298 },
299 "stats": {
300 "type": "object",
301 "properties": {
302 "inputBodyLen": {
303 "type": "integer",
304 "example": 2000
305 },
306 "rebootCount": {
307 "type": "integer",
308 "example": 0
309 },
310 "restartCount": {
311 "type": "integer",
312 "example": 0
313 },
314 "resurrectCount": {
315 "type": "integer",
316 "example": 0
317 },
318 "computeUnits": {
319 "type": "integer",
320 "example": 0
321 }
322 }
323 },
324 "options": {
325 "type": "object",
326 "properties": {
327 "build": {
328 "type": "string",
329 "example": "latest"
330 },
331 "timeoutSecs": {
332 "type": "integer",
333 "example": 300
334 },
335 "memoryMbytes": {
336 "type": "integer",
337 "example": 1024
338 },
339 "diskMbytes": {
340 "type": "integer",
341 "example": 2048
342 }
343 }
344 },
345 "buildId": {
346 "type": "string"
347 },
348 "defaultKeyValueStoreId": {
349 "type": "string"
350 },
351 "defaultDatasetId": {
352 "type": "string"
353 },
354 "defaultRequestQueueId": {
355 "type": "string"
356 },
357 "buildNumber": {
358 "type": "string",
359 "example": "1.0.0"
360 },
361 "containerUrl": {
362 "type": "string"
363 },
364 "usage": {
365 "type": "object",
366 "properties": {
367 "ACTOR_COMPUTE_UNITS": {
368 "type": "integer",
369 "example": 0
370 },
371 "DATASET_READS": {
372 "type": "integer",
373 "example": 0
374 },
375 "DATASET_WRITES": {
376 "type": "integer",
377 "example": 0
378 },
379 "KEY_VALUE_STORE_READS": {
380 "type": "integer",
381 "example": 0
382 },
383 "KEY_VALUE_STORE_WRITES": {
384 "type": "integer",
385 "example": 1
386 },
387 "KEY_VALUE_STORE_LISTS": {
388 "type": "integer",
389 "example": 0
390 },
391 "REQUEST_QUEUE_READS": {
392 "type": "integer",
393 "example": 0
394 },
395 "REQUEST_QUEUE_WRITES": {
396 "type": "integer",
397 "example": 0
398 },
399 "DATA_TRANSFER_INTERNAL_GBYTES": {
400 "type": "integer",
401 "example": 0
402 },
403 "DATA_TRANSFER_EXTERNAL_GBYTES": {
404 "type": "integer",
405 "example": 0
406 },
407 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
408 "type": "integer",
409 "example": 0
410 },
411 "PROXY_SERPS": {
412 "type": "integer",
413 "example": 0
414 }
415 }
416 },
417 "usageTotalUsd": {
418 "type": "number",
419 "example": 0.00005
420 },
421 "usageUsd": {
422 "type": "object",
423 "properties": {
424 "ACTOR_COMPUTE_UNITS": {
425 "type": "integer",
426 "example": 0
427 },
428 "DATASET_READS": {
429 "type": "integer",
430 "example": 0
431 },
432 "DATASET_WRITES": {
433 "type": "integer",
434 "example": 0
435 },
436 "KEY_VALUE_STORE_READS": {
437 "type": "integer",
438 "example": 0
439 },
440 "KEY_VALUE_STORE_WRITES": {
441 "type": "number",
442 "example": 0.00005
443 },
444 "KEY_VALUE_STORE_LISTS": {
445 "type": "integer",
446 "example": 0
447 },
448 "REQUEST_QUEUE_READS": {
449 "type": "integer",
450 "example": 0
451 },
452 "REQUEST_QUEUE_WRITES": {
453 "type": "integer",
454 "example": 0
455 },
456 "DATA_TRANSFER_INTERNAL_GBYTES": {
457 "type": "integer",
458 "example": 0
459 },
460 "DATA_TRANSFER_EXTERNAL_GBYTES": {
461 "type": "integer",
462 "example": 0
463 },
464 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
465 "type": "integer",
466 "example": 0
467 },
468 "PROXY_SERPS": {
469 "type": "integer",
470 "example": 0
471 }
472 }
473 }
474 }
475 }
476 }
477 }
478 }
479 }
480}
Youtube Search Api 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 Search Api 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:
Pricing
Pricing model
Pay per resultThis Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.
Price per 1,000 items
$2.00