Google Search Scraper avatar
Google Search Scraper
Try for free

No credit card required

View all Actors
Google Search Scraper

Google Search Scraper

apify/google-search-scraper
Try for free

No credit card required

Search queries or URLs

queriesstringRequired

Google Search queries (e.g. food in NYC) and/or full URLs (e.g. https://www.google.com/search?q=food+NYC).

Enter one item per line.

Results per page

resultsPerPageintegerOptional

Number of search results per page. By default, Google Search returns 10 results. The allowed values are: 10, 20, 30, 40, 50 and 100.

This setting only applies to Search queries, but not to URLs.

Max pages per query

maxPagesPerQueryintegerOptional

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.

Mobile results

mobileResultsbooleanOptional

If checked, the crawler will return results for the mobile version of the Google Search. By default, desktop results are returned.

Default value of this property is false

CSV friendly output (1 result on 1 row)

csvFriendlyOutputbooleanOptional

If checked, the crawler will return results in a structure suitable for CSV format. Only organic and paid results are included.

Default value of this property is false

Country

countryCodeEnumOptional

Country determines the IP address of the proxy used for the query and the Google Search domain (e.g. google.es for Spain). The values must be lower-cased ISO 3166 country codes supported by Google. By default, the actor uses United States (google.com).

This setting only applies to Search queries, but not to URLs.

Value options:

"af": string"al": string"dz": string"as": string"ad": string"ao": string"ai": string"aq": string"ag": string"ar": string"am": string"aw": string"au": string"at": string"az": string"bs": string"bh": string"bd": string"bb": string"by": string"be": string"bz": string"bj": string"bm": string"bt": string"bo": string"ba": string"bw": string"bv": string"br": string"io": string"bn": string"bg": string"bf": string"bi": string"kh": string"cm": string"ca": string"cv": string"ky": string"cf": string"td": string"cl": string"cn": string"cx": string"cc": string"co": string"km": string"cg": string"cd": string"ck": string"cr": string"ci": string"hr": string"cu": string"cy": string"cz": string"dk": string"dj": string"dm": string"do": string"ec": string"eg": string"sv": string"gq": string"er": string"ee": string"et": string"fk": string"fo": string"fj": string"fi": string"fr": string"gf": string"pf": string"tf": string"ga": string"gm": string"ge": string"de": string"gh": string"gi": string"gr": string"gl": string"gd": string"gp": string"gu": string"gt": string"gn": string"gw": string"gy": string"ht": string"hm": string"va": string"hn": string"hk": string"hu": string"is": string"in": string"id": string"ir": string"iq": string"ie": string"il": string"it": string"jm": string"jp": string"jo": string"kz": string"ke": string"ki": string"kp": string"kr": string"kw": string"kg": string"la": string"lv": string"lb": string"ls": string"lr": string"ly": string"li": string"lt": string"lu": string"mo": string"mk": string"mg": string"mw": string"my": string"mv": string"ml": string"mt": string"mh": string"mq": string"mr": string"mu": string"yt": string"mx": string"fm": string"md": string"mc": string"mn": string"ms": string"ma": string"mz": string"mm": string"na": string"nr": string"np": string"nl": string"an": string"nc": string"nz": string"ni": string"ne": string"ng": string"nu": string"nf": string"mp": string"no": string"om": string"pk": string"pw": string"ps": string"pa": string"pg": string"py": string"pe": string"ph": string"pn": string"pl": string"pt": string"pr": string"qa": string"re": string"ro": string"ru": string"rw": string"sh": string"kn": string"lc": string"pm": string"vc": string"ws": string"sm": string"st": string"sa": string"sn": string"cs": string"sc": string"sl": string"sg": string"sk": string"si": string"sb": string"so": string"za": string"gs": string"es": string"lk": string"sd": string"sr": string"sj": string"sz": string"se": string"ch": string"sy": string"tw": string"tj": string"tz": string"th": string"tl": string"tg": string"tk": string"to": string"tt": string"tn": string"tr": string"tm": string"tc": string"tv": string"ug": string"ua": string"ae": string"gb": string"us": string"um": string"uy": string"uz": string"vu": string"ve": string"vn": string"vg": string"vi": string"wf": string"eh": string"ye": string"zm": string"zw": string

Language

languageCodeEnumOptional

Language for the search results, which is passed to Google Search as the hl 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 ISO 639 language codes supported by Google.

This setting only applies to Search queries, but not to URLs.

Value options:

"af": string"sq": string"sm": string"ar": string"az": string"eu": string"be": string"bn": string"bh": string"bs": string"bg": string"ca": string"zh-CN": string"zh-TW": string"hr": string"cs": string"da": string"nl": string"en": string"eo": string"et": string"fo": string"fi": string"fr": string"fy": string"gl": string"ka": string"de": string"el": string"gu": string"iw": string"hi": string"hu": string"is": string"id": string"ia": string"ga": string"it": string"ja": string"jw": string"kn": string"ko": string"la": string"lv": string"lt": string"mk": string"ms": string"ml": string"mt": string"mr": string"ne": string"no": string"nn": string"oc": string"fa": string"pl": string"pt-BR": string"pt-PT": string"pa": string"ro": string"ru": string"gd": string"sr": string"si": string"sk": string"sl": string"es": string"su": string"sw": string"sv": string"tl": string"ta": string"te": string"th": string"ti": string"tr": string"uk": string"ur": string"uz": string"vi": string"cy": string"xh": string"zu": string

Default value of this property is ""

UULE location code

locationUulestringOptional

The code for geolocation of search results. It's passed to Google Search as the uule URL query parameter. You can use the UULE code generator. Learn more about emulating local search.

This setting only applies to Search queries, but not to URLs.

Max concurrency

maxConcurrencyintegerOptional

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.

Default value of this property is 10

Save HTML to dataset

saveHtmlbooleanOptional

If checked, the HTML of Google Search results pages will be stored to the default dataset, under the html property. This is useful if you need to process the HTML, but it makes the dataset large and reduces performance.

Default value of this property is false

Save HTML to key-value store

saveHtmlToKeyValueStorebooleanOptional

If checked, the HTML of the Google Search results pages will be stored to the default key-value store and links to the files stored to the dataset under the htmlSnapshotUrl property. This is useful for debugging, since you can easily view the the pages in browser, but use of this feature has some performance penalty.

Default value of this property is false

Include unfiltered results

includeUnfilteredResultsbooleanOptional

If checked, the lower quality results that Google normally filters out will be included. Usually it is few hundred extra results.

Default value of this property is false

Custom data function

customDataFunctionstringOptional

Custom JavaScript function to extract additional attributes from the HTML of the result pages. The function accepts the same parameters as the handlePageFunction of the CheerioCrawler in Apify SDK. The return value of the function is saved to the results as the customData property.

Developer
Community logoMaintained by Community
Actor metrics
  • 2 monthly users
  • 100.0% runs succeeded
  • Created in Apr 2019
  • Modified almost 2 years ago
Categories

You might also like these Actors