scryfall_api library

A wrapper of the Scryfall API for the Dart programming language.

Classes

BulkData
BulkData objects represent daily exports of Scryfall's card data in bulk files.
CardFace
Multiface cards have a card_faces property containing at least two Card Face objects.
CardIdentifier
CardIdentifierId
Finds a card with the specified Scryfall id.
CardIdentifierIllustrationId
Finds the preferred scans of cards with the specified illustration_id.
CardIdentifierMtgoId
Finds a card with the specified mtgo_id or mtgo_foil_id.
CardIdentifierMultiverseId
Finds a card with the specified value among its multiverse_ids.
CardIdentifierName
Finds the newest edition of a card with the specified name.
CardIdentifierOracleId
Finds the newest edition of cards with the specified oracle_id.
CardIdentifierSetCollectorNumber
Finds a card with the specified set and collector_number.
CardIdentifierSetName
Finds a card matching the specified set and name.
CardList
A list of cards returned by a POST /cards/collection request.
CardSymbol
A CardSymbol object represents an illustrated symbol that may appear in card’s mana cost or Oracle text.
Catalog
A Catalog object contains an array of Magic datapoints (words, card values, etc).
ImageUris
Uris for different resolutions of an image for a card.
Legalities
The legalities of a card accross various playing formats.
ManaCost
The result when requesting Scryfall to parse some mana.
Migration
A Migration object helps to reconcile downstream data that may have been synced or imported from Scryfall.
MtgCard
MtgCard objects represent individual Magic: The Gathering cards that players could obtain and add to their collection (with a few minor exceptions).
MtgSet
A Set object represents a group of related Magic cards. All Card objects on Scryfall belong to exactly one set.
PaginableList<T>
A List object represents a requested sequence of other objects (Cards, Sets, etc). List objects may be paginated, and also include information about issues raised when generating the list.
Preview
Information about the preview of a card.
Prices
The prices of a card in different currencies.
RelatedCard
Cards that are closely related to other cards (because they call them by name, or generate a token, or meld, etc) have a all_parts property that contains Related Card objects.
Ruling
Rulings represent Oracle rulings, Wizards of the Coast set release notes, or Scryfall notes for a particular card.
ScryfallApiClient
Dart API Client that wraps the Scryfall API.

Enums

BorderColor
The card's border color.
BulkDataType
The types of BulkData which be retrieved.
CatalogType
The types of Catalog objects which can be retrieved from Scryfall.
Color
The colors used in Magic: The Gathering.
Component
A Component explains the relationship between a card and the RelatedCard it references.
Finish
A list of possible card finishes.
Frame
The card frame used for the re/print in question.
FrameEffect
The frame artwork applied over a particular frame.
Game
The games a card may appear in.
ImageStatus
The status of the image data of a card.
ImageVersion
The ImageVersion specifies the different resolutions and versions of an image for a MtgCard.
Language
Languages supported by the Scryfall API
Layout
The Layout categorizes the arrangement of card parts, faces, and other bounded regions on cards. The layout can be used to programmatically determine which other properties on a card you can expect.
Legality
The possible legalities of a card.
MigrationStrategy
Rarity
The rarities of a card.
RollupMode
The RollupMode specifies if Scryfall should remove “duplicate” results in your query.
RulingSource
The company which produced this ruling.
SearchType
The SearchType specifies the type of search that shall be performed for searching by name.
SecurityStamp
The security stamp of a card.
SetType
An exhaustive list of set types.
SortingDirection
The SortingDirection specifies in which direction the sorting should occur.
SortingOrder
The SortingOrder determines how Scryfall should sort the returned cards.

Exceptions / Errors

ScryfallException
A ScryfallException object represents a failure to find information or understand the input you provided to the API. ScryfallException objects are always transmitted with the appropriate 4XX or 5XX HTTP status code.