by acroyear » Thu Mar 11, 2021 6:14 pm
https://myserver/rest/search2.view?
artistCount=20&artistOffset=0&albumCount=30&albumOffset=0&songCount=100&songOffset=0&query=fred%2A&
v=1.15.0&f=json&c=SubFirePL&u=subfire&s=seed&t=token
where seed and token are from the password encoding as described in the API documentation. v is my api version. f=json means give the reply in json format (alternative is xml). remove newlines, of course. i put those in to make it readable.
For the next page of data, simply increment your offset by the number returned, so the second page of songs would be songOffset=100 (or maybe 101 - i haven't done much here to need paging to know if it starts the first one at 0 or 1).
In the case of artist and album, what you actually have is the ID to call getMusicDirectory on (not getArtist or getAlbum - use search3 for ID3 info, but the params are the same). The songs are complete so you don't need to call getSong() on the info you have.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/