Foursquare: Leveraging Search and Explore - foursquare

Is their a compromise between using the categoriesID of the search endpoint and the extended information given from the explore endpoint. I seem to be having issues querying specified venues queried using their categories ID and also having an extended list of information regarding the venue

In order to associate venues you filtered with categoryId in search with their detail information (like tags, tips, photos, etc), I recommend you make a second call to the venue detail endpoint.
Yes, this means you would have to do one request to venue detail per resulting venue filtered in search.
Foursquare does not match these two together for you.

Related

"Save to Foursquare" button not matching venue

We accurately geolocate venues and then check whether there is a Foursquare venue for that place. Even in the US, but especially in Asia or Africa, lots of Foursquare venues are not correctly mapped. Out of concern for accuracy and not wishing to introduce duplicates into Foursquare - and, until recently, unable to update existing venues in Foursquare - we mapped and then matched our places with venues already in Foursquare.
Previously, with the iFrame-based button, there was no problem if the coordinates of our place were not exactly the same as those in Foursquare. We could attach the Foursquare venue id that corresponded to the venue in our system, and our user could save it to their Foursquare. But now the iFrame button at
http://foursquare.com/button.html?vid=
seems to have stopped working.
Now, for those previously nonexistent Foursquare venues that we added ourselves or, seemingly, where there is a very close match with the lat/long we supply, the new javascript-based button works.
But for many others, painstakingly matched over the years, because our correct locations don't match the incorrect ones carelessly entered into Foursquare, the "Save to Foursquare" button is useless on our site.
I can imagine that this would also be a problem where the venue has been re-located and a publisher's location metadata reflects the old location.
Why not just use Foursquare venue ids?
You can use Foursquare venue IDs with our more modern widgets: https://developer.foursquare.com/overview/widgets. The embedding pattern is a little different but there is a vid key you can pass in to have the widget be associated with a particular venue.

Can foursquare users tag or otherwise categorize checkins?

A client is proposing an app that would display checkins from users who have agreed to share their foursquare info with us; the catch is that they would want to distinguish between checkins that are and aren't relevant to this app. Is there a way to handle that, for instance with user comments at the time of checkin?
You can always look at the category of the venue the user has checked into, which should be available from the check-in response, or filter by specific venues directly. You can also filtering by content in a check-in shout is also a viable idea; the #mom app does this.

find venue with twitter id via API

We integrate our service to 4sqr, this is done by our customer informing us of their venue-id from the 4sqr URL. However, if a venue is claimed and a twitter associated with the venue the url is switched to one with the twitter id.
so, one of two things after this twitter acct is in place for a venue:
1. how does one find the venue-id in your UI?
or
2. how does one query the venue details using the twitter handle?
thanks
Foursquare's /users/search should work (you're basically searching for a "venue user"). https://developer.foursquare.com/docs/explore#req=users/search%3Ftwitter%3Dwinkellyauto

Foursquare venues search and TOS

I'm using another venues provider, but would like to search Foursquare from the venue results of that provider for Foursquare checkins. Is this possible or would that be considered violating the TOS?
Why not read the Policy at https://developer.foursquare.com/overview/community ?
Whats written there as of writing this answer is that it is okay to extend their results with other data sources.
It is not okay to search across both foursquare and Google Places, then return a combination of their results/data.
What I would do if I am doing something I am not sure of is just ask them directly at https://developer.foursquare.com/overview/support
At the last paragraph they talk about policy (at the support page), says you can email them directly.

foursquare api venue details specialsnearby not being returned

When making a Foursquare venue details API call, the specialsNearby field does not exist in the json response. I have tried hundreds of different venues, and none of them contain this field (they do contain the 'specials' field though).
I'm using v2 of the foursquare API, and giving it a version string of v=20120417.
Any assistance in obtaining the nearby specials would be much appreciated!
It does look like we've stopped sending down the specialsNearby field -- once I can confirm with a few of the other dev's, we'll update the docs accordingly.
Edit: We have indeed deprecated this field in favor of the Explore endpoint below.
But, no need to worry -- there's an easy way to get the same info!
Check out our Explore endpoint -- https://developer.foursquare.com/docs/venues/explore
Pass "intent=specials" to that endpoint, and you'll get all the nearby specials.

Resources