> ## 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 Food Results
- URL: https://serpapi.com/blog/how-to-scrape-google-food-results/
- Published: 2024-10-09T02:51:39.000Z
- Updated: 2026-03-26T00:18:34.000Z
- Author: Andy L

‼️

****\[UPDATE\]** Google has discontinued the Google Food API. As a result, our Google Food API endpoint will also be shut down. The [****Google Maps API**](https://serpapi.com/google-maps-api) offers the same information previously available through Google Food API and should be used as a replacement.

Google Maps is a famous tool for searching for places and restaurants by their names. Google has its own Google Food searches for better results and more accessibility to search.

  
The same as Google Maps results, Google Food results will return all information related to the restaurants, including title, rating, reviews, address, hours, images, links, distances, etc.

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

Google Food is a great tool for scraping massive amounts of restaurants at a location, conducting price research and analysis, and tracking your popularity with some keywords.  
Scraping Google results and Google Food is challenging when scraping from scratch. But with [SerpApi](https://serpapi.com/), you can scrape massive restaurant data effortlessly by using our Google Food API. Let's see how it works.

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2024/10/Screenshot-2024-10-07-at-17.34.11.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%5Ffood). 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/10/Screenshot-2024-10-07-at-17.35.59.png)

### Scrape your first Google Food result with SerpApi

Head to the Google Food API from the [documentation](https://serpapi.com/google-food) on [SerpApi](https://serpapi.com/) for details.

Let's find all places to have a good pizza. The data contains: "title", "rating", "reviews", "distance", "address", "hours", "website", "phone", 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_food',               # SerpApi search engine
    'q': 'pizza'
}

```

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

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

```

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

```python
import csv

header = [ "title", "rating", "reviews", "distance", "address", "hours", "website", "phone"]

with open("google_food_results.csv", "w", encoding="UTF8", newline="") as f:
    writer = csv.writer(f)
    writer.writerow(header)
    for item in results:
        writer.writerow([item.get('title'), item.get('rating'), item.get('reviews'), item.get('distance'), item.get('address'), item.get('hours'), item.get('links', {}).get('website'), item.get('links', {}).get('phone')])
```

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2024/10/Screenshot-2024-10-07-at-17.42.35.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).