Google Local Pack API

For some requests, Google search includes local results, called local pack, and a local map. SerpApi is able to scrape, extract, and make sense of this information.

When SerpApi encounters a local map and/or local results, we add them to our JSON output. From the local_map, we are able to extract link, gps_coordinates, image and streetview information. From the local_results, we are able to extract position title, reviews, price, type, address, description, hours, extensions, thumbnail, gps_coordinates, place_id (ludocid and lsig parameters) and more.

API Examples

Results for: stores and places

Results for: stores and places

JSON Example

{
  ...
  "local_map": {
    "link": "https://www.google.com/search?hl=en&gl=us&q=mcdonalds&npsic=0&rflfq=1&rldoc=1&rlha=0&rllag=32431150,-99733487,4363&tbm=lcl&sa=X&ved=2ahUKEwi07q2576DlAhUEv54KHXtrAtUQtgN6BAgIEAQ",
    "image": "<URL to image>",
    "gps_coordinates": {
      "latitude": 32.43115,
      "longitude": -99.733487
    }
  },
  "local_results": {
    "more_locations_link": "https://www.google.com/search?hl=en&gl=us&q=mcdonalds&npsic=0&rflfq=1&rldoc=1&rlha=0&rllag=32431150,-99733487,4363&tbm=lcl&sa=X&ved=2ahUKEwi07q2576DlAhUEv54KHXtrAtUQjGp6BAgIEC0",
    "places": [
      {
        "position": 1,
        "label": "A",
        "title": "McDonald's",
        "place_id": "9217580661049740855",
        "lsig": "AB86z5WZ0L4jOJdygGcgZJxwaZqT",
        "place_id_search": "https://serpapi/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=austin%2C+tx%2C+texas%2C+united+states&ludocid=9217580661049740855&q=mcdonalds&tbm=lcl&token=ae38ed37970df6b0",
        "links": {
          "delivery": "https://orderfood.google.com/chooseprovider?restaurantId=/g/1thy06lf&hl=en-US&gei=IBmnXbTeK4T--gT71omoDQ&utm_source=search_restaurant_list&authuser=-1&fo_s=OA,AH&fo_m=CDEIMAgvCCAIOAgqCCsIKAgYCCcIKQgPCBMICwgsCAwIEQgKCC0IFAgSCC4ICAgQCB4IHQgmCAMIAggyCDMIJQg3CCIIJAg2CDQINQgj",
          "website": "https://www.mcdonalds.com/us/en-us/location/TX/ABILENE/4302-BUFFALO-GAP-RD/5432.html?cid=RF:YXT:GMB::Clicks",
          "directions": "https://www.google.com/maps/dir//McDonald's,+4302+Buffalo+Gap+Rd,+Abilene,+TX+79605/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x86568db0e778b561:0x7feb6cc63e614e37?sa=X&hl=en"
        },
        "phone": "(325) 695-2616",
        "address": "4302 Buffalo Gap Rd",
        "hours": "Open 24 hours",
        "gps_coordinates": {
          "latitude": 32.3997901,
          "longitude": -99.7594225
        }
      },
      {
        "position": 2,
        "label": "B",
        "title": "McDonald's",
        "place_id": "9912131383807101605",
        "lsig": "AB86z5Vr7I7_Du4pdOcCURnP7CuQ",
        "place_id_search": "https://serpapi/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=austin%2C+tx%2C+texas%2C+united+states&ludocid=9912131383807101605&q=mcdonalds&tbm=lcl&token=1af2526ee1d9a0e1",
        "links": {
          "delivery": "https://orderfood.google.com/chooseprovider?restaurantId=/g/1tdqb_74&hl=en-US&gei=IBmnXbTeK4T--gT71omoDQ&utm_source=search_restaurant_list&authuser=-1&fo_s=OA,AH&fo_m=CDEIMAgvCCAIOAgqCCsIKAgYCCcIKQgPCBMICwgsCAwIEQgKCC0IFAgSCC4ICAgQCB4IHQgmCAMIAggyCDMIJQg3CCIIJAg2CDQINQgj",
          "website": "https://www.mcdonalds.com/us/en-us/location/TX/ABILENE/3147-S-14TH-ST/18074.html?cid=RF:YXT:GMB::Clicks",
          "directions": "https://www.google.com/maps/dir//McDonald's,+3147+S+14th+St,+Abilene,+TX+79605/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x86568e7926837c17:0x898ef6fa12d2caa5?sa=X&hl=en"
        },
        "phone": "(325) 691-5902",
        "address": "3147 S 14th St",
        "hours": "Open 24 hours",
        "gps_coordinates": {
          "latitude": 32.43174,
          "longitude": -99.761488
        }
      },
      {
        "position": 3,
        "label": "C",
        "title": "McDonald's",
        "place_id": "11465435962430160066",
        "lsig": "AB86z5XeRhYNfBmqLZSMRY-BHhld",
        "place_id_search": "https://serpapi/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=austin%2C+tx%2C+texas%2C+united+states&ludocid=11465435962430160066&q=mcdonalds&tbm=lcl&token=16a71babbf1edec2",
        "links": {
          "delivery": "https://orderfood.google.com/chooseprovider?restaurantId=/g/1hc38wv28&hl=en-US&gei=IBmnXbTeK4T--gT71omoDQ&utm_source=search_restaurant_list&authuser=-1&fo_s=OA,AH&fo_m=CDEIMAgvCCAIOAgqCCsIKAgYCCcIKQgPCBMICwgsCAwIEQgKCC0IFAgSCC4ICAgQCB4IHQgmCAMIAggyCDMIJQg3CCIIJAg2CDQINQgj",
          "website": "https://www.mcdonalds.com/us/en-us/location/TX/ABILENE/1201-N-JUDGE-ELY/10684.html?cid=RF:YXT:GMB::Clicks",
          "directions": "https://www.google.com/maps/dir//McDonald's,+1201+N+Judge+Ely+Blvd,+Abilene,+TX+79601/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x865691c6b94acbcd:0x9f1d6942e7a37cc2?sa=X&hl=en"
        },
        "phone": "(325) 672-1271",
        "address": "1201 N Judge Ely Blvd",
        "hours": "Open 24 hours",
        "gps_coordinates": {
          "latitude": 32.4625117,
          "longitude": -99.70548749999999
        }
      }
    ]
  },
  ...
}

