lookup_entities_by_id: Lookup musicbrainz entities by id

Description Usage Arguments Value Functions Examples

Description

Helper functions for looking up details about musicbrainz database entities given mbid. Optional parameter 'includes' allows retrieving related information. Lookup functions are not vectorized

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
lookup_area_by_id(mbid, includes = NULL)

lookup_artist_by_id(mbid, includes = NULL)

lookup_event_by_id(mbid, includes = NULL)

lookup_instrument_by_id(mbid, includes = NULL)

lookup_label_by_id(mbid, includes = NULL)

lookup_place_by_id(mbid, includes = NULL)

lookup_recording_by_id(mbid, includes = NULL)

lookup_release_group_by_id(mbid, includes = NULL)

lookup_release_by_id(mbid, includes = NULL)

lookup_series_by_id(mbid, includes = NULL)

lookup_work_by_id(mbid, includes = NULL)

Arguments

mbid

musicbrainz database id

includes

character vector of names of related entities to include. See information about avaialable includes in each of the lookup functions.

Value

Tibble containing details of the requested entity

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# find mbid for Trondheim and lookup area information
trondheim_mbid <- search_areas("Trondheim",1)$mbid
lookup_area_by_id(trondheim_mbid)

# Lookup "The Wall" release
the_wall_mbid <- search_releases("The Wall AND artist:Pink Floyd",1)$mbid
lookup_release_by_id(the_wall_mbid)

# Lookup "David Sanborn" artist
sanborn_id <- search_artists("David+Sanborn",1)$mbid
lookup_artist_by_id(sanborn_id, includes=c("recordings"))

dmi3kno/musicbrainz documentation built on Oct. 21, 2020, 3:06 p.m.