Google Maps API

Google Maps API allows you to scrape the results from a Google maps search or places query.

Engine: google_maps

API Parameters
Searchdata Parameters
engine
Required

The engine of the API. Needs to be set to google_maps for this request.

api_key
Required

Your API Key

device
Optional

The device used for your search. Can be set to desktop, mobile or tablet.

Search Query
q
Required

The terms that you are searching for (the query).

Search Type
type
Required

The type of search. It can be search or place.

Advanced Google Maps Parameters
data
Optional

This parameter is required only if type is set to place. It has to be constructed in the next sequence: !4m5!3m4!1s + data_id + !8m2!3d + latitude + !4d + longitude

Geographic Location
ll
Optional

Parameter defines GPS coordinates of location where you want your q (query) to be applied. It has to be constructed in the next sequence: @ + latitude + , + longitude + , + zoom

Localization
hl
Optional

The language you want to use for your google maps search. List of supported languages

google_domain
Optional

Represents the domain from google that you want to use for your search.

Google Maps API examples

Example for q:"pizza"

Google Maps API example
GET external-link
https://api.searchdata.io/v1?engine=google_maps&api_key=YOUR_API_KEY&q=pizza&type=search
Code to integrate
external-link
Json Example external-link
{
  "search_parameters": {
    "google_url": "https://www.google.com/maps/search/pizza",
    "engine": "google_maps",
    "google_domain": "google.com",
    "device": "desktop",
    "query": "pizza",
    "type": "search"
  },
  "search_information": {
    "local_results_state": "Results for exact spelling"
  },
  "place_results": {
    "data_id": "https://ww",
    "user_reviews": {
      "summary": [],
      "most_relevant": []
    }
  },
  "local_results": [
    {
      "data_id": "0x89e379bfc249e031:0x2744a9fd10684eb",
      "gps_coordinates": {
        "latitude": 42.3503877,
        "longitude": -71.115236
      },
      "title": "OTTO",
      "rating": 4.3,
      "reviews": 365,
      "price": "$$",
      "type": "Pizza",
      "address": "888 Commonwealth Avenue",
      "description": "Gourmet pizzeria with takeout & delivery",
      "hours": "Closed · Opens at 11:00 AM",
      "position": 1
    },
    {
      "data_id": "0x89e379ef2236b031:0xf910ef7dd785af82",
      "gps_coordinates": {
        "latitude": 42.3502708,
        "longitude": -71.1137999
      },
      "title": "Boston House of Pizza",
      "rating": 4.2,
      "reviews": 82,
      "price": "$",
      "type": "Pizza",
      "address": "173 Amory St",
      "description": "Basic spot for pies, subs & burgers",
      "hours": "Closed · Opens at 11:00 AM",
      "position": 2
    },
    {
      "data_id": "0x89e379f0f2403581:0x2841b486b884b115",
      "gps_coordinates": {
        "latitude": 42.3496029,
        "longitude": -71.1055847
      },
      "title": "University Grill & Pizza",
      "rating": 4.4,
      "reviews": 76,
      "price": "$",
      "type": "Pizza",
      "address": "712 Commonwealth Avenue #1",
      "description": "Fast-food spot for pies & Greek bites",
      "hours": "Closed · Opens at 10:00 AM",
      "position": 3
    },
    {
      "data_id": "0x89e379e869d71101:0xc67403ae37365829",
      "gps_coordinates": {
        "latitude": 42.351788,
        "longitude": -71.119156
      },
      "title": "Blaze Pizza",
      "rating": 4.5,
      "reviews": 436,
      "price": "$",
      "type": "Pizza",
      "address": "961 Commonwealth Avenue",
      "description": "Hip chain of fast-crisped pizzas",
      "hours": "Closed · Opens at 11:00 AM",
      "position": 4
    },
    {
      "data_id": "0x89e37a1de7fc9e47:0xd429117177ebdbd7",
      "gps_coordinates": {
        "latitude": 42.3477013,
        "longitude": -71.1058545
      },
      "title": "Domino's Pizza",
      "rating": 3.3,
      "reviews": 402,
      "price": "$",
      "type": "Pizza",
      "address": "508 Park Dr",
      "description": "Longtime pizza chain known for delivery",
      "hours": "Closed · Opens at 10:30 AM",
      "position": 5
    },
    {
      "data_id": "0x89e379fcc30f524d:0x8fc1387d9e22dc44",
      "gps_coordinates": {
        "latitude": 42.357672,
        "longitude": -71.107884
      },
      "title": "Cambridge Pizzeria",
      "rating": 4.5,
      "reviews": 115,
      "price": "$",
      "type": "Takeout Restaurant",
      "address": "263, 4517, Brookline St",
      "description": "Old-school option for pies & subs",
      "hours": "Closed · Opens at 11:00 AM",
      "position": 6
    },
    {
      "data_id": "0x89e379c8e4d5cfc1:0x766ed60712c2b507",
      "gps_coordinates": {
        "latitude": 42.3573341,
        "longitude": -71.1077389
      },
      "title": "Dimi's Place",
      "rating": 4.7,
      "reviews": 20,
      "price": "$",
      "type": "Pizza",
      "address": "272 Brookline St",
      "hours": "Closed · Opens at 11:00 AM",
      "description": "Closed · Opens at 11:00 AM",
      "position": 7
    },
    {
      "data_id": "0x89e379c2848683bd:0x14665c2212758099",
      "gps_coordinates": {
        "latitude": 42.3515122,
        "longitude": -71.1215028
      },
      "title": "T Anthony's Pizzeria",
      "rating": 4.3,
      "reviews": 504,
      "price": "$",
      "type": "Pizza",
      "address": "1016 Commonwealth Avenue",
      "description": "Pizza joint with BU sports memorabilia",
      "hours": "Closed · Opens at 10:00 AM",
      "position": 8
    }
  ]
}

