Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

203
Views
Foursquare API Not returning photos on the Venue Search

So I'm playing around with the Venues just trying to get it to show some stuff before I both getting specific with my queries. I'm using nodejs and this module.

https://www.npmjs.com/package/foursquarevenues

If that matters. Anyways when I put a call to the api to getVenues with a simple call like:

var params = {
        venuePhotos : '1',
        near : "Rome, Italy"
};

Everything works fine with the exception that no photos are returned. A standard venue object from this call will look like this:

    id: '523b15ce11d2d66df7dca8d0',
    name: 'Qlub Radio, Roma',
    contact: {},
    location: 
     { lat: 41.891096,
       lng: 12.5106,
       labeledLatLngs: [Object],
       cc: 'IT',
       country: 'Italia',
       formattedAddress: [Object] },
    categories: [ [Object] ],
    verified: false,
    stats: { checkinsCount: 3, usersCount: 2, tipCount: 0 },
    venueRatingBlacklisted: true,
    beenHere: { lastCheckinExpiredAt: 0 },
    specials: { count: 0, items: [] },
    referralId: 'v-1493396577',
    venueChains: [],
    hasPerk: false }

Which as far as I can tell returns no photo url for the venue which is contrary to what the documentation suggests. I've been putting in a bunch of different parameters as suggested in other threads and it hasn't changed anything. Am I missing something here?

Thanks.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

After looking at the node.js module you're using the getVenues call is hitting the Foursquare venue/search endpoint which doesn't return photos with the search results. Calling exploreVenues in that module will hit the venues/explore endpoint which can return photos by including the venuePhotos=1 parameter (as you've done).

Also, if you only details for a specific venue you can use getVenue and if you only need the photos you can use getVenueAspect.

Hope this helps.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!