get_my_recently_played | R Documentation |
Get Current User's Recently Played Tracks
get_my_recently_played(
limit = 20,
after = NULL,
before = NULL,
authorization = get_spotify_authorization_code(),
include_meta_info = FALSE
)
limit |
Optional. The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. |
after |
Optional. A Unix timestamp in milliseconds. Returns all items after
(but not including) this cursor position.
If |
before |
Optional. A Unix timestamp in milliseconds. Returns all items before
(but not including) this cursor position. If |
authorization |
Required. A valid access token from the Spotify Accounts service. See the
Web API authorization guide for more details. Defaults to |
include_meta_info |
Optional. Boolean indicating whether to include full result,
with meta information such as |
Returns a list or data frame of results containing the most recently played tracks for the current user.
Other player functions:
get_my_current_playback()
,
get_my_currently_playing()
,
get_my_devices()
,
pause_my_playback()
,
seek_to_position()
,
set_my_repeat_mode()
,
skip_my_playback()
,
skip_my_playback_previous()
,
start_my_playback()
,
toggle_my_shuffle()
,
transfer_my_playback()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.