Open Doarakko opened 3 months ago
Hello,
Apologies for the issues. We've recently made massive structural changes to our database structure which affected all our endpoints. We've implemented complete backwards compatibility on the cardinfo.php endpoint which is why that endpoint continues to work.
The random card endpoint was old, poorly coded, poorly documented and volatile and wasn't included in our backwards compatible changes. It made more sense to us to funnel the request into the much more complete cardinfo.php endpoint to give more accurate and up to date card information in a safe manner.
However, I understand that this change has affected you so I do apologize.
My main recommendation would be to update your code to utilize cardinfo.php which is non-volatile and will be protected going forward as it always has been.
I can potentially look into reimplementing the original randomcard endpoint (although the url may differ) if you can't change over to cardinfo.php.
Our apologies for how this change has affected your usage.
Thank you for your quick reply.
I understand the background behind the breaking change and the recommended course of action going forward. I will be changing to using the cardinfo.php endpoint.
Finally, I always enjoy working with your api, thank you!
All the tools I developed using this endpoint have resulted in errors. When I checked, the response was an array.
Is this change intentional? It's a breaking change, so please version the api if possible.
https://db.ygoprodeck.com/api/v7/cardinfo.php?num=1&offset=0&sort=random&cachebust