
Youtube Search Scraper
This Actor is paid per event

Youtube Search Scraper
This Actor is paid per event
Scrape all videos, shorts, channels, playlists... from YouTube search results. Work like you are searching on YouTube website. Return all information on the screen.
Actor Metrics
1 monthly user
No reviews yet
No bookmarks yet
>99% runs succeeded
Created in Mar 2025
Modified a day ago
You can access the Youtube Search Scraper 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": "LLifSWLlOJDxmK8MS"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/dan.scraper~youtube-search-scraper/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-dan.scraper-youtube-search-scraper",
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/dan.scraper~youtube-search-scraper/runs": {
50 "post": {
51 "operationId": "runs-sync-dan.scraper-youtube-search-scraper",
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/dan.scraper~youtube-search-scraper/run-sync": {
93 "post": {
94 "operationId": "run-sync-dan.scraper-youtube-search-scraper",
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 "queries"
135 ],
136 "properties": {
137 "queries": {
138 "title": "Search Queries",
139 "type": "array",
140 "description": "List of Youtube search query. Work like you type in the Youtube search box.",
141 "items": {
142 "type": "string"
143 }
144 },
145 "maxPagesPerQuery": {
146 "title": "Max pages per query",
147 "minimum": 1,
148 "type": "integer",
149 "description": "The maximum number of search result pages crawled for each search query or URL."
150 },
151 "countryCode": {
152 "title": "Country",
153 "enum": [
154 "",
155 "af",
156 "al",
157 "dz",
158 "as",
159 "ad",
160 "ao",
161 "ai",
162 "aq",
163 "ag",
164 "ar",
165 "am",
166 "aw",
167 "au",
168 "at",
169 "az",
170 "bs",
171 "bh",
172 "bd",
173 "bb",
174 "by",
175 "be",
176 "bz",
177 "bj",
178 "bm",
179 "bt",
180 "bo",
181 "ba",
182 "bw",
183 "bv",
184 "br",
185 "io",
186 "bn",
187 "bg",
188 "bf",
189 "bi",
190 "kh",
191 "cm",
192 "ca",
193 "cv",
194 "ky",
195 "cf",
196 "td",
197 "cl",
198 "cn",
199 "cx",
200 "cc",
201 "co",
202 "km",
203 "cg",
204 "cd",
205 "ck",
206 "cr",
207 "ci",
208 "hr",
209 "cu",
210 "cy",
211 "cz",
212 "dk",
213 "dj",
214 "dm",
215 "do",
216 "ec",
217 "eg",
218 "sv",
219 "gq",
220 "er",
221 "ee",
222 "et",
223 "fk",
224 "fo",
225 "fj",
226 "fi",
227 "fr",
228 "gf",
229 "pf",
230 "tf",
231 "ga",
232 "gm",
233 "ge",
234 "de",
235 "gh",
236 "gi",
237 "gr",
238 "gl",
239 "gd",
240 "gp",
241 "gu",
242 "gt",
243 "gn",
244 "gw",
245 "gy",
246 "ht",
247 "hm",
248 "va",
249 "hn",
250 "hk",
251 "hu",
252 "is",
253 "in",
254 "id",
255 "ir",
256 "iq",
257 "ie",
258 "il",
259 "it",
260 "jm",
261 "jp",
262 "jo",
263 "kz",
264 "ke",
265 "ki",
266 "kp",
267 "kr",
268 "kw",
269 "kg",
270 "la",
271 "lv",
272 "lb",
273 "ls",
274 "lr",
275 "ly",
276 "li",
277 "lt",
278 "lu",
279 "mo",
280 "mk",
281 "mg",
282 "mw",
283 "my",
284 "mv",
285 "ml",
286 "mt",
287 "mh",
288 "mq",
289 "mr",
290 "mu",
291 "yt",
292 "mx",
293 "fm",
294 "md",
295 "mc",
296 "mn",
297 "ms",
298 "ma",
299 "mz",
300 "mm",
301 "na",
302 "nr",
303 "np",
304 "nl",
305 "an",
306 "nc",
307 "nz",
308 "ni",
309 "ne",
310 "ng",
311 "nu",
312 "nf",
313 "mp",
314 "no",
315 "om",
316 "pk",
317 "pw",
318 "ps",
319 "pa",
320 "pg",
321 "py",
322 "pe",
323 "ph",
324 "pn",
325 "pl",
326 "pt",
327 "pr",
328 "qa",
329 "re",
330 "ro",
331 "ru",
332 "rw",
333 "sh",
334 "kn",
335 "lc",
336 "pm",
337 "vc",
338 "ws",
339 "sm",
340 "st",
341 "sa",
342 "sn",
343 "cs",
344 "sc",
345 "sl",
346 "sg",
347 "sk",
348 "si",
349 "sb",
350 "so",
351 "za",
352 "gs",
353 "es",
354 "lk",
355 "sd",
356 "sr",
357 "sj",
358 "sz",
359 "se",
360 "ch",
361 "sy",
362 "tw",
363 "tj",
364 "tz",
365 "th",
366 "tl",
367 "tg",
368 "tk",
369 "to",
370 "tt",
371 "tn",
372 "tr",
373 "tm",
374 "tc",
375 "tv",
376 "ug",
377 "ua",
378 "ae",
379 "gb",
380 "us",
381 "um",
382 "uy",
383 "uz",
384 "vu",
385 "ve",
386 "vn",
387 "vg",
388 "vi",
389 "wf",
390 "eh",
391 "ye",
392 "zm",
393 "zw"
394 ],
395 "type": "string",
396 "description": "This param is for the Country (e.g. <code>es</code> for Spain). The values must be lower-cased <a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\" target=\"_blank\">ISO 3166</a> country codes supported by Google. By default, the actor uses United States (<code>us</code>).<br><br><b>Notice</b>: To get Google Shopping results from a location, please use UULE code. If you choose <code>countryCode</code> as <code>es</code> without setting <code>locationUule</code>, you will get the results from United States(default search location). To get results from Spain, you need to set <code>locationUule</code> to <code>w+CAIQICIFU3BhaW4=</code>"
397 },
398 "languageCode": {
399 "title": "Language",
400 "enum": [
401 "",
402 "af",
403 "sq",
404 "sm",
405 "ar",
406 "az",
407 "eu",
408 "be",
409 "bn",
410 "bh",
411 "bs",
412 "bg",
413 "ca",
414 "zh-CN",
415 "zh-TW",
416 "hr",
417 "cs",
418 "da",
419 "nl",
420 "en",
421 "eo",
422 "et",
423 "fo",
424 "fi",
425 "fr",
426 "fy",
427 "gl",
428 "ka",
429 "de",
430 "el",
431 "gu",
432 "iw",
433 "hi",
434 "hu",
435 "is",
436 "id",
437 "ia",
438 "ga",
439 "it",
440 "ja",
441 "jw",
442 "kn",
443 "ko",
444 "la",
445 "lv",
446 "lt",
447 "mk",
448 "ms",
449 "ml",
450 "mt",
451 "mr",
452 "ne",
453 "no",
454 "nn",
455 "oc",
456 "fa",
457 "pl",
458 "pt-BR",
459 "pt-PT",
460 "pa",
461 "ro",
462 "ru",
463 "gd",
464 "sr",
465 "si",
466 "sk",
467 "sl",
468 "es",
469 "su",
470 "sw",
471 "sv",
472 "tl",
473 "ta",
474 "te",
475 "th",
476 "ti",
477 "tr",
478 "uk",
479 "ur",
480 "uz",
481 "vi",
482 "cy",
483 "xh",
484 "zu"
485 ],
486 "type": "string",
487 "description": "Language for the search results, which is passed to Google Search as the <code>hl</code> URL query parameter. Only set this if you want to use a non-default language for the selected country. The values must be lower-cased <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\" target=\"_blank\">ISO 639</a> language codes supported by Google.",
488 "default": ""
489 },
490 "filterValue": {
491 "title": "Search Filter Value",
492 "type": "string",
493 "description": "Filter search results by Update Date, Type, Duration, Features, Sort By. Work like you choose in the Youtube search filter. This is the <code>sp</code> URL query parameter. For example to filter by Upload Date: <code>This month</code, Type: <code>Video</code>, Features: <code>4K</code>, Sort By: <code>Relevance</code>, Youtube will give you the URL: <code>https://www.youtube.com/results?search_query=iphone&sp=EgYIBBABcAE%253D</code>. You can copy the <code>sp</code> value <code>EgYIBBABcAE%253D</code> and paste it here."
494 },
495 "csvFriendlyOutput": {
496 "title": "Output CSV friendly format",
497 "type": "boolean",
498 "description": "Include shopping results data, use for CSV format"
499 }
500 }
501 },
502 "runsResponseSchema": {
503 "type": "object",
504 "properties": {
505 "data": {
506 "type": "object",
507 "properties": {
508 "id": {
509 "type": "string"
510 },
511 "actId": {
512 "type": "string"
513 },
514 "userId": {
515 "type": "string"
516 },
517 "startedAt": {
518 "type": "string",
519 "format": "date-time",
520 "example": "2025-01-08T00:00:00.000Z"
521 },
522 "finishedAt": {
523 "type": "string",
524 "format": "date-time",
525 "example": "2025-01-08T00:00:00.000Z"
526 },
527 "status": {
528 "type": "string",
529 "example": "READY"
530 },
531 "meta": {
532 "type": "object",
533 "properties": {
534 "origin": {
535 "type": "string",
536 "example": "API"
537 },
538 "userAgent": {
539 "type": "string"
540 }
541 }
542 },
543 "stats": {
544 "type": "object",
545 "properties": {
546 "inputBodyLen": {
547 "type": "integer",
548 "example": 2000
549 },
550 "rebootCount": {
551 "type": "integer",
552 "example": 0
553 },
554 "restartCount": {
555 "type": "integer",
556 "example": 0
557 },
558 "resurrectCount": {
559 "type": "integer",
560 "example": 0
561 },
562 "computeUnits": {
563 "type": "integer",
564 "example": 0
565 }
566 }
567 },
568 "options": {
569 "type": "object",
570 "properties": {
571 "build": {
572 "type": "string",
573 "example": "latest"
574 },
575 "timeoutSecs": {
576 "type": "integer",
577 "example": 300
578 },
579 "memoryMbytes": {
580 "type": "integer",
581 "example": 1024
582 },
583 "diskMbytes": {
584 "type": "integer",
585 "example": 2048
586 }
587 }
588 },
589 "buildId": {
590 "type": "string"
591 },
592 "defaultKeyValueStoreId": {
593 "type": "string"
594 },
595 "defaultDatasetId": {
596 "type": "string"
597 },
598 "defaultRequestQueueId": {
599 "type": "string"
600 },
601 "buildNumber": {
602 "type": "string",
603 "example": "1.0.0"
604 },
605 "containerUrl": {
606 "type": "string"
607 },
608 "usage": {
609 "type": "object",
610 "properties": {
611 "ACTOR_COMPUTE_UNITS": {
612 "type": "integer",
613 "example": 0
614 },
615 "DATASET_READS": {
616 "type": "integer",
617 "example": 0
618 },
619 "DATASET_WRITES": {
620 "type": "integer",
621 "example": 0
622 },
623 "KEY_VALUE_STORE_READS": {
624 "type": "integer",
625 "example": 0
626 },
627 "KEY_VALUE_STORE_WRITES": {
628 "type": "integer",
629 "example": 1
630 },
631 "KEY_VALUE_STORE_LISTS": {
632 "type": "integer",
633 "example": 0
634 },
635 "REQUEST_QUEUE_READS": {
636 "type": "integer",
637 "example": 0
638 },
639 "REQUEST_QUEUE_WRITES": {
640 "type": "integer",
641 "example": 0
642 },
643 "DATA_TRANSFER_INTERNAL_GBYTES": {
644 "type": "integer",
645 "example": 0
646 },
647 "DATA_TRANSFER_EXTERNAL_GBYTES": {
648 "type": "integer",
649 "example": 0
650 },
651 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
652 "type": "integer",
653 "example": 0
654 },
655 "PROXY_SERPS": {
656 "type": "integer",
657 "example": 0
658 }
659 }
660 },
661 "usageTotalUsd": {
662 "type": "number",
663 "example": 0.00005
664 },
665 "usageUsd": {
666 "type": "object",
667 "properties": {
668 "ACTOR_COMPUTE_UNITS": {
669 "type": "integer",
670 "example": 0
671 },
672 "DATASET_READS": {
673 "type": "integer",
674 "example": 0
675 },
676 "DATASET_WRITES": {
677 "type": "integer",
678 "example": 0
679 },
680 "KEY_VALUE_STORE_READS": {
681 "type": "integer",
682 "example": 0
683 },
684 "KEY_VALUE_STORE_WRITES": {
685 "type": "number",
686 "example": 0.00005
687 },
688 "KEY_VALUE_STORE_LISTS": {
689 "type": "integer",
690 "example": 0
691 },
692 "REQUEST_QUEUE_READS": {
693 "type": "integer",
694 "example": 0
695 },
696 "REQUEST_QUEUE_WRITES": {
697 "type": "integer",
698 "example": 0
699 },
700 "DATA_TRANSFER_INTERNAL_GBYTES": {
701 "type": "integer",
702 "example": 0
703 },
704 "DATA_TRANSFER_EXTERNAL_GBYTES": {
705 "type": "integer",
706 "example": 0
707 },
708 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
709 "type": "integer",
710 "example": 0
711 },
712 "PROXY_SERPS": {
713 "type": "integer",
714 "example": 0
715 }
716 }
717 }
718 }
719 }
720 }
721 }
722 }
723 }
724}
Youtube Search Scraper 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 Scraper 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: