Google Search Scraper avatar

Google Search Scraper

Try for free

No credit card required

Go to Store
Google Search Scraper

Google Search Scraper

mtrunkat.com/google-search-scraper
Try for free

No credit card required

Bla bla

Developer
Maintained by Community

Actor Metrics

  • 2 monthly users

  • 5 bookmarks

  • 0% runs succeeded

  • Created in Apr 2019

  • Modified 3 years ago

Categories

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

Google 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 Google 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: