简体   繁体   中英

Get multiple business images (image_url) from yelp api

Using the Yelp Business API, is it possible to get more than one business image?

According to the documentation, the json returns only one image: http://www.yelp.com/developers/documentation/v2/business

There are several images available:

  • image_url - URL of photo for this business
  • snippet_image_url - URL of snippet image associated with this business
  • deals.image_url - Deal image url
  • gift_certificates.image_url - Gift certificate image url
  • reviews.user.image_url - User profile image url
  • others that I may have missed

So, yes, it is possible to get more than one image.

Of these image types, there could be multiple gift_certificate images (because gift_certificates is defined as a list). Similarly for deals.image_url . Reviews might in future, but is currently restricted to 1 review at present.

There is an end point called the "business API". According to the documentation the JSON response to this end point contains a field called photos where you can access multiple pictures of the business in question. Hope this helped.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM