-
Notifications
You must be signed in to change notification settings - Fork 0
Genius API Setup
-
Sign up and login to Genius: https://genius.com/signup_or_login
-
Once logged in, head over to the API: https://genius.com/api-clients
-
Click on "New API Client" on the left sidebar (highlighted in yellow)
-
Enter in text for "APP NAME". The name doesn't matter but some text is required
-
Enter a valid website address for "APP WEBSITE URL". The website doesn't have to be real but the format needs to be proper
-
"ICON URL" and "REDIRECT URI" can be left blank
-
Click "Save"
-
You've now set up an API client. You can get your token by clicking "Generate Your Token" (highlighted in yellow)
-
Copy your token
-
In R, use the following code:
# Store GENIUS token
Sys.setenv(
GENIUS_API_TOKEN = "PASTE_YOUR_TOKEN_HERE"
)
-
Paste your token between the quotes. Keep the quotes
-
You should be good to go! Try it out:
get_lyrics(
artist_name = "AC/DC",
song_names = "For Those About to Rock (We Salute You)"
)
To keep rocking on, you'll need to generate new tokens from time to time. You can use the link output when loading {simpleRgenius} to come here and get set up again (you'll only need to generate a new token)