Bing Local Pack API

For some requests, Bing 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 and image information. From the local_results, we are able to extract position title, reviews, price, address, hours, thumbnail, gps_coordinates, place_id and more.

API Examples

Local pack results overview

Local pack results overview

JSON Example

{
  ...
  "local_map": {
    "link": "https://www.bing.com/maps?&ty=17&q=Coffee&mb=30.29528~-97.783752~30.251074~-97.742966&ppois=30.266929626464844_-97.74571228027344__~30.26499366760254_-97.74609375__~30.26618766784668_-97.74296569824219__~30.29528045654297_-97.78375244140625__~30.251073837280273_-97.74933624267578__~30.268455505371094_-97.74267578125__~&usebfpr=true&v=2&sV=1",
    "image": "https://www.bing.com/maps/geoplat/REST/v1/Imagery/Map/RoadVibrant/30.273177,-97.763359/12?ms=646,200&pp=30.26693,-97.745712;S511&pp=30.264994,-97.746094;S518&pp=30.266188,-97.742966;S518&pp=30.29528,-97.783752;S518&pp=30.251074,-97.749336;S518&pp=30.268456,-97.742676;S12&pp=30.265371,-97.74057;S12&pp=30.264091,-97.743484;S12&pp=30.266188,-97.742966;S12&pp=30.265856,-97.74646;S12&pp=30.265631,-97.738426;S12&pp=30.271955,-97.741348;S12&pp=30.25935,-97.746048;S12&pp=30.269884,-97.75386;S12&pp=30.266268,-97.74015;S12&pp=30.26693,-97.745712;S12&pp=30.26866,-97.742599;S12&pp=30.27067,-97.753517;S12&ppsc=dpss,cfp&ml=Basemap,Landmarks,OsmBuildings&key=AnTcaqBi2ypp0xI-OZNi4W_ik2KhjgpqioTAtXLC8GzkMBQRMlyxvxyTnd5b73im&c=en-US&fmt=jpeg&od=1&logo=n&da=ro",
    "gps_coordinates": {
      "latitude": "30.29528045654297",
      "longitude": "-97.78375244140625"
    }
  },
  "local_results": {
    "places": [
      {
        "position": 1,
        "place_id": "YN860x14962782",
        "title": "Halcyon",
        "rating": 3.5,
        "reviews": 807,
        "reviews_link": "https://www.yelp.com/biz/halcyon-austin-2?adjust_creative=bing&utm_campaign=yelp_feed&utm_medium=feed_v2&utm_source=bing",
        "price": "$$",
        "hours": "Closed · Opens 7 AM",
        "address": "218 W 4th St, Austin, TX 78701",
        "links": {
          "directions": "https://www.bing.com/maps/directions?rtp=adr.~pos.30.266929626464844_-97.74571228027344_218+W+4th+St%2c+Austin%2c+TX+78701_Halcyon_(512)+472-9637",
          "website": "http://www.halcyonaustin.com/"
        },
        "gps_coordinates": {
          "latitude": "30.266929626464844",
          "longitude": "-97.74571228027344"
        }
      },
      {
        "position": 2,
        "place_id": "YN860x18698703",
        "title": "Jo's Coffee",
        "rating": 3.5,
        "reviews": 497,
        "reviews_link": "https://www.yelp.com/biz/jos-hot-coffee-good-food-austin?adjust_creative=bing&utm_campaign=yelp_feed&utm_medium=feed_v2&utm_source=bing",
        "price": "$$",
        "hours": "Closed · Opens 7 AM",
        "address": "242 W 2nd St, Austin, TX 78701",
        "links": {
          "directions": "https://www.bing.com/maps/directions?rtp=adr.~pos.30.26499366760254_-97.74609375_242+W+2nd+St%2c+Austin%2c+TX+78701_Jo%27s+Coffee_(512)+469-9003",
          "website": "http://www.joscoffee.com/downtown-jos"
        },
        "gps_coordinates": {
          "latitude": "30.26499366760254",
          "longitude": "-97.74609375"
        }
      },
      {
        "position": 3,
        "place_id": "YN873x124875800",
        "title": "Houndstooth Coffee",
        "rating": 4.5,
        "reviews": 310,
        "reviews_link": "https://www.yelp.com/biz/houndstooth-coffee-austin-2?adjust_creative=bing&utm_campaign=yelp_feed&utm_medium=feed_v2&utm_source=bing",
        "price": "$$",
        "hours": "Closed · Opens 6:30 AM",
        "address": "401 Congress Ave Ste C, Austin, TX 78701",
        "links": {
          "directions": "https://www.bing.com/maps/directions?rtp=adr.~pos.30.26618766784668_-97.74296569824219_401+Congress+Ave+Ste+C%2c+Austin%2c+TX+78701_Houndstooth+Coffee_(512)+394-6051",
          "website": "http://www.houndstoothcoffee.com/"
        },
        "gps_coordinates": {
          "latitude": "30.26618766784668",
          "longitude": "-97.74296569824219"
        }
      },
      ...
    ]
  },
  ...
}