Results for: products

Results for: products

JSON Example

{
  ...
  "local_map": {
    "link": "https://www.google.com/search?gl=us&hl=en&q=Coffee&npsic=0&rflfq=1&rldoc=1&rlha=0&rllag=40712630,-74006438,192&tbm=lcl&sa=X&ved=2ahUKEwi1_PPdyojqAhU5mnIEHQFrDlQQtgN6BAgNEAQ",
    "image": "<URL to image>",
    "gps_coordinates": {
      "latitude": 40.71263,
      "longitude": -74.006438
    }
  },
  "local_results": {
    "more_locations_link": "https://www.google.com/search?gl=us&hl=en&q=Coffee&npsic=0&rflfq=1&rldoc=1&rlha=0&rllag=40712630,-74006438,192&tbm=lcl&sa=X&ved=2ahUKEwi1_PPdyojqAhU5mnIEHQFrDlQQjGp6BAgNEEY",
    "places": [
      {
        "position": 1,
        "title": "Birch Coffee",
        "place_id": "13182349020049531595",
        "lsig": "AB86z5WBb2rV9I03tVrgxWYOccna",
        "place_id_search": "https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=New+York%2C+New+York%2C+United+States&ludocid=13182349020049531595&q=Coffee&tbm=lcl",
        "rating": 4.5,
        "reviews": 299,
        "price": "$$",
        "type": "Coffee shop",
        "address": "Entrance on Beekman, 8 Spruce St · In 8 Spruce Street Tower",
        "hours": "Closed ⋅ Opens 7AM",
        "thumbnail": "<URL to image>",
        "service_options": {
          "dine_in": false,
          "takeout": true
        },
        "gps_coordinates": {
          "latitude": 40.710934,
          "longitude": -74.00601
        }
      },
      {
        "position": 2,
        "title": "Blue Spoon Coffee Company",
        "place_id": "8277114589593241915",
        "lsig": "AB86z5U-iKsA7791MmGe231M2hjr",
        "place_id_search": "https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=New+York%2C+New+York%2C+United+States&ludocid=8277114589593241915&q=Coffee&tbm=lcl",
        "rating": 4.2,
        "reviews": 124,
        "price": "$",
        "type": "Coffee shop",
        "address": "76 Chambers St",
        "hours": "Closed ⋅ Opens 7AM",
        "thumbnail": "<URL to image>",
        "service_options": {
          "dine_in": false,
          "takeout": true,
          "delivery": false
        },
        "gps_coordinates": {
          "latitude": 40.71433,
          "longitude": -74.00687
        }
      },
      {
        "position": 3,
        "title": "Starbucks",
        "place_id": "10988205551705517188",
        "lsig": "AB86z5UGVCE4FvcwKWPY5MXcz3OM",
        "place_id_search": "https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=New+York%2C+New+York%2C+United+States&ludocid=10988205551705517188&q=Coffee&tbm=lcl",
        "rating": 3.8,
        "reviews": 867,
        "price": "$$",
        "type": "Coffee shop",
        "address": "38 Park Row #4",
        "hours": "Opens soon ⋅ 6AM",
        "thumbnail": "<URL to image>",
        "service_options": {
          "dine_in": false,
          "takeout": true,
          "delivery": true
        },
        "gps_coordinates": {
          "latitude": 40.71162,
          "longitude": -74.00673
        }
      }
    ]
  },
  ...
}

