Connect, authenticate, get current Rainwave status, and subscribe to Rainwave API events.
Disconnect from the Rainwave API.
Remove a callback from the Rainwave API event handling.
Add a callback to handle a Rainwave API event.
Get detailed information about an album, including a list of songs in the album.
ID of album to load from API.
How songs in the album will be sorted.
undefined | null
: alphabetically.added_on
: when song was added to Rainwave.Gets all albums from the service. Provide a callback if you want percentage progress while the data loads.
accepts a number from 0 to 100 representing loading progress
Gets a list of all albums on the server by paging 1000 albums at a time.
Gets all artists from the service. Provide a callback if you want percentage progress while the data loads.
accepts a number from 0 to 100 representing loading progress
Gets all artists from Rainwave in by paging 1000 artists at a time.
Get all songs that have been faved by the user by page.
Gets all groups from the service. Provide a callback if you want percentage progress while the data loads.
accepts a number from 0 to 100 representing loading progress
Get a list of all song groups on the station playlist by paging 1000 groups at a time.
Gets every song including a user's ratings by page.
Get detailed information about an artist.
ID of Artist to load from the API.
Remove a user's song rating.
Song ID of rating to clear.
Clears all requests from the user's queue.
Clears all requests from the user's queue that are on a cooldown of 20 minutes or more.
Removes a request from the user's queue.
ID of Song in user's RequestQueue to delete.
Fave or un-fave an album, specific to the station the request is being made on.
ID of Album to update.
true
to set album as a fave, false
to un-fave.
Faves or un-faves all songs in an album. Only songs on the station the websocket is conneted to will be faved.
ID of Album to update. All songs in this Album will be updated.
true
to set all Songs in the Album as faves, false
to un-fave all Songs in the Album.
Fave or un-fave a song.
true
to set Song as a fave, false
to un-fave.
ID of Song to update.
Get detailed information about a song group.
ID of Group to load.
Returns a basic dict containing rudimentary information on what is currently playing on all stations.
Gets detailed information, such as favourite albums and rating histogram, on a particular user.
ID of User to load.
Change the order of requests in the user's queue. Submit a comma-separated list of Song IDs, in desired order.
Stops the user from having their request queue processed while they're listening. Will remove them from the request line.
Get the last 100 songs that played on the station.
Rate a song.
For new users, the user must have been tuned in for this song to rate it, or they must be tuned in if it's the currently playing song.
For users who have rated 100 songs, they are allowed to rate any song at any time.
Songs that are part of RainwaveEventSong have a rating_allowed
property
you can use to check before submission if the user can rate. For other songs, you
can use the rate_anything
property of User to check before submission.
The API will return a RainwaveErrorObject if the user is not allowed to rate
the song yet.
Rating to set the song to. Recommended to use getValidatedRatingUser.
ID of Song to rate.
Submits a request for a song.
ID of Song to request.
Fills the user's request queue with favorited songs.
Maximum number of songs to add to user's request queue. Not providing this will fill the entire user's request queue.
Gives a list of who is waiting in line to make a request on the given station, plus their current top-requested song if they have one available.
Fills the user's request queue with unrated songs.
Maximum number of songs to add to user's request queue. Not providing this will fill the entire user's request queue.
Search artists, albums, and songs for a matching string. Case insensitive. Submitted string will be stripped of accents and punctuation.
Term to search for. Must be three letters or longer.
Get detailed information about a song.
ID of Song to load from API.
Get the total number of songs in the playlist on each station.
Get information about all available stations.
Get the 100 highest-rated songs on the station the websocket is connected to.
Allows the user's request queue to continue being processed. Adds the user back to the request line.
Get all of a user's unrated songs by page.
Shows the songs the user recently voted for.
Shows requests of a user that were entered into an election.
Vote for a candidate in an election.
If user has already voted, the vote will be changed to the submitted song.
Entry ID of RainwaveEventSong to vote for.
Generated using TypeDoc
"wss://rainwave.cc/api4/websocket/"