Hello,
I've started working with the API and would like to request the ability to search types by sub-category (ex: “Standard circulation coins” and/or “Circulating commemorative coins”).
For example, right now I can do:
/types?lang=en&category=coin&issuer=canada
But that comes back with a response that there are 3687 matching types, and the info in the result set only shows me “category: coin” so I can't filter further before requesting each type's detailed information.
Based on searching through the website, I know that limiting my search to the sub-categories of coins I'm interested in brings that down to a much more reasonable 330 types for Canada.
I'd rather not have to burn through 75 queries (to grab those 3687 types 50-at-a-time), then burn through another 3,687 queries to loop through all of them for the detailed information, just to discard 91% of the results because I'm not interested in them. That's a lot of unnecessary queries! And that's just for one issuer.
It would be great if, like the website, you could specify that you wanted not just category=coin, but also sub-categories like “Standard Circulation Coins” and “Circulating Commemorative Coins”.
Because honestly, those are the only two coin types I'm interested in, but I'm interested in those types from several dozen countries.
That would let me do something like this:
/types?lang=en&category=coin&subcategory=1-2&issuer=canada
(I took the “1-2” from the st= parameter on the regular website when I search those types)
Then I could loop through the results in 7 passes of 50 each, and grab the details in another 330 passes and move onto Australia, or the UK, or whichever country is next in my list. That would be 337 queries bringing back 100% useful results instead of 3,672 queries bringing back 9% useful results.
If there's already a reliable way to do this, please let me know!
Cheers,
Jon