Local pack results with categories

Local pack results with categories

JSON Example

{
  ...
  "local_map": {
    "link": "https://www.bing.com/maps/geoplat/REST/v1/Imagery/Map/RoadVibrant/30.620225,-81.620556/8?ms=624,180&pp=30.778522,-81.663834;S518;Coffee+Spot&pp=30.781111,-81.619057;S518;Ellianos&pp=30.790079,-81.654915;S518;Dunkin%27&pp=30.759878,-81.655739;S518;Dunkin%27&pp=30.450665,-81.701927;S532;The+Home+Depot&pp=30.778511,-81.619019;S532;Walmart+Supercenter&pp=30.619692,-81.534431;S532;Walmart+Supercenter&pp=30.630018,-81.553673;S532;Target&pp=30.450371,-81.70668;S532;Walmart+Supercenter&ppsc=dpss,dsp&ml=Basemap,LandCover,Landmarks,OsmBuildings&key=AnTcaqBi2ypp0xI-OZNi4W_ik2KhjgpqioTAtXLC8GzkMBQRMlyxvxyTnd5b73im&c=en-US&fmt=jpeg&od=1&shading=hill&logo=n&da=ro",
    "image": "https://www.bing.com/maps/geoplat/REST/v1/Imagery/Map/RoadVibrant/30.620225,-81.620556/8?ms=624,180&pp=30.778522,-81.663834;S518;Coffee+Spot&pp=30.781111,-81.619057;S518;Ellianos&pp=30.790079,-81.654915;S518;Dunkin%27&pp=30.759878,-81.655739;S518;Dunkin%27&pp=30.450665,-81.701927;S532;The+Home+Depot&pp=30.778511,-81.619019;S532;Walmart+Supercenter&pp=30.619692,-81.534431;S532;Walmart+Supercenter&pp=30.630018,-81.553673;S532;Target&pp=30.450371,-81.70668;S532;Walmart+Supercenter&ppsc=dpss,dsp&ml=Basemap,LandCover,Landmarks,OsmBuildings&key=AnTcaqBi2ypp0xI-OZNi4W_ik2KhjgpqioTAtXLC8GzkMBQRMlyxvxyTnd5b73im&c=en-US&fmt=jpeg&od=1&shading=hill&logo=n&da=ro",
    "gps_coordinates": {
      "latitude": "30.79007911682129",
      "longitude": "-81.70668029785156"
    }
  },
  "local_results": {
    "categories": [
      {
        "link": "https://www.bing.com/maps?q=Coffee+shop&filters=SearchType%3a%22TopicSearch%22+ParentTopic%3a%22Coffee%22",
        "thumbnail": "https://www.bing.com/th?id=A8zAQZxGmUl9pNQ480x360&w=106&h=106&c=7&rs=1&qlt=80&o=6&cdv=1&pid=Local",
        "title": "Coffee shop"
      },
      {
        "link": "https://www.bing.com/maps?q=Coffee+filter&filters=SearchType%3a%22TopicSearch%22+ParentTopic%3a%22Coffee%22",
        "thumbnail": "https://www.bing.com/th?id=AoguumxDVcFlfKQ480x360&w=106&h=106&c=7&rs=1&qlt=80&o=6&cdv=1&pid=Local",
        "title": "Coffee filter"
      },
      {
        "link": "https://www.bing.com/maps?q=Coffee+set&filters=SearchType%3a%22TopicSearch%22+ParentTopic%3a%22Coffee%22",
        "thumbnail": "https://www.bing.com/th?id=A1kL%2fzx04Fzo3kw480x360&w=106&h=106&c=7&rs=1&qlt=80&o=6&cdv=1&pid=Local",
        "title": "Coffee set"
      },
      ...
    ],
    "places": [
      {
        "position": 1,
        "category": "Coffee shop",
        "place_id": "YN873x114799119",
        "title": "Coffee Spot",
        "rating": 4.5,
        "reviews": 69,
        "hours": "Closed · Opens 8:30 AM",
        "links": {
          "directions": "https://www.bing.com/maps?&mepi=55~Local~MiddleOfPage~Entity_List_Card&ty=17&q=Coffee&cacheid=2ef7dee5-9f0b-413e-9b8e-f7b0f4fd98c3&segment=Local&sei=0&cp=30.778522~-81.663834&child=%26ty%3D18%26q%3DCoffee%2520Spot%26ss%3Dypid.YN873x114799119%26segment%3DLocal%26ppois%3D30.778522491455078_-81.66383361816406_Coffee%2520Spot_YN873x114799119~%26cp%3D30.778522~-81.663834%26EnableMapViewChange%3Dtrue&FORM=SNAPST"
        },
        "thumbnail": "https://www.bing.com/th?id=AdcVa5ZXCit6hMw480x360&w=199&h=122&c=7&rs=1&qlt=80&o=6&cdv=1&pid=Local",
        "gps_coordinates": {
          "latitude": "30.778522",
          "longitude": "-81.663834"
        }
      },
      {
        "position": 2,
        "category": "Coffee shop",
        "place_id": "YN873x4977178095553794566",
        "title": "Ellianos",
        "rating": 5.0,
        "reviews": 9,
        "hours": "Closed · Opens 6 AM",
        "mention": "Delivery",
        "links": {
          "directions": "https://www.bing.com/maps?&mepi=55~Local~MiddleOfPage~Entity_List_Card&ty=17&q=Coffee&cacheid=2ef7dee5-9f0b-413e-9b8e-f7b0f4fd98c3&segment=Local&sei=0&cp=30.781111~-81.619057&child=%26ty%3D18%26q%3DEllianos%26ss%3Dypid.YN873x4977178095553794566%26segment%3DLocal%26ppois%3D30.781110763549805_-81.61905670166016_Ellianos_YN873x4977178095553794566~%26cp%3D30.781111~-81.619057%26EnableMapViewChange%3Dtrue&FORM=SNAPST"
        },
        "thumbnail": "https://www.bing.com/th?id=AEk3POWCyj2Zjtw480x360&w=199&h=122&c=7&rs=1&qlt=80&o=6&cdv=1&pid=Local",
        "gps_coordinates": {
          "latitude": "30.781111",
          "longitude": "-81.619057"
        }
      },
      ...
      {
        "position": 5,
        "category": "Coffee filter",
        "place_id": "YN873x124175282",
        "title": "The Home Depot",
        "rating": 4.0,
        "reviews": 61,
        "hours": "Closed · Opens 6 AM",
        "links": {
          "directions": "https://www.bing.com/maps?&mepi=55~Local~MiddleOfPage~Entity_List_Card&ty=17&q=Coffee&cacheid=2ef7dee5-9f0b-413e-9b8e-f7b0f4fd98c3&segment=Local&sei=0&cp=30.450665~-81.701927&child=%26ty%3D18%26q%3DThe%2520Home%2520Depot%26ss%3Dypid.YN873x124175282%26segment%3DLocal%26ppois%3D30.450664520263672_-81.7019271850586_The%2520Home%2520Depot_YN873x124175282~%26cp%3D30.450665~-81.701927%26EnableMapViewChange%3Dtrue&FORM=SNAPST"
        },
        "thumbnail": "https://www.bing.com/th?id=AkoArSpB02xdW8w480x360&w=199&h=122&c=7&rs=1&qlt=80&o=6&cdv=1&pid=Local",
        "gps_coordinates": {
          "latitude": "30.450665",
          "longitude": "-81.701927"
        }
      },
      {
        "position": 6,
        "category": "Coffee filter",
        "place_id": "YN218x172654167",
        "title": "Walmart Supercenter",
        "hours": "Closed · Opens 6 AM",
        "links": {
          "directions": "https://www.bing.com/maps?&mepi=55~Local~MiddleOfPage~Entity_List_Card&ty=17&q=Coffee&cacheid=2ef7dee5-9f0b-413e-9b8e-f7b0f4fd98c3&segment=Local&sei=0&cp=30.778511~-81.619019&child=%26ty%3D18%26q%3DWalmart%2520Supercenter%26ss%3Dypid.YN218x172654167%26segment%3DLocal%26ppois%3D30.77851104736328_-81.6190185546875_Walmart%2520Supercenter_YN218x172654167~%26cp%3D30.778511~-81.619019%26EnableMapViewChange%3Dtrue&FORM=SNAPST"
        },
        "thumbnail": "https://www.bing.com/th?id=ArE6Qa3RDUe3rjw480x360&w=199&h=122&c=7&rs=1&qlt=80&o=6&cdv=1&pid=Local",
        "gps_coordinates": {
          "latitude": "30.778511",
          "longitude": "-81.619019"
        }
      },
      ...
    ]
  },
  ...
}