Example for data:"!4m5!3m4!1s0x4786c6ace45fe3bd:0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224"

Google Maps API example
GET external-link
https://api.searchdata.io/v1?engine=google_maps&api_key=YOUR_API_KEY&type=place&data=!4m5!3m4!1s0x4786c6ace45fe3bd:0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224
Code to integrate
external-link
Json Example external-link
{
  "search_parameters": {
    "google_url": "https://www.google.com/maps/place/data=!4m5!3m4!1s0x4786c6ace45fe3bd:0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224",
    "engine": "google_maps",
    "google_domain": "google.com",
    "device": "desktop",
    "query": "!4m5!3m4!1s0x4786c6ace45fe3bd:0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224",
    "type": "place"
  },
  "search_information": {
    "local_results_state": "Results for exact spelling",
    "query_displayed": "Starbucks Reserve Roastery Milano"
  },
  "place_results": {
    "title": "Starbucks Reserve Roastery Milano",
    "data_id": "0x4786c6ace45fe3bd:0x126d84580eedebe5",
    "gps_coordinates": {
      "latitude": 45.4649853,
      "longitude": 9.1860224
    },
    "rating": 4.4,
    "price": "$$$",
    "type": [
      "Cafe"
    ],
    "reviews": 11,
    "description": "Seattle-based coffeehouse chain known for its signature roasts, light bites and WiFi availability.",
    "place": "Piazza Cordusio, 1, 20123 Milano MI, Italy",
    "warning_amber": "Hours or services may differ",
    "public": "starbucksreserve.com",
    "phone": "+39 02 9197 0326",
    "ic_plus_code": "F57P+XC Milan, Metropolitan City of Milan, Italy",
    "hours": [
      {
        "thursday": "7AM–10PM"
      },
      {
        "friday": "7AM–10PM"
      },
      {
        "saturday": "7AM–10PM"
      },
      {
        "sunday": "7AM–10PM"
      },
      {
        "monday": "7AM–10PM"
      },
      {
        "tuesday": "7AM–10PM"
      },
      {
        "wednesday": "7AM–10PM"
      }
    ],
    "service_options": {
      "dine_in": true,
      "takeout": true,
      "delivery": false
    },
    "images": [
      {
        "title": "All",
        "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipNY6skUti7Ce8pDPW47XIDqUNr5Ago-5zXSZBnG=w446-h298-k-no"
      },
      {
        "title": "Latest\nToday",
        "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipOuPYsVjpeFaBL-vVmJYTcBf2O5KsIBKon9jGdp=w397-h298-k-no"
      },
      {
        "title": "Menu",
        "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipNWGqtNGBrWMHJKO4B2Le53vaOb_LX-ZjTwBIMl=w529-h298-k-no"
      },
      {
        "title": "Food & drink",
        "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipPB-yLR5SKg89PBjaeQFxC1sVHbml6I54R_P10-=w529-h298-k-no"
      },
      {
        "title": "Vibe",
        "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipO2jclIfib4FlX9DkpCyUvhI1ZYRCPBZtcJhGID=w397-h298-k-no"
      },
      {
        "title": "Coffee",
        "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipPaYYXWyV2KGbOxpqB70HBpgiLTM6VlSj6kQdNO=w298-h298-k-no"
      },
      {
        "title": "By owner",
        "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipNtFo7pRrqumPMJgbI4Z003sZfOlI74c-KagR3Q=w494-h298-k-no"
      },
      {
        "title": "Street View & 360°",
        "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipP5JKDD7gJgCoYMDMQ08B5BO7FsQ-aP2yIfJGbb=w224-h298-k-no-pi-0-ya142-ro-0-fo100"
      },
      {
        "title": "Videos",
        "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipMUA1_yyg7cp1ZBZVciM-xvThoA2KfWIuGLugVc=w224-h298-k-no"
      }
    ],
    "user_reviews": {
      "summary": [
        "\"The store offers a large selection of coffee drinks, desserts and food (pizza).\"",
        "\"Great atmosphere, unique place, amazing staff and service.\"",
        "\"The quality is no near to the prices they charge based in my experience .\""
      ],
      "most_relevant": [
        {
          "username": "Michael Karman",
          "rating": 4,
          "description": "It is the most Willy Wonkiest Starbucks you'll ever visit.  Worth popping in if you're in the area just to appreciate the difference from your local corner shop."
        },
        {
          "username": "Claudiu Costea",
          "rating": 5,
          "description": "Unique Starbucks store! There is nothing like you’ve seen before! Big selection of coffees! They don’t have the regular Starbucks menu. You can buy coffee from 70euro/kg to 300euro/kg."
        },
        {
          "username": "Alan",
          "rating": 5,
          "description": "One of the smaller reserve roasteries in the world, but definitely the one with the best tiramisu! Prices are high for Starbucks, but the quality is also notably higher. The carrot cupcake was delicious. Staff are all very helpful. It can get quite loud with the machines are running."
        }
      ]
    }
  }
}