Skip to content

A Java wrapper for the official Scryfall REST API

Notifications You must be signed in to change notification settings

realfabianw/scryfall4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scryfall4j

A Java wrapper for the official Scryfall API

Features

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

Example

Get a list of cards matching your search criteria

List<MtgCardInformation> listCards = getListCardsBySearch("Black Lotus", true, false, false);
		
for (MtgCardInformation card : listCards) {
	System.out.println(card);
}

Get information about any set just by its code

MtgSetInformation battlebond = getSetByCode("BBD");
battlebond.getCardCount();
battlebond.getReleaseDate();
		
List<MtgCardInformation> listCards = getListCardsBySet(battlebond);

About

A Java wrapper for the official Scryfall REST API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages