Description Usage Arguments Value See Also Examples
Search MusicBrainz
1 |
type |
Selects the index to be searched, artist, release, release-group, recording, work, label (track is supported but maps to recording) |
query |
Lucene search query, this is mandatory. The query field supports the full Lucene Search syntax; you can find a detailed guide at Lucene Search syntax. For example, you can set conditions while searching for a name with the AND operator. |
limit |
An integer value defining how many entries should be returned. Only values between 1 and 100 (both inclusive) are allowed. If not given, this defaults to 25. |
offset |
Return search results starting at a given offset. Used for paging through more than one page of results. |
a list with data from the API
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | ## Not run:
# Annotation
annotation_data <- mb_search("annotation", "entity:bdb24cb5-404b-4f60-bba4-7b730325ae47")
# Area
area_data <- mb_search("area", 'query="Île-de-France"')
# Artist
artist_data <- mb_search("artist", "artist:fred AND type:group AND country:US")
# CDStub
cdstub_data <- mb_search("cdstub", "title:Doo")
# Label
label_data <- mb_search("label", "Devil's Records")
# Place
place_data <- mb_search("place", "chipping")
# Recording
recording_data <- mb_search("recording", "isrc:GBAHT1600302")
# Release Group
release_group_data <- mb_search("release-group", "release:Tenance")
# Release
release_data <- mb_search("release", "release:Schneider AND Shake")
# Work
work_data <- mb_search("work", "work:Frozen AND arid:4c006444-ccbf-425e-b3e7-03a98bab5997")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.