how to get foursquare ID through foursquare api? - foursquare

i integrate foursquare api in my app. and when i use method findLocationsNearbyLatitude
i get id of venues but not is foursquare id. please tell me how to get foursquare ID of location through foursquare API? thank so much!

Call this method passing in the lat and longitude
https://developer.foursquare.com/docs/venues/search.html
this will then return a compact array of venues
https://developer.foursquare.com/docs/responses/venue.html
This will then provide the foursquare id of each venue for you to use

Related

FourSquare API To Pull Reviews?

Does the Foursquare API allow us to pull reviews and then allowing the verified location to respond to it?
I am just wondering if the API allows access to reviews and pulling those sets of data.
Thanks
Foursquare doesn't have reviews per se. They call them tips, and you can get them via the API for a specific venue or user -> https://developer.foursquare.com/docs/venues/tips

Foursquare API : Retrieve principal Venue Photo

I'm using search Foursquare API to get list of venues but in result I don't have principal picture of venue (like profile picture in a facebook page).
Is there a way to retrieve it, using an other API ?
This API give me all photos and I can't retrieve only profile picture (https://api.foursquare.com/v2/venues/VENUE_ID/photos)
I want for example url of photo with logo Mcdonald here : https://fr.foursquare.com/v/mcdonalds/4b24227df964a520ea6124e3
Are you using the venues/explore endpoint? There is a boolean parameter venuePhotos=1 that will include the venue profile photo in the response.

Foursquare explore API returning different result than in foursquare app

this is sample explore url :
https://api.foursquare.com/v2/venues/explore?ll=31.4658656,74.3844226&radius=800&limit=30&sortByDistance=1&client_id=CLIENT_ID&client_secret=CLIENT_SECRET&v=20130911&locale=en
venue return from this api is different from venues in foursquare app for same coordinates.
Your URL is Userless access. foursquare app uses oauth_token instead of client_id/client_secret.
ex)
https://api.foursquare.com/v2/venues/explore?ll=40.7,-74&oauth_token=USER_ACCESS_TOKEN&v=20150824
This is why your URL return different result than in foursquare app.
To use oauth_token, you need to authenticate the user.
Document:
https://developer.foursquare.com/overview/auth#access

Creating and claiming a test venue to use with Foursquare Merchant Platform

Is it possible to create and claim test venues to use with the API? I've created two venues (which are not real businesses), and I'd like to claim them as the venue manager so I can test as I build with the API.
There's no way to claim a venue via the API. You can e-mail api#foursquare.com with the fake venue ID & requested manager ID and we can set it up for you.

Foursquare checkins

Any idea what can I do to get only the checkins from a specific venue?
If i use it like:
https://api.foursquare.com/v2/venues/VENUE_ID?oauth_token=XXX
i get everything about the venue, and I only need the checkins.
Anyone has a solution? Thanks.
You can see who is currently checked in via the /venues/herenow endpoint. Historical check-in information for a venue is only available to the venue manager via the foursquare merchant platform

Resources