Get EchoNest or Foreign ID from Beats Music ID? - beatsmusic

I want to get EchoNest metadata for tracks coming from Beats Music. Beats has a certain track ID, and I am trying to find a way to connect that to a usable track ID for EchoNest, which takes Spotify IDs, MusicBrainz, etc.

Our track IDs are prefixed by us. Currently, there is no way to get information from EchoNest in this way.

Related

Is it possible (again) to collect event data from Facebook API?

I run an event platform and am looking for a way to retrieve event data (name, date, location, description, etc.) from different events (festivals) on Facebook.
We were working on a connection when the Cambridge Analytica thing happened. Since then my developers have not found a new way to retrieve info, but I'm a bit skeptical.
As of now, it is not possible to get Page Events (which you want to get, i assume):
This is a restricted edge. You cannot request access at this time.
Source: https://developers.facebook.com/docs/graph-api/reference/page/events/

Soundcloud API get tracks by multiple users in one go

I understand that by using the code below i get all tracks by user XXXXX
http://api.soundcloud.com/users/XXXXX/tracks.json?client_id=MY ID
Now my question is how can i get all tracks by two or more different users in one go. For Example user YYYY and XXXX
The code below does not work
http://api.soundcloud.com/users/XXXXX/YYYYY/tracks.json?client_id=MY ID
There's no way to do it through the API. You have to make two or more requests to get each users tracks and then combine them into one collection. Let me know if you need any additional information.

How to handle deezer IDs vocabulary

each song can have different IDs in different countries (see Deezer APsI: example of non-streamable song for country limitation for detalis); having said that, which is the best practice to handle this in a deezer APIs based application?
Is there anything (like a "superID") which tells me that song A having ID 7 and song A having ID 8 are actually the same song?
As far as I have understood, the difference in catalog among countries shouldn't be huge so a song available in country X is usually available in all the other countries too in most of the cases...but considering the above difference in IDs vocabulary, is this still true? I.e. a song having ID 12345 in country X is available as 12345 in all the other countries in most of the cases?
Thanks.
Currently, the best practice is to use the readable flag on the JSON.
If you build your requests on client side (JS&co), the api geolocate the request with the client location.
If you build your requests on server side, the api use the geolocation of your server except if you use &access_token argument and the user is premium, the api use the geolocation of the subscription of the user.
No superID.
Yes, Most of the time, the identifiers are the same in all countries.

Facebook Graph API: Get Events by Venue

Is there a way to query all the events for a specific venue?
I noticed that there is no such entity Venue - it is a structure inside the event object.
Assuming there isn't, what do you think about the following solution?
Query all the events in the proximity of the Venue (I got the venue coordinates)
Filter all events that do not match the Venue ID.
Thanks!
Unfortunately you are right. The only way forward being to filter all the events by venue.
As of right now there is not a way via pure SQL. It'll get pretty ugly having to track all the events, and there are no assurances you got every event. There may that one facebook user who invites his 30 best friends for a birthday party, though I presume that is not much a worry.

Facebook APIs using checkins as an entry to raffle

I've been exploring ways that it might be possible to promote the business of a friend of mine. One of these ways is by encouraging users to check in to his business, the incentive for this being that they go into the draw to win some kind of prize.
I've been trying to find if the code for this already exists but I might be looking in the wrong places. If it doesn't what would be the best way to do it using the graph APIs.
Thanks.
You can use Facebook app to check-in to your page/business.
All page check-ins can be fetched using following request by your code
https://graph.facebook.com/PAGE_ID/checkins?access_token=PAGE_ACCESS_TOKEN
If you want to get only specific time period check-ins use since and until params in query.
You have to parse the json response and store in an array and randomly select the winner.
you can contact the winner using their facebook id and send them a message.
You will have to write the code yourself, but it would essentially work like this:
Get the user to allow access to the "Raffle" application and get their email address and permissions to look at their check-ins. Email is required to contact the winner.
Use a scheduled script (cronjob) to periodically check if the user has checked-in anywhere (in particular, the business you want to promote).
Award a raffle ticket for each unique check-in within a 24 hour period.
Hold a draw between all the users who checked in on that day or week and award the prize to someone randomly.
Pretty simple flow, but complex code.