Inline local pack results

Inline local pack results

JSON Example

{
  ...
  "local_results": {
    "places": [
      {
        "position": 1,
        "place_id": "YN873x17775191300096700715",
        "title": "Newk's Eatery",
        "rating": 4,
        "reviews": 39,
        "price": "$",
        "mention": "\"/soups / salads/ pizza - but it's so delicious and fresh.\"",
        "thumbnail": "https://www.bing.com/th?id=A6lWSYLhK6Z0g4Q480x360&w=200&h=160&c=7&rs=1&qlt=80&cdv=1&pid=Local",
        "gps_coordinates": {
          "latitude": "30.266632080078125",
          "longitude": "-97.74365234375"
        }
      },
      {
        "position": 2,
        "place_id": "YN860x28653990",
        "title": "The Onion",
        "rating": 3.5,
        "reviews": 168,
        "price": "$",
        "mention": "The Ultimate 6th Street Pizza Slice Ranking",
        "thumbnail": "https://www.bing.com/th?id=Av2bk4T3sylX8ug480x360&w=200&h=160&c=7&rs=1&qlt=80&cdv=1&pid=Local",
        "gps_coordinates": {
          "latitude": "30.267438888549805",
          "longitude": "-97.74385833740234"
        }
      },
      {
        "position": 3,
        "place_id": "YN860x400811179",
        "title": "The Backspace",
        "rating": 4,
        "reviews": 653,
        "price": "$$",
        "mention": "The Essential Austin Pizza Restaurants",
        "thumbnail": "https://www.bing.com/th?id=AcsgxYPe3%252b%252bWCUQ480x360&w=200&h=160&c=7&rs=1&qlt=80&cdv=1&pid=Local",
        "gps_coordinates": {
          "latitude": "30.26698875427246",
          "longitude": "-97.74041748046875"
        }
      },
      ...
    ]
  },
  ...
}

