getSongInfo: Get data on a song using Spotify API

Description Usage Arguments Value Examples

View source: R/spotify_InfoAPI.R

Description

Search using either a songs name or Spotify id code.

Usage

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

Arguments

song

The name or id of a song to search for.

byName

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

dataframe

Boolean. TRUE returns data in a dataframe, FALSE returns raw JSON object.

lim

The number of results to return if searched by name.

authentication_token

Predefined argument which runs getAuthenticationToken()

Value

A dataframe or json object of song information.

Examples

1
getSongInfo("Motormouth", byName = TRUE)

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