Copied to clipboard!

Google Local "Places" Results API

The Google Local "Places" Results API allows a user to scrape the results of Google Places search. SerpApi is able to make sense of this information and extract ads, local_results and discover_more_places result blocks. Each of this result blocks could contain title, reviews, ratings, price, type, address, description, hours, thumbnail, gps_coordinates, place_id (ludocid and lsig parameters), links and more.

To scrape Google Local "Places" results with SerpApi, create a search with these parameters:

tbm

Required

Parameter must be set to lcl. (I.e., tbm=lcl)



Local "Places" Results examples

Local results for stores

This kind of results are usualy seen when you search for stores or retail chains (e.g. "McDonald's", "Walmart", "Costco", etc.).

GET https://serpapi.com/search?q=McDonald%27s&location=austin%2C+texas%2C+united+states&tbm=lcl Playground
{
  ...
  "local_results": [
    {
      "position": 1,
      "title": "McDonald's",
      "place_id": "2142927458143177356",
      "lsig": "AB86z5W5r155sIcs3jqfYkm9Y8Fp",
      "place_id_search": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location_requested=austin%2C+texas%2C+united+states&lsig=AB86z5W5r155sIcs3jqfYkm9Y8Fp&ludocid=2142927458143177356&q=McDonald%27s&tbm=lcl&token=16c37bb72affc4f2",
      "address": "Austin, TX",
      "phone": "(512) 442-0412",
      "hours": "Open ⋅ Closes 12AM",
      "gps_coordinates": {
        "latitude": 30.260337999999994,
        "longitude": -97.7581347
      },
      "links": {
        "website": "https://www.mcdonalds.com/us/en-us/location/TX/AUSTIN/1209-BARTON-SPRINGS/4941.html?cid=RF:YXT:GMB::Clicks",
        "directions": "https://www.google.com/maps/dir//McDonald's,+1209+Barton+Springs+Rd,+Austin,+TX+78704/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x8644b51bd54fc423:0x1dbd352b620e0a8c?sa=X&hl=en"
      }
    },
    {
      "position": 2,
      "title": "McDonald's",
      "place_id": "9805384691487752421",
      "lsig": "AB86z5VyxFwo5fQ1DvfVdezN7KgH",
      "place_id_search": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location_requested=austin%2C+texas%2C+united+states&lsig=AB86z5VyxFwo5fQ1DvfVdezN7KgH&ludocid=9805384691487752421&q=McDonald%27s&tbm=lcl&token=c6e64d6f4e535e32",
      "address": "Austin, TX",
      "phone": "(512) 926-1234",
      "hours": "Open 24 hours",
      "gps_coordinates": {
        "latitude": 30.2723144,
        "longitude": -97.69689249999999
      },
      "links": {
        "website": "https://www.mcdonalds.com/us/en-us/location/TX/AUSTIN/1143-12-AIRPORT-BLVD/11150.html?cid=RF:YXT:GMB::Clicks",
        "directions": "https://www.google.com/maps/dir//McDonald's,+1143+1+2+Airport+Blvd,+Austin,+TX+78721/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x8644b6760cfcb3c7:0x8813b96cfe2e40e5?sa=X&hl=en"
      }
    },
    {
      "position": 3,
      "title": "McDonald's",
      "place_id": "16621589155332527133",
      "lsig": "AB86z5Vz8AUqEhQ-Xm24BLlm6NAS",
      "place_id_search": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location_requested=austin%2C+texas%2C+united+states&lsig=AB86z5Vz8AUqEhQ-Xm24BLlm6NAS&ludocid=16621589155332527133&q=McDonald%27s&tbm=lcl&token=ea75103f26ab87a7",
      "address": "Austin, TX",
      "phone": "(512) 444-9229",
      "hours": "Open 24 hours",
      "gps_coordinates": {
        "latitude": 30.235705499999998,
        "longitude": -97.7241141
      },
      "links": {
        "delivery": "https://orderfood.google.com/chooseprovider?restaurantId=/g/1tdlc31t&hl=en-US&gei=mzOwXZD-NsnJwQLBhJjQCw&utm_source=search_restaurant_list&authuser=-1&fo_s=OA,AH&fo_m=CDoIOQgxCDAILwg7CCAIOAgqCCsIKAgYCCcIKQgPCBMICwgsCAwIEQgKCC0IFAgSCC4ICAgQCB4IHQgmCAMIAgg_CDIIPggzCCUIPAg9CDcIIggkCDYINAg1CCM%3D",
        "website": "https://www.mcdonalds.com/us/en-us/location/TX/AUSTIN/2426-E-RIVERSIDE/10919.html?cid=RF:YXT:GMB::Clicks",
        "directions": "https://www.google.com/maps/dir//McDonald's,+2426+E+Riverside+Dr,+Austin,+TX+78741/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x8644b44140af8311:0xe6abbf459614941d?sa=X&hl=en"
      }
    },
    ...
  ...
}

Local results for products

This kind of results are usualy seen when you search for a product (e.g. "Coffee", "Pizza", "barbeque", etc.) or places that fall under certain categories (e.g. "Romantic Restaurants", "Outdoor Bars", "Best Breakfasts", etc.).

GET https://serpapi.com/search?q=pizza&location=austin%2C+texas%2C+united+states&tbm=lcl Playground
{
  ...
  "ads": [
    {
      "position": 1,
      "title": "Domino's Pizza",
      "place_id": "1101873355030580567",
      "lsig": "AB86z5W4Sct0nI6RGlxvSmYe8gtC",
      "place_id_search": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location_requested=austin%2C+texas%2C+united+states&lsig=AB86z5W4Sct0nI6RGlxvSmYe8gtC&ludocid=1101873355030580567&q=pizza&tbm=lcl&token=a9696c4b992587cd",
      "rating": 3.4,
      "reviews": 73,
      "price": "$",
      "type": "Pizza delivery",
      "address": "3701 Guadalupe St",
      "hours": "Closed ⋅ Opens 10AM",
      "thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QAqRXhpZgAA///////////0FaLGKgAYYkBfcuPLi//9kx3d",
      "gps_coordinates": {
        "latitude": 30.302094,
        "longitude": -97.738188
      }
    }
  ],
  "local_results": [
    {
      "position": 1,
      "title": "The Onion",
      "place_id": "12932225639602287481",
      "lsig": "AB86z5W4Sct0nI6RGlxvSmYe8gtC",
      "place_id_search": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location_requested=austin%2C+texas%2C+united+states&lsig=AB86z5W4Sct0nI6RGlxvSmYe8gtC&ludocid=12932225639602287481&q=pizza&tbm=lcl&token=d214b038b077a8f9",
      "rating": 4.0,
      "reviews": 190,
      "price": "$",
      "type": "Pizza",
      "address": "408 Brazos St",
      "hours": "Closed ⋅ Opens 11AM",
      "description": "Unassuming, late-night source for basic pies, pizza rolls & calzones in compact quarters.",
      "thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABA///////////rHCUVQwklliaS/9kx3d",
      "gps_coordinates": {
        "latitude": 30.302094,
        "longitude": -97.738188
      }
    },
    {
      "position": 2,
      "title": "The Backspace",
      "place_id": "12251292710800551076",
      "lsig": "AB86z5W7dGwuI8I2AaSCdH_lrZ86",
      "place_id_search": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location_requested=austin%2C+texas%2C+united+states&lsig=AB86z5W7dGwuI8I2AaSCdH_lrZ86&ludocid=12251292710800551076&q=pizza&tbm=lcl&token=4f67080b5ac3e35c",
      "rating": 4.5,
      "reviews": 402,
      "price": "$$",
      "type": "Pizza",
      "address": "507 San Jacinto Blvd",
      "hours": "Closed ⋅ Opens 11AM",
      "description": "Thin-crust pies, small plates & beer/wine plus half-price deals during happy hour.",
      "thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABA///////////+eoVXjnSDQMVHXURx//Z",
      "gps_coordinates": {
        "latitude": 30.266487799999997,
        "longitude": -97.74212949999999
      }
    },
    ...
  "discover_more_places": [
    {
      "title": "Outdoor dining",
      "link": "https://www.google.com/search?gl=us&hl=en&tbm=lcl&q=outdoor+dining&rflfq=1&num=10&uule=w+CAQQCFISCS8DzKCZtUSGEXrVadRLRptd&lsspp=CY4ZnC40r4aP&rlt=Outdoor+dining&owsq=pizza&sa=X&ved=0ahUKEwj22LOjoLLlAhUGKawKHaigDEIQ9s8CCJkBMAU",
      "serpapi_link": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location_requested=austin%2C+texas%2C+united+states&q=Outdoor+dining&tbm=lcl&token=4ddb1e63ef993dc7&uule=w%2BCAQQCFISCS8DzKCZtUSGEXrVadRLRptd",
      "thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
    },
    {
      "title": "Restaurants that deliver",
      "link": "https://www.google.com/search?gl=us&hl=en&tbm=lcl&q=Restaurants+that+deliver&rflfq=1&num=10&uule=w+CAQQCFISCS8DzKCZtUSGEXrVadRLRptd&lsspp=CeptAJH67FXH&rlt=Restaurants+that+deliver&owsq=pizza&sa=X&ved=0ahUKEwj22LOjoLLlAhUGKawKHaigDEIQ9s8CCJsBMAY",
      "serpapi_link": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location_requested=austin%2C+texas%2C+united+states&q=Restaurants+that+deliver&tbm=lcl&token=900169e49b85f7b5&uule=w%2BCAQQCFISCS8DzKCZtUSGEXrVadRLRptd",
      "thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABA///////dc4wUjCiv/9kx3d"
    },
    ...
  ],
  ...
}

Local results for a specific place

This kind of results are obtained by providing place_id (ludocid) parameter of the specific place. This parameter is available as part of the SerpApi Local Pack API and Places Results API.
In the example below, by providing the place_id (ludocid=1101873355030580567) as part of the SerpApi search, we are geting only the specific Domino's Pizza resturant.

GET https://serpapi.com/search?q=pizza&location=austin%2C+texas%2C+united+states&tbm=lcl&ludocid=1101873355030580567 Playground
{
  ...
  "ads": [
    {
      "position": 1,
      "title": "Domino's Pizza",
      "place_id": "1101873355030580567",
      "lsig": "AB86z5W4Sct0nI6RGlxvSmYe8gtC",
      "place_id_search": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location_requested=austin%2C+texas%2C+united+states&lsig=AB86z5W4Sct0nI6RGlxvSmYe8gtC&ludocid=1101873355030580567&q=pizza&tbm=lcl&token=a9696c4b992587cd",
      "rating": 3.4,
      "reviews": 73,
      "price": "$",
      "type": "Pizza delivery",
      "address": "3701 Guadalupe St",
      "phone": "(512) 580-6488",
      "hours": "Closed ⋅ Opens 10AM",
      "gps_coordinates": {
        "latitude": 30.302094,
        "longitude": -97.738188
      },
      "links": {
        "website": "https://www.google.com/aclk?sa=l&ai=DChcSEwiHrcDrpLLlAhULboYKHQDVBncYABAAGgJ2dQ&sig=AOD64_3Dq_lTqO_MdrmtahxhZyoi9G7Vyw&q=&ctype=99&ved=0ahUKEwj4x7rrpLLlAhUjzlkKHQ5mAs4QhKwBCB8&adurl=",
        "directions": "https://www.google.com/aclk?sa=l&ai=DChcSEwiHrcDrpLLlAhULboYKHQDVBncYABABGgJ2dQ&sig=AOD64_0i0x-t8WjsqlVJA2v6lJAGYxlFxg&adurl=&ctype=50&q="
      }
    }
  ],
  "local_results": [
    {
      "position": 1,
      "title": "Domino's Pizza",
      "place_id": "1101873355030580567",
      "lsig": "AB86z5W4Sct0nI6RGlxvSmYe8gtC",
      "place_id_search": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location_requested=austin%2C+texas%2C+united+states&lsig=AB86z5W4Sct0nI6RGlxvSmYe8gtC&ludocid=1101873355030580567&q=pizza&tbm=lcl&token=a9696c4b992587cd",
      "rating": 3.4,
      "reviews": 74,
      "price": "$",
      "address": "3701 Guadalupe St",
      "phone": "(512) 580-6488",
      "hours": "Closed ⋅ Opens 10AM",
      "description": "Delivery/carryout chain offering a wide range of pizza, plus chicken & other sides.",
      "gps_coordinates": {
        "latitude": 30.302094,
        "longitude": -97.738188
      },
      "links": {
        "website": "https://www.dominos.com/en/?utm_source=google&utm_medium=loclist&utm_campaign=localmaps",
        "directions": "https://www.google.com/maps/dir//Domino's+Pizza,+3701+Guadalupe+St,+Austin,+TX+78705/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x8644ca7ee29673cd:0xf4aa3fa7a10cd57?sa=X&hl=en"
      }
    }
  ]
  ...
}