Message from discussion
Yelp deals using the search API
Received: by 10.101.126.13 with SMTP id d13mr11030617ann.23.1335898335562;
Tue, 01 May 2012 11:52:15 -0700 (PDT)
X-BeenThere: yelp-developer-support@googlegroups.com
Received: by 10.236.112.135 with SMTP id y7ls463321yhg.6.gmail; Tue, 01 May
2012 11:52:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.236.156.68 with SMTP id l44mr177269yhk.8.1335898334540; Tue,
01 May 2012 11:52:14 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
varma.ash...@gmail.com designates internal as permitted sender)
smtp.mail=varma.ash...@gmail.com; dkim=pass
header...@gmail.com
Received: by u7g2000yqc.googlegroups.com with HTTP; Tue, 1 May 2012 11:52:14
-0700 (PDT)
Date: Tue, 1 May 2012 11:52:14 -0700 (PDT)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7)
AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.163 Safari/535.19,gzip(gfe)
Message-ID: <502a4cd3-023a-4d6b-af33-95830bce2e7b@u7g2000yqc.googlegroups.com>
Subject: Yelp deals using the search API
From: rocksane <varma.ash...@gmail.com>
To: Yelp Developer Support <yelp-developer-support@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Hello,
Is there a way I can use Yelp Search API to find whether a
business has deals or not. I see the deals_filter in the search API
which I am trying to use it, when I try to search a particular
business using the API call
For example here is the API call with the deals_filter = true:
"/v2/search?location=%207100%20four%20seasons
%20point,carlsbad,ca&term=Vivace&limit=1&offset=0&sort=0&category_filter=restaurants&deals_filter=true"
It gives me
{"region":{"span":{"latitude_delta":
0.021570038662012792,"longitude_delta":0.025577545166015625},"center":
{"latitude":
33.102254659063732,"longitude":-117.28549003601074}},"total":
0,"businesses":[]}
Now with the deals_filter set to false it actually gives me the
business itself which is what I want:
"/v2/search?location=vivace,7100%20four%20seasons
%20point,carlsbad,ca&limit=1&offset=0&sort=0&category_filter=restaurants&deals_filter=false"
Result:
{"region":{"span":{"latitude_delta":0.0,"longitude_delta":
0.0},"center":{"latitude":
33.099300599999999,"longitude":-117.2854892}},"total":1,"businesses":
[{"rating":4.0,"mobile_url":"http://m.yelp.com/biz/vivace-
carlsbad","rating_img_url":"http://media2.ak.yelpcdn.com/static/
201012164084228337/img/ico/stars/stars_4.png","review_count":
40,"name":"Vivace","rating_img_url_small":"http://
media2.ak.yelpcdn.com/static/20101216418129184/img/ico/stars/
stars_small_4.png","url":"http://www.yelp.com/biz/vivace-
carlsbad","phone":"7606033773","snippet_text":"Sunset dining -
excellent service from start to finish. I was impressed with
everything - it was sooo good!!\n\nThe lobster risotto was a
must!!!","image_url":"http://s3-media2.ak.yelpcdn.com/bphoto/
GC13DSP1d_jOP1WKAL_m2Q/ms.jpg","snippet_image_url":"http://s3-
media1.ak.yelpcdn.com/photo/3zy9fVf9akfJXkL4qVZRag/
ms.jpg","display_phone":"+1-760-603-3773","rating_img_url_large":"http://
media4.ak.yelpcdn.com/static/20101216169592178/img/ico/stars/
stars_large_4.png","id":"vivace-carlsbad","categories":
[["Italian","italian"]],"location":
{"city":"Carlsbad","display_address":["Park Hyatt Aviara Resort","7100
Aviara Resort Dr","Carlsbad","Carlsbad, CA 92011"],"geo_accuracy":
8,"neighborhoods":
["Carlsbad"],"postal_code":"92011","country_code":"US","address":
["Park Hyatt Aviara Resort","7100 Aviara Resort Dr"],"coordinate":
{"latitude":
33.099300599999999,"longitude":-117.2854892},"state_code":"CA"}}]}
So my requirement is:
1. Look whether the business has deals or not. I have the Name,
Address Location of the business. Can I use this to find the
information I am looking for?
2. Is there any support or any plan to work on such requests
Please do let me know!!
Thanks,
Ashish