rafinha 8 Posted April 8, 2019 Share Posted April 8, 2019 Hi guys, There is any way to search in the music library for a song by artist name and song title using the API ? Thanks Link to comment Share on other sites More sharing options...
Luke 37113 Posted April 9, 2019 Share Posted April 9, 2019 Hi, you'd use the normal search api to search for a song, and then add Artist=xxx to limit to a specific artist name. 1 Link to comment Share on other sites More sharing options...
rafinha 8 Posted April 10, 2019 Author Share Posted April 10, 2019 Thanks, I'm using: http://192.168.2.41:8096/emby/Items?searchTerm=I Want It That Way&MediaType=Audio&Recursive=true&api_key=68d3d604b24c49xdb5c22e80f91e0ad8 And works just the way I want, so I can get the media Id. Now, I'm trying to get the song info, like the song path, but i'm receiving the list of folders instead the media info. http://192.168.2.41:8096/emby/Items?Id=95708&api_key=68d3d604b24c49xdb5c22e80f91e0ad8 This is the correct endpoint to get the media info? Thanks Link to comment Share on other sites More sharing options...
speechles 1920 Posted April 10, 2019 Share Posted April 10, 2019 You need to use &recursive=true with this call. You can also use &sortBy= &sortOrder= &filters= Link to comment Share on other sites More sharing options...
rafinha 8 Posted April 10, 2019 Author Share Posted April 10, 2019 Hi if I add recursive true, I got the entire server media structure. I want search by the media ID, and get the info, just this. Link to comment Share on other sites More sharing options...
Luke 37113 Posted April 10, 2019 Share Posted April 10, 2019 Have you: Tried this out with the interactive api docs built into the server? Used the chrome debugger to monitor what the web app is doing when searching? 1 Link to comment Share on other sites More sharing options...
rafinha 8 Posted April 10, 2019 Author Share Posted April 10, 2019 Just as reference for who is trying to do it: axios.get(`http://192.168.2.41:8096/emby/Users/${userId}/Items/${mediaId}/?api_key=${apiKey}`); // Javascript Almost finishing my script for SpotifyToEmby playlist Link to comment Share on other sites More sharing options...
Luke 37113 Posted April 11, 2019 Share Posted April 11, 2019 Cool sounds great ! Link to comment Share on other sites More sharing options...
blackarcanis 3 Posted February 12, 2020 Share Posted February 12, 2020 Hi ! I'm trying also to search to a song with the search method but having some issues... The idea for me is to search by "title artist" (title + artist). But currently if I'm filling the "searchTerm" with that I got no result, I must only send the title of song. I also try the "artist=XXX" but it's not working it always returning me all tracks with the term send to "searchTerm". I need Emby to return me only this specific track from this specific artist. Any solution ? Thank you ! Link to comment Share on other sites More sharing options...
Luke 37113 Posted February 12, 2020 Share Posted February 12, 2020 Hi ! I'm trying also to search to a song with the search method but having some issues... The idea for me is to search by "title artist" (title + artist). But currently if I'm filling the "searchTerm" with that I got no result, I must only send the title of song. I also try the "artist=XXX" but it's not working it always returning me all tracks with the term send to "searchTerm". I need Emby to return me only this specific track from this specific artist. Any solution ? Thank you ! https://emby.media/community/index.php?/topic/82484-search-by-song-title-artist-name/&do=findComment&comment=843248 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now