Results for: specific addresses

Results for: specific addresses

JSON Example

{
  ...
  "local_map": {
    "link": "https://www.google.com/maps/place/500+Comal+St,+Austin,+TX+78702/data=!4m2!3m1!1s0x8644b5b0e222f353:0xbcb365f860da512d?sa=X&hl=en",
    "image": "https://www.google.com/maps/vt/data=bzIjw9QAVygUra30-7PomAdH-pbGlikMaXRDAE9KHWrdwiYqvPJSOrpMcqU2cYN7vtfwEq6uU3Wl5D2mMU8OqxmFQ04d3nligB_NM0ACraOAlPJleXyZgunWDMkBkn0ghUD5UZJ4jqord7yM5H94af8lLtwEbNDrUJuk1o3G6eelS0l-73ifgtfGk73KeAJy8amNx3U2Zgeni_mWIvGkaZfhthpWvAk8ReSV17i4jYWR-wgAsg",
    "streetview": {
      "link": "https://www.google.com/maps/place/500+Comal+St,+Austin,+TX+78702,+United+States/@30.2624755,-97.7268184,3a,75y,294.27h,90t/data=!3m4!1e1!3m2!1s0SiB8M9D59AIhhY_cvJ5vg!2e0!4m2!3m1!1s0x8644b5b0e222f353:0xbcb365f860da512d?sa=X&hl=en&ved=2ahUKEwjqhbON76DlAhV1HjQIHQozC34QxB0wAHoECAoQAg",
      "image": "https://geo1.ggpht.com/cbk?panoid=0SiB8M9D59AIhhY_cvJ5vg&output=thumbnail&cb_client=search.gws-prod/local-details-getcard.gps&thumb=2&yaw=294.27374&pitch=0&thumbfov=100&w=158&h=78"
    }
  },
  "local_results": {
    "address": "500 Comal St Austin, TX 78702",
    "directions_link": "https://www.google.com/maps/dir//500+Comal+St,+Austin,+TX+78702/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x8644b5b0e222f353:0xbcb365f860da512d?sa=X&hl=en",
    "places": [
      {
        "position": 1,
        "title": "Bomb Tacos",
        "place_id": "1569906711283131607",
        "lsig": "AB86z5VP4kESjV2Ci7Ou2_g14dF5",
        "place_id_search": "https://serpapi/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+TX%2C+Texas%2C+United+States&ludocid=1569906711283131607&q=Bomb+Tacos+500+Comal+St+Austin%2C+TX+78702&token=e3aa444178d7badb",
        "rating": 3.5,
        "reviews": 55
      },
      {
        "position": 2,
        "title": "The White Horse",
        "place_id": "4298210679177660809",
        "lsig": "AB86z5VDHCKTuwr8fdG55Pr5PSTs",
        "place_id_search": "https://serpapi/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+TX%2C+Texas%2C+United+States&ludocid=4298210679177660809&q=The+White+Horse+500+Comal+St+Austin%2C+TX+78702&token=cc3bca034782d61c",
        "rating": 4.5,
        "reviews": 1188,
        "price": "$"
      }
    ]
  },
  ...
}

Results that include provider_id

provider_id can be used on Google Health Insurance API which can provide insurance information about the health service provider.

Results that include provider_id

JSON Example

