Open DFazekas opened 2 years ago
Like this?
https://db.ygoprodeck.com/api/v7/cardsetsinfo.php?setcode=SDY-046
https://db.ygoprodeck.com/api/v7/cardsetsinfo.php?setcode=SDY-046
Almost. This API is for "card set info", not "card info".
This request returns only a subset of the info; it does not return the entire card info, such as card image
, attribute
, etc. Therefore, it still requires two API requests to fetch all the card info via their set code
:
/api/v7/cardsetsinfo.php?setcode={set_code}
to extract card ID
, then/api/v7/cardinfo.php?id={card_id}
to extract the rest of the info.As a solution, could you simply add setcode
as a query parameter to the /api/v7/cardinfo.php
API?
Allowing requests such as /api/v7/cardinfo.php?setcode={set_code}
.
would be great
Set codes are less ambiguous that card names.
The current process to search for a card by its card set, is to query by card name, then filter by set codes.
Please add
set code
as a query parameter.