AlanOC91 / YGOPRODeck

Yu-Gi-Oh! Card Database and Deck Share Site
81 stars 4 forks source link

Card's specific setcode version missing from all cards endpoint #492

Open Skyflote opened 5 months ago

Skyflote commented 5 months ago

Hi, so I'm a bit of a newbie but i think some card specific versions are missing from the all cards endpoint [https://db.ygoprodeck.com/api/v7/cardinfo.php] . For example, when I search for TN23-EN016 (stardust dragon) in this endpoint nothing comes up, but if i do a search based on the setcode with this link : [https://db.ygoprodeck.com/api/v7/cardsetsinfo.php?setcode=TN23-EN016] i do get the result. Why is that?

I am trying to build a quick application allowing me to type the setcode of a card, then choose the rarity based on the different rarities listed in de cardinfo.php endpoint to then add it to the collection csv I'm building. I could use the second api call but it would be much slower and i encounter problems when there are multiple rarities for the same setcode (which are not returned by cardsetsinfo.php).

Thanks a lot !