Google Search Scraper avatar

Google Search Scraper

Try for free

3 days trial then $20.00/month - No credit card required now

View all Actors
Google Search Scraper

Google Search Scraper

epctex/google-search-scraper
Try for free

3 days trial then $20.00/month - No credit card required now

Boost SEO with our tool! Explore organic & paid results, People Also Ask, and Related Queries. Select countries, languages, and precise locations for tailored insights.

Actor - Google Search Scraper

Google Search scraper

Since Google Search doesn't provide a good and free API, this actor should help you to retrieve data from it.

The Google Search data scraper supports the following features:

  • Unlock Comprehensive Search Results - Gather every search result from Google, unfiltered and exhaustive.

  • Maximize Your Data Collection - Collect an extensive range of search results, including both organic and paid listings, with precision and efficiency.

  • Global Insights, Local Focus - Customize search results by country and language with ease, ensuring your data reflects the global and local perspectives you need.

  • Precision Location-Based Insights - Gather results for a specific location - down to the street level. Refine your search intelligence and understand how information varies across geographies.

  • Unleash the Power of "People Also Ask" - Discover related queries and expand your search intelligence, gaining deeper insights into user intent and content opportunities.

  • Expand Insights with Related Queries - Unlock valuable search trends and user interests with our feature to retrieve "Related Queries." Gain a deeper understanding of search intent and uncover hidden opportunities for your business or research.

  • Effortless Google Search Mastery - Harness the full potential of Google search, effortlessly retrieving the data you need to inform your strategies and decisions.

  • Data in Your Preferred Format - Export results in XML, JSON, CSV, or Excel, your choice! Tailor your data output to match your analysis and reporting needs effortlessly.

Bugs, fixes, updates, and changelog

This scraper is under active development. If you have any feature requests you can create an issue from here.

Input Parameters

The input of this scraper should be JSON containing the list of pages on Google Search that should be visited. Required fields are:

  • startUrls: (Optional) (Array) List of Google Search URLs. You should only include search URLs. It must be used if queries parameter is not used.

  • queries: (Optional) (Array) Keywords you want to search on Google. It must be used if startUrls parameter is not used.

  • countryCode: (Optional) (String) This option determines the Google search domain by the country code. It only applies to the search queries.

  • languageCode: (Optional) (String) This option determines the language of the Google search results which is passed to Google Search as the hl URL query parameter.

  • locationUule: (Optional) (String) 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 https://padavvan.github.io/.

  • maxItems: (Optional) (Integer) You can limit scraped items. This should be useful when you search through the big lists or search results.

  • resultsPerPage: (Optional) (String) Number of search results for each Google result page. By default, Google Search returns 10 results per page. The allowed values are 10, 20, 30, 40, 50 and 100.

  • includeUnfilteredResults: (Optional) (Boolean) If checked, the lower-quality results that Google normally filters out will be included. This usually consists of a few hundred extra results.

  • includePeopleAlsoAsk: (Optional) (Boolean) If checked, the 'People also ask' field will be included in the output.

  • csvFriendlyOutput: (Optional) (Boolean) If enabled, each search result will be saved to a separate file instead of grouping them in batches. This is useful for managing and processing individual records separately.

  • endPage: (Optional) (Integer) The page number that you want to end with. By default there is no end page. This is applies to all search requests and startUrls individually.

  • proxy: (Required) (Proxy Object) Proxy configuration.

  • extendOutputFunction: (Optional) (String) Function that takes a JQuery handle ($) as an argument and returns an object with data.

  • customMapFunction: (Optional) (String) Function that takes each object's handle as an argument and returns the object with executing the function.

This solution requires the use of Proxy servers, either your own proxy servers or you can use Apify Proxy.

Tip

When you want to scrape over a specific list URL, just copy and paste the link as one of the startUrl.

If you would like to scrape only the first page of a list then put the link for the page and have the endPage as 1.

With the last approach that is explained above you can also fetch any interval of pages. If you provide the 5th page of a list and define the endPage parameter as 6 then you'll have the 5th and 6th pages only.

Compute Unit Consumption

The actor is optimized to run blazing fast and scrape as many items as possible. Therefore, it forefronts all the detailed requests. If the actor doesn't block very often it'll scrape 100 listings in 2 minutes with ~0.04-0.45 compute units.

Google Search Scraper Input example

1{
2  "queries":[
3    "sculpture"
4  ],
5  "endPage":2,
6  "maxItems": 10,
7  "startUrls":[
8    "https://www.google.com/search?q=fitness"
9  ],
10  "countryCode": "us",
11  "languageCode": "tr",
12  "locationUule":"w+CAIQICIIaXN0YW5idWw=",
13  "resultsPerPage":"20",
14  "includeUnfilteredResults": true,
15  "csvFriendlyOutput": false,
16  "proxy":{
17    "useApifyProxy":true
18  }
19}

During the Run

During the run, the actor will output messages letting you know what is going on. Each message always contains a short label specifying which page from the provided list is currently specified. When items are loaded from the page, you should see a message about this event with a loaded item count and total item count for each page.

