Get top artists for current user

get_my_top_artists(time_range = "medium_term", limit = 50,
  offset = 0, auth_code = get_spotify_authorization_code())

Arguments

time_range

String indicating the time frame over which the affinities are computed. Valid values: long_term (calculated from several years of data and including all new data as it becomes available), medium_term (approximately last 6 months), short_term (approximately last 4 weeks). Default: medium_term.

limit

Integer indicating the number of entities to return. Default: 50. Minimum: 1. Maximum: 50

offset

Integer indicating the index of the first entity to return. Default: 0 (i.e., the first artist). Use with limit to get the next set of entities.

auth_code

Authorization code with proper scopes. Calls get_spotify_authorization_code() by default.

Examples

# NOT RUN {
get_my_top_artists()
# }