Page 1 of 1
Custom field from Discogs
Posted: Thu Mar 09, 2023 2:20 am
by MikeFaulkner
Hi.
I'm looking to have a custom column linked to Discogs. I want to pull the median price from discogs into my collection. Any ideas?
Re: Custom field from Discogs
Posted: Thu Mar 09, 2023 8:02 am
by Conor
The disgogs search works with the
Discogs API, there is no median value provided for the price with the information that comes in. What there is under Release or Master is the lowest price and number for sale. Which is not quite useful as it tends to be quite low compared to the average. Below is an extracted sample of the data that is associated with a release.
Code: Select all
artists = (
{
anv = "";
id = 13961;
join = "";
name = Sting;
"resource_url" = "https://api.discogs.com/artists/13961";
role = "";
"thumbnail_url" = "https://i.discogs.com/gyMkuwtLcUfqM33O5osx3i_GW51vwvDrAnYqBrQxUT8/rs:fit/g:sm/q:40/h:800/w:527/czM6Ly9kaXNjb2dz/LWRhdGFiYXNlLWlt/YWdlcy9BLTEzOTYx/LTE1NTMzMzMwODUt/MzA1My5qcGVn.jpeg";
tracks = "";
}
);
"artists_sort" = Sting;
country = Europe;
"data_quality" = "Needs Vote";
"date_added" = "2011-01-21T12:09:55-08:00";
"date_changed" = "2022-02-22T07:29:29-08:00";
"estimated_weight" = 85;
labels = (
{
catno = STINGCDP5;
"entity_type" = 1;
"entity_type_name" = Label;
id = 904;
name = "A&M Records";
"resource_url" = "https://api.discogs.com/labels/904";
"thumbnail_url" = "https://i.discogs.com/zAsbg9AuvNoiyfDa0OZPeymwQTvd_Y0I3fX2oUvVh9E/rs:fit/g:sm/q:40/h:600/w:600/czM6Ly9kaXNjb2dz/LWRhdGFiYXNlLWlt/YWdlcy9MLTkwNC0x/Mzc5NTAyOTM2LTI1/MDcucG5n.jpeg";
}
);
"lowest_price" = "0.99";
"master_id" = 44576;
"master_url" = "https://api.discogs.com/masters/44576";
notes = "2-track promo CD-single in slim jewel case.";
"num_for_sale" = 37;
released = "2003-09-08";
"released_formatted" = "08 Sep 2003";
"resource_url" = "https://api.discogs.com/releases/2665318";
series = (
);
status = Accepted;
styles = (
"Pop Rock"
);
thumb = "https://i.discogs.com/HCqs_LNTL6ZrW3xTf_a7kK-EZzZtmHToI2b1qlLGHCk/rs:fit/g:sm/q:40/h:150/w:150/czM6Ly9kaXNjb2dz/LWRhdGFiYXNlLWlt/YWdlcy9SLTI2NjUz/MTgtMTI5NTY0MDg1/My5qcGVn.jpeg";
title = "Send Your Love";
uri = "https://www.discogs.com/release/2665318-Sting-Send-Your-Love";
);
year = 2003;
So adding that information might take more programming than you intended. As you would have to extend the plugin to also get market place information, which I actually believe is not available. The discos API is extensive, but the market place part is limited to interacting with your own listing.
Re: Custom field from Discogs
Posted: Thu Mar 09, 2023 2:01 pm
by MikeFaulkner
Thanks Conor.