Category, list or venue group exclusive for my app - api

I want to develop a web app and use in it the foursquare API, I need to add venues and filter them by location, likes, checkins, etc..
Would there be any way to create a category, list or venue group exclusive for the app, and do my inquiries directly to one of them.? I was thinking save the IDs Venues in my database, but as I want to filter by number of likes, checkins and others, that only will help me to bring data from a venue.

The Foursquare venues database is for all to use, so when you make changes (adding venues, etc.) to it, they will be seen by the entire Foursquare community (app users, developers, etc.) Categories are curated by Foursquare itself, and there's no way to add them via the API.
There could be two approaches for you to take here, depending on your app's needs. You could simply retrieve venue data from Foursquare each time you need it, and then once you have these venues, perform the filtering you want. Since you also mentioned creating your own categories, you could also associate venue ID's with your custom categories locally.

Related

Is there a way to store metadata on meetup?

I want to use the Meetup.com API to have a group everyone belongs to, but then enable members to receive notifications of certain types of events on their smartphones. For example the group would have 3000 members and have activist meetings, social meetings, and training meetings. Users would be able to specify interests so they would only get notified of the categories they are interested in.
Is there a clean way to do this through the meetup API? If there is metadata like a category that would be perfect.
Looking at their event get api I don't think there is a clean way to do it. Seems storing it as a hidden HTML value is a hacky way to do it. I'll probably end up with another datastore referencing the eventID and store my info there.

Using APIs to Filter Albums by Years

So I'm working on an application that has a feature that generates a list of 100 or so artists that are similar to those in the user's music catalog using the Echo Nest API. Then, a user can supply a certain year, and, based on the similar artists, the application will return a list of albums that were released on that year.
The only problem is that I have no idea how to filter albums based on year. The Echo Nest API doesn't really do much with albums. The Discogs and Last.fm APIs work with albums, and the Discogs API has data about albums' release dates, but there is no way to filter an initial query by release date. For example, if I have the artist Fleet Foxes and I want to filter it by albums released in 2011, there is no option to search for albums by the Fleet Foxes confined to release dates of 2011.
The only option I can really see at this point is iterating over EVERY album an artist has and only adding those albums that meet my specifications. However, this is obviously very heavy on both the APIs and my server, especially considering that many of the artists in the list of 100 similar artists will have no albums that match my criteria and that many artists have well within the range of 100 albums when you take into consideration singles, remixes, etc.
Does anyone see a better way of doing this?
If an API really doesn't have any way to filter by year, then yes, of course you will have to pull down all of the releases and filter them after the fact.
If you think this is a burden on your code and/or their server, you should file a feature request to add the filtering.
However, you should make sure first that they really don't provide such a thing. Most REST APIs separate "fetch" and "search". For example, http://api.example.com/artists/12345/releases may not have any way to filter it, but http://api.example.com/search?type=releases&artist=12345&year=2011 may exist.
Without looking into all of the APIs in detail, a quick check of Discogs' "Run a search query" docs shows that you can include a year criterion in the search (although it looks like maybe you can't actually search by artist ID, just by artist name?).

Filtering Foursquare Venue Results

I am currently evaluating several different APIs in order to get venue information. A key component of any provider is the ability to not just return all venues nearby but tailor the list based on previously entered user preferences.
Foursquare does not allow 'munging' their venue data with other data, like Google's places to create an aggregated service. But can I take Foursquare's venues for a given area, apply some filtering based on user preferences and recommendation engine techniques, and present a modified, personalized version of their information? Do they frown on only using their venue info as a jumping off point, even if attribution on the final results is given?
This customization would be above and beyond using retailer categories, something that can be included in the facebook request. Asking because other services require results presented exactly as returned from the API, including ads.
First, check out the policies at https://developer.foursquare.com/overview/community
We welcome you to use foursquare as your location database. You can associate additional content with our venue data in your system, but you may not combine our database with another database or export it on your own.
I think that they even encourage you to manipulate the data and create creative solutions with it, as long as you do not break their ground rule of not merging it with another database (see the full text at the link).
The API even lets you filter the results according to your needs with the categoryId and intent parameters. For example in our app, we filter out places that have less than 2 unique people checked in, because we assume its faked places.. we do other filtering on the result set as well, but we display only data from from foursquare venues database, and we attribute.

Is there a way to know if a new venue was created in foursquare?

I know you see if your friend(s) are checked in in a venue on foursquare but is there a way to see if a new venue was created in a certain place/city
No, this functionality is not available through the foursquare API.
Related discussion in this thread: https://groups.google.com/forum/?fromgroups=#!topic/foursquare-api/vdKwGYCnuy0
There is no direct way to get this info via the API at the moment, but theoretically you could search for venues in certain areas in the city, cache venue IDs and check their createdAt value (see https://developer.foursquare.com/docs/responses/venue). Repeat these steps on regular basis and compare against cached venue IDs. That way you can discover newly created venues. Of course, it may not be 100% reliable, especially in larger cities.

Foursquare places

We would like to be able to pull out certain places from foursquare an categorize them on our website along with comments from foursquare users. I have the following questions:
1- Can we pull out places and categorize them the way we want on our website? e.g: restaurants/bar/lounge/club/landmarks/others.
2- can we pull out as well phone numbers (when available) and addresses (longitude-lattitude) of places ?
3- Does foursquare have any general descriptive summaries of each place?
Thanks for the help.
Chris
Foursquare has an API, more information can be found at this link
To answer your questions:
Yes, check out the Venues Platform in 4sq API, specifically, the search. When you query the API, as part of the result set for each venue, you get a category
If available, you will get them back under the 'contact' field, check out the response venue object from the search function
Yes, description field, you will need to make an API request to get the complete venue object.
Edit: one last thing, attribute and play nice :)
From my experience, you do not get a lot of venues with 'contact' and 'description' information. But foursquare is not very popular where I test my application, so it might be bad experience - experiment with it yourself.
FourSquare has a great category tree that you can use for categorizing restaurants
http://aboutfoursquare.com/foursquare-categories/
Actually, I'm using this tree in my website:
Dishes Map