Yahoo! Local Pack API
For some requests, Yahoo 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
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_map": {
"link": "https://search.yahoo.com/local/s;_ylt=AwrFOCqY3AlkbCIPp1RXNyoA;_ylu=Y29sbwNiZjEEcG9zAzEEdnRpZAMEc2VjA3Nj?p=Coffee+Shop+New+York&ei=UTF-8&fr=fp-tts",
"image": "https://sgws2.maps.yahoo.com/mapimage?mflags=MKY&appid=search&locale=en_US&imf=jpg&imw=616&imh=200&poi=%3B%2CA-blue-xs-gws.png%2C40.745709%2C-73.988184%3B%2CB-blue-xs-gws.png%2C40.72396%2C-73.99643%3B%2CC-blue-xs-gws.png%2C40.733782%2C-73.99312%3B%2CDot-xs-gws.png%2C40.717247%2C-74.010135%3B%2CDot-xs-gws.png%2C40.757917%2C-73.983198%3B%2CDot-xs-gws.png%2C40.732807%2C-73.997953"
},
"local_results": {
"more_locations_link": "https://search.yahoo.com/local/s;_ylt=AwrFOCqY3AlkbCIP3lRXNyoA;_ylu=Y29sbwNiZjEEcG9zAzEEdnRpZAMEc2VjA3Nj?p=Coffee+Shop+New+York&ei=UTF-8&fr=fp-tts",
"places": [
{
"position": 1,
"place_id": "117569391",
"title": "Stumptown Coffee Roasters",
"place_id_search": "https://search.yahoo.com/local/s;_ylt=AwrFOCqY3AlkbCIPvFRXNyoA;_ylu=Y29sbwNiZjEEcG9zAzEEdnRpZAMEc2VjA3Nj?p=Coffee+Shop+New+York&ei=UTF-8&selectedId=117569391&fr=fp-tts",
"type": "Coffee House, Coffee & Tea",
"price": "$$",
"rating": 4.5,
"reviews": 1438,
"address": "20 W 29th St, New York, NY",
"phone": "(855) 711-3385",
"thumbnail": "https://s.yimg.com/fz/api/res/1.2/BSHMhIK2ii6RPYyutZyxQg--~C/YXBwaWQ9c3JjaGRkO2ZpPWZpbGw7aD0xODA7cT04MDt3PTE4MA--/https://s.yimg.com/bj/859c/859c0d243bcb8acd9a8ff271e6fdbaa4.jpg",
"links": {
"website": "https://www.stumptowncoffee.com/"
},
"gps_coordinates": {
"latitude": "40.745709",
"longitude": "-73.988184"
}
},
{
"position": 2,
"place_id": "77525819",
"title": "La Colombe SOHO",
"place_id_search": "https://search.yahoo.com/local/s;_ylt=AwrFOCqY3AlkbCIPwFRXNyoA;_ylu=Y29sbwNiZjEEcG9zAzEEdnRpZAMEc2VjA3Nj?p=Coffee+Shop+New+York&ei=UTF-8&selectedId=77525819&fr=fp-tts",
"type": "Coffee House, Coffee & Tea",
"price": "$$",
"rating": 4.5,
"reviews": 702,
"address": "270 Lafayette St, New York, NY",
"phone": "(212) 625-1717",
"thumbnail": "https://s.yimg.com/fz/api/res/1.2/77Lu1ggSpHw6jy6Ky1gogQ--~C/YXBwaWQ9c3JjaGRkO2ZpPWZpbGw7aD0xODA7cT04MDt3PTE4MA--/https://s.yimg.com/bj/64af/64af3e8464367b8b943a3315afdb3ed2.jpg",
"links": {
"website": "https://www.lacolombe.com/",
"menu": "https://places.singleplatform.com/la-colombe/menu?ref=Yahoo"
}
},
{
"position": 3,
"place_id": "42501129",
"title": "The Grey Dog - Union Square",
"place_id_search": "https://search.yahoo.com/local/s;_ylt=AwrFOCqY3AlkbCIPxlRXNyoA;_ylu=Y29sbwNiZjEEcG9zAzEEdnRpZAMEc2VjA3Nj?p=Coffee+Shop+New+York&ei=UTF-8&selectedId=42501129&fr=fp-tts",
"type": "Coffee House",
"price": "$$",
"rating": 4,
"reviews": 1173,
"address": "90 University Pl, New York, NY",
"phone": "(212) 966-1060",
"thumbnail": "https://s.yimg.com/fz/api/res/1.2/3jj_POYE4nztw602JbactA--~C/YXBwaWQ9c3JjaGRkO2ZpPWZpbGw7aD0xODA7cT04MDt3PTE4MA--/https://s.yimg.com/bj/91bf/91bf63978de6aa47a0f25c56800f17fe.jpg",
"links": {
"website": "https://order.thegreydog.com/location/university-place",
"menu": "https://places.singleplatform.com/grey-dog-coffee/menu?ref=Yahoo"
}
},
...
]
},
...
}