
Google Search Results (SERP) Scraper
Pay $3.50 for 1,000 results

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