I'm using the itunes enterprise api and I'm trying to use it to extract information on certain artists.
Reading their little guide on how to use it, they give an example url of
https://itunes.apple.com/artist/scritti-politti/id614113
which returns the exact data I need, the thing is I'm not sure where to find the artist id, is there any way I can do a search based on simply the artist name? Or do a search somewhere based on the artist name to find the artist id and then use it in this url.
Thanks
First I used this url
http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/itmsSearch?lang=1&output=json&country=US&term=rhianna&media=music&limit=1
were rhianna can be replaced with whatever artist you're looking up,
from that I can extract the artist id from artistLinkUrl and then make the request using that artist id in the enterprise api.
Related
Hi I'm trying to get the entryId back (so I can update thumbnails) with the kaltura API. How do i do this. My thought is to use title and category. But can't figure out how to do that. Any suggestions?
You can use the list action on the media service - see here for ducomentation.
You can use the nameEqual field to search for the specific entry. I suggest search by the name. If you want, you have more field you can search on in the filter
I am trying to use the OpenAlex API: https://docs.openalex.org/api
This API provides access to a catalog of scholarly papers, authors, institutions, etc...
It is easy enough to make a query for an institution's information such. Here is an example from the API docs:
https://api.openalex.org/I19820366
I am trying to figure out how to get a specific institution's ID.
In the docs, there is a statement that this ID number is Microsoft Academic Graph's institutional ID: https://www.microsoft.com/en-us/research/project/microsoft-academic-graph/
But I have been unable to figure out anything in Microsoft Academic Graph either.
How can I find the institutional ID for a specific institution?
I am a beginner, and I also just started to retrieve data from the OpenAlex API. For me, the easiest way was either to use the ROR id or the GRID id, which you can both look up for any institution either here: https://www.grid.ac/ or here: https://ror.org/
Then you use either ROR or GRID-ID as an identifier (https://docs.openalex.org/about-the-data/institution#ids) and that identifier as a filter, as specified in the API documentation.
Be aware, that except for the Institution-ID, that you want to find, all the other institutional IDs, like ROR or GRID, have to be put in your request as a full URL. Take the example of the Johns Hopkins University. It's not enough to put their ROR like this: "00za53h95", you have to put in the API request like that: "https://ror.org/00za53h95" (without the quotes) or else it won't work. In my example, a request could look like this:
https://api.openalex.org/institutions/https://ror.org/00za53h95
This will deliver a nice json file with all the info you need, including the institution's ID in the database. Save the information as a file by using a cURL GET request or just do it via your browser and get the result as a webpage, both works. If you do the latter, you should follow the suggestion of the OpenAlex team and install a browser plugin like JSONVue, that will make the experience of reading the result on your screen so much better.
Hope that helps.
You can use the OpenAlex API to search for the ID like this:
https://api.openalex.org/institutions?filter=display_name.search:University%20of%20Virginia
In addition to Heather's comment, I'd like to add that we can now go to https://explore.openalex.org/ and search for any entity. Start typing "Johns Hopkins University" and you'll get to this page: https://explore.openalex.org/institutions/I145311948 which has all the identifiers (including the openalex id I145311948) and additional information about this institution.
In the Musixmatch API documentation it is said
Get an album from our database: name, release_date, release_type,
cover art.
In the JSON response example there is also "album_coverart_100x100",
but when I'm making an API call, in the response there is no image availible.
You can get an album art field as the response of album.get, but not from track.search. So if you're trying to show the album art for a result that the user has searched for, you might want to make another api call to album.get and get the value of the key album_coverart_100x100 for the url of the album art.
I know "extracting song or artist names from Youtube" is not possible by using Youtube's data API. However, I have found several websites that have extracted the artist or song names successfully. I guess they are using machine learning or something else.
Is there any common practice to extracting those artist or song names?
You can extract artists and song titles from extra description, though there is one downside, the extra information may not appear in some countries (outside of United States), so you will need a proxy that is located in U.S, you can use Yahoo's YQL service to avoid this issue. The DIV element "watch-description-extra-info" will have all the extra information you need.
Looking through the Soundcloud documentation - it doesn't appear that you can pull the artist name and the song name separately (or am I missing something?):
http://developers.soundcloud.com/docs/api/reference#playlists
ie:
for song https://soundcloud.com/yaz-francis-1/pompeii-bastille
Artist: Bastille
Song: Pompeii
Is it just combined in the tracktitle (title)? User is also not always the song artist name, but the username of the person who posted it to soundcloud.
If not, is there anyway to pull Artist Name and Song separately?
Any help would be greatly appreciated - thanks!
Best,
JP
Well the API doesn't give you the fields separately, but depending on your application there might be a way to get that data anyway.
I have written a webapp using the Soundcloud API and I am actually extracting the artist name separately. If you're interested, I can tell you howI did it.
You need to apply some NLP-tricks and use regular expressions.
I'm in the process of building a Web app for a client who owns a record label and wants to publish 5000+ songs of varying artists and albums. I have diaected the api to death and found the best way to tie a track to an artist is by using tags. This way you can also search by the artist name and get results in the api. In my particular case I am using machine tags to store the artist, album and track name. I also store another tag as a key for finding only tracks that match that key so on my Web app I don't get tracks from other users, since you can't filter results by tags and genre when getting tracks from a specific user.
It's a but messy but it works. So something like this to get all songs by this artist on my Web app from a specific users account
/tracks.json?client_id=xxx&q=app:key=uniqueid&tags=app:artist=artist+name
You can also throw genre in there too if you wanted. Hope this was helpful