Discussion Forum: Thread 312558

 Author: nerdgeek View Messages Posted By nerdgeek
 Posted: Nov 14, 2021 13:45
 Subject: LEGO API: Price Guide Average incorrect?
 Viewed: 121 times
 Topic: Technical Issues
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

nerdgeek (1883)

Location:  Belgium
Member Since Contact Type Status
Aug 12, 2020 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: a nerdgeek.store 🤓🌎🆓📬
Hi,

I am playing around with the BrickLink api and saw some differences in the data,
maybe someone can explain?

So as an experiment I am trying to find the average price of the last 6 months
of this set: 76901-1

I am comparing data from the API https://api.bricklink.com/api/store/v1/items/SET/76901-1/price?guide_type=sold&vat=N
With data from the price guide: https://www.bricklink.com/catalogPG.asp?S=76901-1-------&colorID=0&viewExclude=Y&v=P&cID=Y

If I take a closer look I can see clearly that min_price and max_price are the
same as found on the price guide. But the averages are wrong.

API: "avg_price":"15.8361","qty_avg_price":"15.8293"

Price Guide:
Avg Price: EUR 16.7486
Qty Avg Price: EUR 16.1709

It should normally be the same as they are both in EUR.

This is not a huge hassle, I can calculate them with price_detail and come to
the same numbers as the price guide. But I wondered why these averages are different?

I did try with additional parameters on the api, but still never got the average
I expected.

If anyone can explain this difference, would be much appreciated!

Kind regards