Learn R Programming

rgenius (version 0.1.0)

search_genius_song: Search Song

Description

This function searches 'genius' songs by name

Usage

search_genius_song(song_name,
  access_token = Sys.getenv("GENIUS_API_TOKEN"))

Arguments

song_name

String of song name

access_token

Genius Web API token. Defaults to Sys.getenv('GENIUS_API_TOKEN').

Value

Returns a data frame with the song's information

Details

All Genius API endpoints require an artist or song ID. The `search_` functions in this package try to search for the desired artists/songs to obtain their Genius ID and to use them later.

Examples

Run this code
# NOT RUN {
search_genius_song('Paradise')
# }

Run the code above in your browser using DataLab