Search code examples
foursquarephotos

Foursquare API not returning public venue photos in userless API call?


I am making the following request as a userless API call:

https://api.foursquare.com/v2/venues/xxx123yyy/photos?v=20120321&group=venue

but the response I am getting shows a 0 count of items:

"response":  {
    "photos":  {
      "count": 0,
      "items":  []
    }

I can go to the same venue from the Foursquare webpage (without being logged in) and see the publicly listed photos there. If I try another venue, I get the expected response with same photo items as visible from web. What could be specific to this venue that is preventing the expected response?


Solution

  • I noticed this started happening earlier today, too. The venues/ endpoint appears to want an oauth_token, effectively breaking userless calls.

    {"meta":{"code":401,"errorType":"invalid_auth","errorDetail":"Missing oauth_token. See https:\/\/developer.foursquare.com\/docs\/oauth.html for details."},"response":{}}