A Java wrapper for the official Scryfall API
Scryfall4j tries to implement every feature offered by the official REST API.
- Get card by ID
- Get a list of all cards (this may take some time...)
- Get a list of all sets
- Get a list of cards matching your search query
- Get a list of all cards in a specified set
- Get a set specified by Code / ID / TCGPlayerID
List<MtgCardInformation> listCards = getListCardsBySearch("Black Lotus", true, false, false);
for (MtgCardInformation card : listCards) {
System.out.println(card);
}
MtgSetInformation battlebond = getSetByCode("BBD");
battlebond.getCardCount();
battlebond.getReleaseDate();
List<MtgCardInformation> listCards = getListCardsBySet(battlebond);