{
  ...
  "local_map": {
    "link": "https://www.google.com/search?gl=us&hl=en&q=private+health+service+in+austin&npsic=0&rflfq=1&rldoc=1&rllag=30234817,-97787898,9652&tbm=lcl&sa=X&ved=2ahUKEwiFma-88bz_AhUFkYkEHedYDy8QtgN6BAgXEAI",
    "image": "https://serpapi.com/searches/64869df0770844012c490662/images/055687e1771ca165c5dd049923ccfdc1.png",
    "gps_coordinates": {
      "latitude": 30.234817,
      "longitude": -97.787898
    }
  },
  "local_results": {
    "places": [
      {
        "position": 1,
        "title": "UltraPersonal Healthcare",
        "rating": 5.0,
        "reviews_original": "(15)",
        "reviews": 15,
        "type": "Medical clinic",
        "address": "4107 Medical Pkwy #217",
        "phone": "(512) 489-9813",
        "hours": "Closed ⋅ Opens 9 AM Mon",
        "description": "\"Then Ultra Private Healthcare comes along and solves problems I ...\"",
        "place_id": "190626719943749922",
        "place_id_search": "https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&ludocid=190626719943749922&q=private+health+service+in+austin",
        "lsig": "AB86z5WtWcHUuGulMVXUfPaczAaL",
        "provider_id": "/g/11fkrpkd5m",
        "thumbnail": "https://serpapi.com/searches/64869df0770844012c490662/images/c47e0c1ce2c140127b86b15e6f22a9bbbbdf8350bf6a839c7773255e19bd3b36ff6a561ee61cccb1.png",
        "gps_coordinates": {
          "latitude": 30.310543,
          "longitude": -97.742065
        },
        "links": {
          "website": "https://ultrapersonal.healthcare/",
          "directions": "https://www.google.com/maps/dir//UltraPersonal+Healthcare,+4107+Medical+Pkwy+%23217,+Austin,+TX+78756/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x8644cba0d872c279:0x2a53dfde6f1f122?sa=X&hl=en&gl=us"
        }
      },
      {
        "position": 2,
        "title": "Family Tree Private Care",
        "rating": 4.9,
        "reviews_original": "(7)",
        "reviews": 7,
        "type": "Home health care service",
        "address": "11200 Menchaca Rd #305",
        "phone": "(512) 523-8245",
        "hours": "Open 24 hours",
        "place_id": "476092312190802916",
        "place_id_search": "https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&ludocid=476092312190802916&q=private+health+service+in+austin",
        "lsig": "AB86z5XeY9bHfsx84h8aLM7gxmjV",
        "provider_id": "/g/11ggs3my6x",
        "gps_coordinates": {
          "latitude": 30.157572,
          "longitude": -97.83373
        },
        "links": {
          "website": "https://familytreecares.com/in-home-care-austin-tx/",
          "directions": "https://www.google.com/maps/dir//Family+Tree+Private+Care,+11200+Menchaca+Rd+%23305,+Austin,+TX+78748/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x8644ca2ea6f00001:0x69b6b6f7c6d5be4?sa=X&hl=en&gl=us"
        }
      },
      {
        "position": 3,
        "title": "Volunteer Healthcare Clinic",
        "rating": 4.5,
        "reviews_original": "(42)",
        "reviews": 42,
        "type": "Medical clinic",
        "address": "4215 Medical Pkwy",
        "phone": "(512) 459-6002",
        "hours": "Closed ⋅ Opens 5 PM Tue",
        "place_id": "5763919440506419341",
        "place_id_search": "https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&ludocid=5763919440506419341&q=private+health+service+in+austin",
        "lsig": "AB86z5XXTpBFep8dzh2dYbl7RneE",
        "provider_id": "/g/1xfsp3tm",
        "thumbnail": "https://serpapi.com/searches/64869df0770844012c490662/images/c47e0c1ce2c140127b86b15e6f22a9bbcbfd539fad48e74b23ceb0fb3cad478eb12f9cdff5e7114e.png",
        "gps_coordinates": {
          "latitude": 30.312073,
          "longitude": -97.742165
        },
        "links": {
          "website": "http://www.volclinic.org/",
          "directions": "https://www.google.com/maps/dir//Volunteer+Healthcare+Clinic,+4215+Medical+Pkwy,+Austin,+TX+78756/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x8644ca882468b051:0x4ffd8e314d5a788d?sa=X&hl=en&gl=us"
        },
        "extensions": [
          "Has online care"
        ]
      }
    ],
    "more_locations_link": "https://www.google.com/search?gl=us&hl=en&tbs=lf:1,lf_ui:2&tbm=lcl&q=private+health+service+in+austin&rflfq=1&num=10&uule=w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM&sa=X&ved=2ahUKEwiFma-88bz_AhUFkYkEHedYDy8QjGp6BAgWEAE"
  },
  ...
}