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.
Related
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.
is there a way to grab instagram users based on a specific hashtag ?
I run contests based on re posting photos with specified hashtag then randomly pick a winner, i need a tool that can grab the usernames of those who reposted that photo and used that hashtag.
You can query instagram using the API. There are official clients for both python and ruby.
You didn't specify what language/platform you are using, so I'll give you the generic approach.
Query instagram using the Tag Recent Media endpoint.
In the response, you will receive a user object that has the user's username, id, profile url, and so on. This should be enough to do what you are describing.
As far as tools, there aren't great options to probably do things exactly how you want. If you just want a simple contest, you could use statigram, but it's not free.
If you roll your own solution, I highly recommend you also do the following:
Implement a rate limiting mechanism such as a task queue so you don't exceed your API calls (5000 per hour for most calls). Also useful for failures/network hicups, etc.
Have users authenticate so you can use OAuth to extend your API calls to 5000/per user/hour to get around #1.
Try the subscribe API if there won't be many items. You can subscribe to a specific tag as well, and you will get a change notification. At that point though you need to retrieve the actual media item(s), and this can cost a lot of API calls depending on how frequent and what volume these changes occur.
If your users don't have much photos/relatively small/known in advance, you can actually query the user's recent media instead and filter in your own code by hash tag.
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
I have an app where you can buy food on delivery restaurants.
Can I use the Foursquare API so the user can check-in on the restaurant that he order from?
Probably the user will not be in the resutaurant it self when he checkin.
There is an special way to do this on the foursquare api?
thanks
You can check-in any user that has authorized your application at a venue using the /checkins/add endpoint in the API. If you don't know the user's actual location (or fully expect them not to actually be there, but have a legitimate reason to be checking in, e.g. for delivery) be sure to leave the lat/lng parameter blank. The check-in will go through and be in the user's history, but won't count for badges/mayorships, etc.
I'm not too sure what you're asking. I don't think you can check in to places if you're not even near them (or at least I wasn't able to when I last used the 4sq API).
Check this tutorial out if you need help getting started with the API, or read the 4sq api documentation.
using the Foursquare API I am currently able to get a venue Mayor but can I got the Top5 user?
Thanks
To get the top 5 (or 10) users for a venue, you'll need to use foursquare's Merchant API and act on the behalf of the venue's manager.
In particular, you'd use the /venues/stats endpoint (https://developer.foursquare.com/merchant/venues/stats.html). For more information about the Merchant API and venue managers, see: https://developer.foursquare.com/merchant/
In short no. The best you can get is the stats from a venue: Foursquare API Venue those contain: "Contains checkinsCount (total checkins ever here), usersCount (total users who have ever checked in here), and tipCount (number of tips here)."
From my experience the API is almost designed to avoid this sort of info gathering. Best way would be watch as people check in to the venue and create your own stats from that information.