Google Search Results Scraper avatar

Google Search Results Scraper

Try for free

Pay $3.50 for 1,000 results

Go to Store
Google Search Results Scraper

Google Search Results Scraper

apify/google-search-scraper
Try for free

Pay $3.50 for 1,000 results

Scrape Google Search Engine Results Pages (SERPs). Select the country or language and extract organic and paid results, AI overviews, ads, queries, People Also Ask, prices, reviews, like a Google SERP API. Export scraped data, run the scraper via API, schedule runs, or integrate with other tools.

Do you want to learn more about this Actor?

Get a demo

Search term(s)

queriesstringRequired

Use regular search words or enter Google Search URLs. You can also apply advanced Google search techniques, such as AI site:twitter.com or javascript OR python. You can also define selected search filters as separate fields below (in the Advanced search filters section). Just ensure that your queries do not exceed 32 words to comply with Google Search limits.

Results per page

resultsPerPageintegerOptional

Max pages per search

maxPagesPerQueryintegerOptional

Country

countryCodeEnumOptional

Specifies the country used for the search and the Google Search domain (e.g. google.es for Spain). By default, the actor uses United States (google.com).

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.

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 ""

Exact location (Google UULE parameter)

locationUulestringOptional

The code for the exact location for the Google search. 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.

Force exact match

forceExactMatchbooleanOptional

If checked, the scraper will search for the exact phrase in the query. This is done by wrapping the query in quotes. Note that this may return fewer results. Also note that if you're using operators such as OR or AND, the whole query will be wrapped in quotes, such as "Windows AND macOS". If you want to search for queries such as "Windows" AND "macOS", you need to specify them directly in the queries field.

Default value of this property is false

Site

sitestringOptional

Limits the search to a specific site, such as: site:example.com. Note that the site filter takes precedence over the relatedToSite filter. If both filters are set, the relatedToSite filter will be ignored and not added to the search queries.

Related to site

relatedToSitestringOptional

Filters pages related to a specific site, such as: related:example.com. Note that the site filter takes precedence over the relatedToSite filter. If both filters are set, the relatedToSite filter will be ignored and not added to the search queries.

Words in title

wordsInTitlearrayOptional

Filters pages with specific words in the title. The scraper uses the intitle: operator, even for multiple words (e.g. recipe site:allrecipes.com intitle:"easy apple" intitle:pie). There's also a allintitle: operator available, but it's problematic when combined with other search filters, so the scraper avoids using it. If you need to use the allintitle: operator specifically, you can include it in your custom queries from the queries field.

Default value of this property is []

Words in text

wordsInTextarrayOptional

Filters pages with specific words in the text. The scraper uses the intext: operator, even for multiple words (e.g. cartoon site:wikipedia.com intext:cat intext:mouse). There's also a allintext: operator available, but it's problematic when combined with other search filters, so the scraper avoids using it. If you need to use the allintext: operator specifically, you can include it in your custom queries from the queries field.

Default value of this property is []

Words in URL

wordsInUrlarrayOptional

Filters pages with specific words in the URL. The scraper uses the inurl: operator, even for multiple words (e.g. recipe site:allrecipes.com inurl:apple inurl:pie). There's also a allinurl: operator available, but it's problematic when combined with other search filters, so the scraper avoids using it. If you need to use the allinurl: operator specifically, you can include it in your custom queries from the queries field.

Default value of this property is []

Quick date range

quickDateRangestringOptional

Filters results from a specific date range. d[number] specifies the number of past days (e.g. the past 10 days can be written as d10). The same applies to weeks, months, and years: w[number], m[number], y[number]. Example for the past year: '1y' or even 'y'. The value is passed to Google Search using the tbs URL query parameter, prefixed with qdr:. You should avoid combining this filter with the beforeDate and afterDate filters to prevent conflicts.

Before date

beforeDatestringOptional

Filters results from before a particular date. The scraper uses the before: operator, such as apple before:2018-07-29. You should avoid combining this filter with the quickDateRange filter to prevent conflicts.

After date

afterDatestringOptional

Filters results from after a particular date. The scraper uses the after: operator, such as apple after:2022-01-30. You should avoid combining this filter with the quickDateRange filter to prevent conflicts.

File types

fileTypesarrayOptional

Filters results of specific file types using the filetype: operator, such as filetype:pdf. You can select multiple file types as well. They will be combined with the OR operator, for example: filetype:doc OR filetype:txt. If you need to use a file type that is not in the list (such as a source code file type), you can include it in your custom queries from the queries field, using the filetype: operator.

Mobile results

mobileResultsbooleanOptional

If checked the scraper will return results for mobile version of Google search. Otherwise desktop results are returned.

Default value of this property is false

Unfiltered results

includeUnfilteredResultsbooleanOptional

If checked the lower quality results that Google normally filters out will be included.

Default value of this property is false

Save HTML to dataset

saveHtmlbooleanOptional

If checked the HTML of the 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.

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 pages in the browser. However, the use of this feature may slow down the Actor.

Default value of this property is true

Include icon image data (base64)

includeIconsbooleanOptional

If checked all of the results (organicResults, paidResults, suggestedResults) will contain Base64-encoded icon image data if found.

Default value of this property is false

Developer
Maintained by Apify

Actor Metrics

  • 2.5k monthly users

  • 262 stars

  • >99% runs succeeded

  • 4.2 days response time

  • Created in Feb 2019

  • Modified 9 days ago