Learn R Programming

geniusr (version 1.1.0)

search_song: Retrieve song identifiers for associated search terms

Description

The Genius API lets you search hosted content (all songs). Use search_song to return song_id, song_name, lyrics_url and artist_id for all unique song matches to a search.

Usage

search_song(search_term, n_results = 10, access_token = genius_token())

Arguments

search_term

A character string to search for song matches

n_results

Maximum no. of search results to return

access_token

Genius' client access token, defaults to genius_token

Examples

Run this code
# NOT RUN {
search_song(search_term = "Gucci", n_results=50)
# }

Run the code above in your browser using DataLab