-
Notifications
You must be signed in to change notification settings - Fork 10
Database
Aknorw edited this page Apr 30, 2018
·
2 revisions
client.searchDatabase(options, pagination)| param | required | type | - |
|---|---|---|---|
options |
false | object | See below |
pagination |
false | object | See paginate |
See on Discogs API documentation
client.searchDatabase({
query,
type,
title,
releaseTitle,
credit,
artist,
anv,
label,
genre,
style,
country,
year,
format,
catno,
barcode,
track,
submitter,
contributor,
})| key | type | - |
|---|---|---|
| query | string | |
| type | string | One of release, master, artist, label
|
| title | string | |
| releaseTitle | string | |
| credit | string | |
| artist | string | |
| anv | string | |
| label | string | |
| genre | string | |
| style | string | |
| country | string | |
| year | string or int | |
| format | string | |
| catno | string | |
| barcode | string | |
| track | string | |
| submitter | string | |
| contributor | string |
client.getRelease(releaseId, currency)| param | required | type | - |
|---|---|---|---|
releaseId |
true | int | |
currency |
false | string | Must be a supported currency |
See on Discogs API documentation
client.searchRelease(query, options, pagination)| param | required | type | - |
|---|---|---|---|
query |
true | string | |
options |
false | object | See search options |
pagination |
false | object | See paginate |
client.getMaster(masterId)| param | required | type |
|---|---|---|
masterId |
true | int |
See on Discogs API documentation
client.getVersionsForMaster(masterId, pagination)| param | required | type | - |
|---|---|---|---|
masterId |
true | int | |
pagination |
false | object | See paginate |
See on Discogs API documentation
client.getArtist(artistId)| param | required | type |
|---|---|---|
artistId |
true | int |
See on Discogs API documentation
client.getReleasesForArtist(artistId, pagination, sort)| param | required | type | - |
|---|---|---|---|
artistId |
true | int | |
pagination |
false | object | See paginate |
sort |
false | object | See sort - by year (default), title or format
|
See on Discogs API documentation
client.searchArtist(query, options, pagination)| param | required | type | - |
|---|---|---|---|
query |
true | string | |
options |
false | object | See search options |
pagination |
false | object | See paginate |
client.getLabel(labelId)| param | required | type |
|---|---|---|
labelId |
true | int |
See on Discogs API documentation
client.getReleasesForLabel(labelId, pagination)| param | required | type | - |
|---|---|---|---|
labelId |
true | int | |
pagination |
false | object | See paginate |
See on Discogs API documentation
client.searchLabel(query, options, pagination)| param | required | type | - |
|---|---|---|---|
query |
true | string | |
options |
false | object | See search options |
pagination |
false | object | See paginate |