Google Local Pack API

/ Home / Google Search API / Local Pack

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.

Local pack examples

Local pack for stores and places

Local pack 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": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
    "gps_coordinates": {
      "latitude": 32.43115,
      "longitude": -99.733487,
      "altitude": 4363
    }
  },
  "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,
        "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_requested=austin%2C+tx%2C+texas%2C+united+states&lsig=AB86z5WZ0L4jOJdygGcgZJxwaZqT&ludocid=9217580661049740855&q=mcdonalds&tbm=lcl&token=ae38ed37970df6b0",
        "rating": "A",
        "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,
        "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_requested=austin%2C+tx%2C+texas%2C+united+states&lsig=AB86z5Vr7I7_Du4pdOcCURnP7CuQ&ludocid=9912131383807101605&q=mcdonalds&tbm=lcl&token=1af2526ee1d9a0e1",
        "rating": "B",
        "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,
        "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_requested=austin%2C+tx%2C+texas%2C+united+states&lsig=AB86z5XeRhYNfBmqLZSMRY-BHhld&ludocid=11465435962430160066&q=mcdonalds&tbm=lcl&token=16a71babbf1edec2",
        "rating": "C",
        "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
        }
      }
    ]
  },
  ...
}

Local pack for products

Local pack 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": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
    "gps_coordinates": {
      "latitude": 40.71263,
      "longitude": -74.006438,
      "altitude": 192
    }
  },
  "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": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=New+York%2C+New+York%2C+United+States&lsig=AB86z5WBb2rV9I03tVrgxWYOccna&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": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QAqRXhpZgAASUkqAAgAAAABADEBAgAHAAAAGgAAAAAAAABHb29nbGUAAP...",
        "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": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=New+York%2C+New+York%2C+United+States&lsig=AB86z5U-iKsA7791MmGe231M2hjr&ludocid=8277114589593241915&q=Coffee&tbm=lcl",
        "rating": 4.2,
        "reviews": 124,
        "price": "$",
        "type": "Coffee shop",
        "address": "76 Chambers St",
        "hours": "Closed โ‹… Opens 7AM",
        "thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QAqRXhpZgAASUkqAAgAAAABADEBAgAHAAAAGgAAAAAAAABHb29nbGUAAP...",
        "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": "http://localhost:3000/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=New+York%2C+New+York%2C+United+States&lsig=AB86z5UGVCE4FvcwKWPY5MXcz3OM&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": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QAqRXhpZgAASUkqAAgAAAABADEBAgAHAAAAGgAAAAAAAABHb29nbGUAAP...",
        "service_options": {
          "dine_in": false,
          "takeout": true,
          "delivery": true
        },
        "gps_coordinates": {
          "latitude": 40.71162,
          "longitude": -74.00673
        }
      }
    ]
  },
  ...
}

Local pack for specific addresses

Local pack 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_requested=Austin%2C+TX%2C+Texas%2C+United+States&lsig=AB86z5VP4kESjV2Ci7Ou2_g14dF5&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_requested=Austin%2C+TX%2C+Texas%2C+United+States&lsig=AB86z5VDHCKTuwr8fdG55Pr5PSTs&ludocid=4298210679177660809&q=The+White+Horse+500+Comal+St+Austin%2C+TX+78702&token=cc3bca034782d61c",
        "rating": 4.5,
        "reviews": 1188,
        "price": "$"
      }
    ]
  },
  ...
}