Results for: specific addresses

Results for: specific addresses

JSON Example

{
  ...
  "local_map": {
    "link": "https://www.bing.com/local?lid=YN860x14962907&id=YN860x14962907&q=Elephant+Room+Austin+TX&name=Elephant+Room&cp=30.265623~-97.743454",
    "image": "https://www.bing.com/maps/geoplat/REST/v1/Imagery/Map/RoadVibrant/30.265623,-97.743454/15?ms=648,183&pp=30.265623,-97.743454;176&ml=Basemap,Landmarks,OsmBuildings&key=AnTcaqBi2ypp0xI-OZNi4W_ik2KhjgpqioTAtXLC8GzkMBQRMlyxvxyTnd5b73im&c=en-US&fmt=jpeg&od=1&logo=n&da=ro",
    "gps_coordinates": {
      "latitude": "30.265623092651367",
      "longitude": "-97.74345397949219"
    }
  },
  "local_results": {
    "places": [
      {
        "position": 1,
        "title": "Elephant Room",
        "rating": 4.5,
        "reviews": 170,
        "reviews_link": "https://www.tripadvisor.com/Attraction_Review-g30196-d605486-Reviews-Elephant_Room-Austin_Texas.html?m=17457",
        "hours": "Closed · Opens 4 PM",
        "address": "315 Congress Ave, Austin, TX 78701",
        "phone": "(512) 473-2279",
        "links": {
          "directions": "https://www.bing.com/maps/directions?rtp=adr.~pos.30.26573371887207_-97.74368286132812_315+Congress+Ave%2c+Austin%2c+TX+78701_Elephant+Room_(512)+473-2279",
          "website": "http://elephantroom.com/"
        }
      }
    ]
  },
  ...
}

Results with permanently_closed

Results with permanently_closed

JSON Example

{
  ...
  "local_results": {
    "places": [
      {
        "position": 1,
        "permanently_closed": true,
        "title": "SharpShooters USA",
        "rating": 4.5,
        "reviews": 1100,
        "reviews_link": "https://www.facebook.com/SharpShootersUSA/",
        "address": "11261 Alpharetta Hwy, Roswell, GA 30076",
        "phone": "(770) 500-3473",
        "links": {
          "directions": "https://www.google.com/maps/dir/My+location/SharpShooters+USA,11261+Alpharetta+Hwy%2c+Roswell%2c+GA+30076/@34.05555725097656,-84.32785034179688,8z/",
          "website": "https://www.bing.com/alink/link?url=https%3a%2f%2fssusa.co%2f&source=serp-local&h=xCDAY8EstugeIsdFWQlhVkgUwUX2MT7HEvUqaj86xUs%3d&p=lw_mobtp&ig=6D77F9AD4C094A3DAB3605E9F2A9D1CE&ypid=YN873x123720983",
          "phone": 7705003473,
          "call": "7705003473"
        },
        "thumbnail": "//th.bing.com/th?id=OLC.w5pBMm+ggu8v9g480x360&w=234&h=156&c=7&rs=1&o=6&pid=18.1"
      }
    ]
  },
  ...
}