If you use Foursquare API objects / explorers to get places in a specific area, you get the number of photos in response. For example, the default query created when you clicked the Try Now button in the API documentation:
https://api.foursquare.com/v2/venues/explore?ll=40.7,-74
It gives something like:
<...> venue: { id: "4de1b34ec65b7a3e2109e46f", name: "Beekman Beer Garden", <...> photos: { count: 371, groups: [ ], }
But there is no place photo url.
If you try places / photos to get photos of this place, you will get a complete list of photos:
https://api.foursquare.com/v2/venues/4de1b34ec65b7a3e2109e46f/photos?group=venue
Answer:
<...> id: "4fecf72ae4b0f9f20ef5f4ae", <...> prefix: "https://irs0.4sqi.net/img/general/", suffix: "/Ch8l3fTBYzszVoOiDcWoklClo9wbWseLr2ZXBbde4es.jpg", <...> id: "4fecd642e4b0f3117eb4d2e3", <...> prefix: "https://irs1.4sqi.net/img/general/", suffix: "/kWzECY2VMssTWex1GNZITP-YlWzWDHZYsV5p2k4tsEk.jpg", <...>
As you can see, there are a lot of public photos for the venue.
In some cases, the API locations / studies seem to contain the URL of the photograph. Why is this? Is there a way to get a photo for each place using / explore rather than / photos?
user1463862
source share