Scrapingdog

Google Local API

The Google Local API retrieves local business listings from Google search including ratings, reviews, addresses, GPS coordinates, and business type. Costs 5 API credits per request.

Endpoint: https://api.scrapingdog.com/google_local

API Parameters

πŸ”‘

Authentication

  • api_key Required
    Your personal API key. Available on your dashboard

    Type: String
πŸ”

Search Query

  • query Required
    This is a Google Search Query. Example: query=coffee+in+manhattan

    Type: String
🌍

Geographic Location and Localization

  • location Optional
    The location from where you want to scrape the local results. Example: Manhattan, New York

    Note: Cannot be used together with the uule parameter.

    Type: String
  • uule Optional
    It is a parameter that specifies the geographic location or locale for which the search results should be tailored. Possible Value could be w+CAIQIFJlbWF5IFN0YXRlcw==

    Note: Cannot be used together with the location parameter.

    Type: String
  • country Optional
    ISO code of the country from which you are seeking Google search results.

    Default: us

    Type: String
  • language Optional
    Language of the results. Possible Values - en, es, fr, de, etc.

    Default: en

    Type: String
  • domain Optional
    To obtain local results from a specific country, for example, for India, it will be "google.co.in," and for the UK, it will be "google.co.uk".

    Default: google.com

    Type: String
βš™

️ Advanced Filters

  • ludocid Optional
    Google My Business listing ID (CID) you want to scrape, also known as the Google Place ID.

    Type: String
  • tbs Optional
    to be searched - An advanced parameter to filter search results.

    Type: String
πŸ“„

Pagination

  • page Optional
    This is the page number of Google searches. Its value can be 0 for the first page, 1 for the second page, and so on.

    Default: 0

    Type: String

API Examples

Code to Integrate
curl "https://api.scrapingdog.com/google_local?api_key=APIKEY&query=coffee+in+manhattan"
API Response
{
  "local_results": [
    {
      "title": "Bird & Branch Coffee Roasters",
      "rating": "4.7",
      "reviews": "762",
      "price": "$1–10",
      "description": "Family-run specialty coffee shop",
      "address": "359 W 45th St",
      "type": "Coffee shop",
      "place_id": "197653116721562462",
      "gps_coordinates": {
        "lat": "40.7602998",
        "lng": "-73.9907758"
      }
    }
  ]
}