-
Hi! I want to use discogs_client to assess the value of vinyls I have found in a box. The idea is to put all titles in a spreadsheet and get the info back from the API. In my limited experience with APIs, my mental model would suggest that I query an endpoint, get all the data back and then pick out the elements I need. With my below code, I would expect it to make one or a max of three API calls (one for search, one for releases, one for marketplace), instead I notice that it makes a new call for every single price item, which immediately bumps me into the API limit if done for a few of them.
These are my logs
Is this the expected behavior or am I doing something wrong? Any help would be incredibly useful! Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi, thanks for reaching out. The api limit should be handled by discogs_client automagically. Which version are you using? |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @AnssiAhola, I justed tested your suggestion with requests debugging enabled. It seems on first access of
|
Beta Was this translation helpful? Give feedback.
-
@kftb does that work out for you? Do you need anything else or should we mark the last post as "answered"? |
Beta Was this translation helpful? Give feedback.
Thanks a lot @AnssiAhola, I justed tested your suggestion with requests debugging enabled. It seems on first access of
suggestions
it fetches but then uses stuff from the variable: