开发者

Restaurant menu search Api

开发者 https://www.devze.com 2023-03-15 03:00 出处:网络
I\'m would like to develop an application which searches restaurants in a given location and also displays the restaurant\'s menu details.

I'm would like to develop an application which searches restaurants in a given location and also displays the restaurant's menu details.

Are there any existing APIs which I could 开发者_开发百科reuse to develop such a restaurant search?


yes you can use Yahoo local search API for this. see this link for more info.. http://developer.yahoo.com/search/local/V3/localSearch.html


You can also try using the Locu API

Documentation: https://dev.locu.com/documentation/

The basic query that I used to get menu information of restaurants by location is shown below:

curl -X POST https://api.locu.com/v2/venue/search -d '{  
    "api_key" : "[insert api key]",  
    "fields" : [ "name", "menus" ],  
    "venue_queries" : 
        [    
            {      
                "location" : 
                    {
                        "locality" : ["insert city name"]
                    }   
            }  
        ]
}'

I then used http://curl.trillworks.com to convert my query into python (with the requests module) to actually perform the data pull. I hope this helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消