If you provide incorrect input to the actor, it will immediately stop with a failure state and output an explanation of what is wrong.

Google Search Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any language (Python, PHP, Node JS/NPM). See the FAQ or our API reference to learn more about getting results from this Google Search actor.

Scraped Google Search Properties

The structure of each item in Google Search looks like this:

Item Detail

1{
2	"url": "https://google.com/search?q=sculpture&gl=us&num=20&hl=tr&filter=0&uule=w%2BCAIQICIIaXN0YW5idWw%3D",
3	"name": "sculpture - Google'da Ara",
4	"paidResults": [
5		{
6			"title": "Steel Sculpture Manufacturer - Fabrication for World Sculptor",
7			"url": "https://www.sinosculpture.com/case/stainless-steel-sculpture/LOVEME-MEXICO.html",
8			"displayedUrl": "https://www.sinosculpture.com",
9			"description": "Steel Sculpture Manufacturer - Fabrication for World Sculptorsinosculpture.comsinosculpture.comProviding fabrication, 3D modeling, mirror polishing for contemporary art metal sculpture. Installed in USA, UK, Singapore, Italy, UAE, Thai etc. for world sculptor and architect.",
10			"siteLinks": [
11				{
12					"title": "Custom for Sculptor",
13					"url": "https://www.sinosculpture.com/video/intl_report/"
14				},
15				{
16					"title": "3D Tech Assistance",
17					"url": "https://www.sinosculpture.com/service/"
18				},
19				{
20					"title": "Superb Mirrored Sculpture",
21					"url": "https://www.sinosculpture.com/case/stainless-steel-sculpture/"
22				},
23				{
24					"title": "Sky mirror polish",
25					"url": "https://www.sinosculpture.com/video/latest_program/"
26				}
27			],
28			"type": "paid"
29		}
30	],
31	"organicResults": [
32		{
33			"title": "Sculpture - Tate",
34			"url": "https://www.tate.org.uk/art/art-terms/s/sculpture#:~:text=Three%2Ddimensional%20art%20made%20by,carving%2C%20modelling%2C%20casting%2C%20constructing",
35			"displayedUrl": "https://www.tate.org.uk › art › art-terms › sculpture",
36			"description": "",
37			"siteLinks": [],
38			"type": "organic",
39			"position": 1
40		},
41		{
42			"title": "Sculpture - Tate",
43			"url": "https://www.tate.org.uk/art/art-terms/s/sculpture#:~:text=Three%2Ddimensional%20art%20made%20by,carving%2C%20modelling%2C%20casting%2C%20constructing",
44			"displayedUrl": "https://www.tate.org.uk › art › art-terms › sculpture",
45			"description": "",
46			"siteLinks": [],
47			"type": "organic",
48			"position": 2
49		},
50		{
51			"title": "Sculpture",
52			"url": "https://en.wikipedia.org/wiki/Sculpture",
53			"displayedUrl": "https://en.wikipedia.org › wiki",
54			"description": "Sculpture is the three-dimensional art work which is physically presented in the dimensions of height, width and depth. It is one of the plastic arts. Durable ...",
55			"siteLinks": [
56				{
57					"title": "Bronze sculpture",
58					"url": "https://en.wikipedia.org/wiki/Bronze_sculpture"
59				},
60				{
61					"title": "Classical sculpture",
62					"url": "https://en.wikipedia.org/wiki/Classical_sculpture"
63				},
64				{
65					"title": "Architectural sculpture",
66					"url": "https://en.wikipedia.org/wiki/Architectural_sculpture"
67				},
68				{
69					"title": "Butter sculpture",
70					"url": "https://en.wikipedia.org/wiki/Butter_sculpture"
71				}
72			],
73			"type": "organic",
74			"position": 3
75		}
76	],
77	"relatedQueries": [
78		{
79			"title": "Sculpture Parfüm",
80			"url": "https://www.google.com/search?num=20&sca_esv=566249636&gl=us&hl=tr&q=Sculpture+Parf%C3%BCm&sa=X&ved=2ahUKEwimltiyg7SBAxXStTEKHZn7CIUQ1QJ6BQiAARAB"
81		},
82		{
83			"title": "Sculpture art",
84			"url": "https://www.google.com/search?num=20&sca_esv=566249636&gl=us&hl=tr&q=Sculpture+art&sa=X&ved=2ahUKEwimltiyg7SBAxXStTEKHZn7CIUQ1QJ6BQiBARAB"
85		}
86	],
87	"searchQuery": {
88		"query": "sculpture",
89		"countryCode": "us",
90		"languageCode": "tr",
91		"resultsPerPage": "20",
92		"domain": "google.com",
93		"locationUule": "w+CAIQICIIaXN0YW5idWw="
94	}
95}

Contact

Please visit us through epctex.com to see all the products that are available for you. If you are looking for any custom integration or so, please reach out to us through the chat box in epctex.com. In need of support? devops@epctex.com is at your service.

Developer
Maintained by Community
Actor metrics
  • 41 monthly users
  • 6 stars
  • 96.8% runs succeeded
  • Created in Sep 2023
  • Modified about 9 hours ago