What is the referralId field in the Foursquare venue search response? - foursquare

I am trying to figure out what it is and how it can be used. However, I can not seem to find any reference to it in the foursquare docs.

Related

Apostrophe Issue on Foursquare API

I use the Foursquare API to search for venues. It has been working well up until recently when I tried finding a venue with an apostrophe in the name.
For example searching for: https://api.foursquare.com/v2/venues/search?intent=match&ll=51.308251643957,1.069603024223&query=Tyler's Kiln
I have even tried it on the API Explorer on the Foursquare website and had no luck.
Brandon's comment is correct. You should url encode your query: Tyler%27s%20Kiln

Foursquare: Leveraging Search and Explore

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.

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