Description Usage Arguments Details Examples
Get release statistics
1 2 3 4 5 | get_search(
token,
query = "",
options = list()
)
|
token |
Token object obtained from authorize() or a string containing your personal access token |
query |
(optional) String value of query to search |
options |
(optional) Parameters, see Details |
This function supports many parameters. Below is a list of available fields, all fields are of type string.
type: One of release
, master
, artist
or label
; example: "release"
title: Search by combined “Artist Name - Release Title” title field; example: nirvana - nevermind
release_title: Search release titles; example: "nevermind"
credit: Search release credits; example: "kurt"
artist: Search artist names; example: "nirvana"
anv: Search artist ANV; example: "nirvana"
label: Search label names; example: "dgc"
genre: Search genres; example: "rock"
style: Search styles; example: "grunge"
country: Search release country; example: "canada"
year: Search release year; example: "1991"
format: Search formats; example: "album"
catno: Search catalog number; example: " DGCD-24425"
barcode: Search barcodes; example: "7 2064-24425-2 4"
track: Search track titles; example: "smells like teen spirit"
submitter: Search submitter username; example: "milKt"
contributor: Search contributor usernames; example: "jerome99"
1 2 3 | # Retrieve the release statistics
token <- authorize("key", "secret")
results <- get_search(token, "nirvana", options=list("year" = "1991"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.