getArtistInfo: Get Data on a Spotify Artist

Description Usage Arguments Value Examples

View source: R/spotify_InfoAPI.R

Description

Search using either an artists name or Spotify id code.

Usage

1
2
3
4
5
6
7
getArtistInfo(
  artist,
  byName = FALSE,
  dataframe = TRUE,
  lim = 10,
  authentication_token = getAuthenticationToken()
)

Arguments

artist

The id or name of a Spotify artist to search.

byName

Boolean. TRUE searches artist by name, FALSE searches by id.

dataframe

Boolean. TRUE returns data cleaned in a dataframe, FALSE returns raw json.

lim

The number of results to return if searched by name.

authentication_token

Predefined argument which runs getAuthenticationToken()

Value

A dataframe or json object containing an artists information.

Examples

1
getArtistInfo("Ghost", byName = TRUE, dataframe = TRUE)

lukavuko/wrappify documentation built on Dec. 28, 2021, 4:07 p.m.