get_song: Get songs.

Description Usage Arguments Value See Also Examples

View source: R/songs.R

Description

This function returns information from the Genius API about a single song.

Usage

1
get_song(song_id, access_token)

Arguments

song_id

a song's ID on the Genius API

access_token

the user's (your) access token to the Genius API. For more detail about how to get it, see section Details

Value

A DataFrame with information about a song. Columns:

id

the song's ID on the Genius API

title

the song's title

artist

the song's main artist

featured_artists

a list of other artists who contributed to the song, if any

album

the song's album

date

the song's released date

views

the number of views for this song on the Genius website

contributors

the number of contributors to the lyrics of this songs on the Genius website

transcribers

the number of transcribers to the lyrics of this songs on the Genius website

concurrents

the number of people looking at the page whenever the API was last updated

See Also

get_artist, search_song, get_songs_from_artist

Examples

1
2
3
4
5
6
7
## Not run: 
library(rGenius)

## A Single song ID:
get_song(8439, access_token=YOUR_TOKEN_GOES_HERE)

## End(Not run)

tylercroberts/rGenius documentation built on May 17, 2019, 8:46 p.m.