> ## Content Index
> Fetch the complete content index at: https://serpapi.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Scrape Google Light Results
- URL: https://serpapi.com/blog/how-to-scrape-google-light-results/
- Published: 2024-12-20T05:01:09.000Z
- Updated: 2024-12-20T23:43:08.000Z
- Author: Andy L
- Tags: webscraping, Google Light API

Google Search is the most popular search engine. Today, we have powerful computers, so we can visit Google and get results within seconds.  
However, many small devices with limited resources like CPU and RAM are still using Google to get the search results. Google definitely still supports them.

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2024/12/Screenshot-2024-12-16-at-21.10.02.png)

Google Light results

  
But how? Let's take a closer look to how the browser works.

When you search with Google `https://www.google.com/search?q=coffee`, browsers (e.g Chrome, Firefox, Edge, Safari) will download HTML, stylesheets and javascript files.  
HTML files will define your search result structure, stylesheets make the web look beautiful, and JavaScript files make the web more dynamic. When using a powerful device to access Google Search, Google will return the full version with these 3 kinds of files and execute them. But when you use less powerful devices, Google will return a simple version of these files, without javascript, to make the page load faster.

For some applications, speed matters, and they need fast Google Search Results to proceed to the next step. Understanding that need, [SerpApi](https://serpapi.com/) provides a very fast Google Light API. Let's scrape some results with this API.

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2024/12/Screenshot-2024-12-16-at-21.12.08.png)

### **Setting Up a SerpApi Account**

[SerpApi](https://serpapi.com/) offers a free plan for newly created accounts. Head to the[ sign-up](https://serpapi.com/users/sign%5Fup?plan=free) page to register an account and complete your first search with our[ interactive playground](https://serpapi.com/playground?engine=google%5Flight). When you want to do more searches with us, please visit the[ pricing page](https://serpapi.com/pricing).

Once you are familiar with all the results, you can utilize SERP APIs using your[ API Key](https://serpapi.com/manage-api-key).

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2024/12/Screenshot-2024-12-16-at-21.12.55.png)

### Scrape your first Google Light Search result with SerpApi

Head to the Google Light Search API from the [documentation](https://serpapi.com/google-light-api) on [SerpApi](https://serpapi.com/) for details.

Let's find all organic results for "Christmas Tree" . The data contains: "position", "title", "link", "snippet", and more. You can also scrape more information with [SerpApi](https://serpapi.com/).

First, you need to install the [SerpApi client library](https://github.com/serpapi/google-search-results-python?ref=serpapi.com).

```python
pip install google-search-results
```

Set up the[ SerpApi](https://serpapi.com/?ref=serpapi.com)[ credentials](https://serpapi.com/manage-api-key?ref=serpapi.com) and search.

```python
from serpapi import GoogleSearch
import os, json, csv

params = {
    'api_key': 'YOUR_API_KEY',             # your serpapi api
    'engine': 'google_light',              # SerpApi search engine
    'q': 'Christmas Tree'
}

```

To retrieve Google Light Search Results for a query, you can use the following code:

```python
results = GoogleSearch(params).get_dict()['organic_results']

```

You can store Google Light Search Results JSON data in databases or export them to a CSV file.

```python
import csv

header = ["position", "title", "link", "snippet"]

with open("google_light_results.csv", "w", encoding="UTF8", newline="") as f:
    writer = csv.writer(f)
    writer.writerow(header)
    for item in results:
        writer.writerow([item.get('position'), item.get('title'), item.get('link'), item.get('snippet')])

```

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2024/12/Screenshot-2024-12-16-at-21.19.26.png)

This example uses Python, but you can also use all your favorite programming languages like Ruby, NodeJS, Java, PHP, and more.

If you have any questions, please feel free to [contact me](mailto:andy@serpapi.com).