Description Usage Arguments Value Examples
Request card-level information. This API call operates in a similar manner to a manual Scryfall search.
1 2 3 4 5 6 | scry_cards(query, .unique = c("cards", "art", "prints"),
.order = c("name", "set", "released", "rarity", "color", "usd", "tix",
"eur", "cmc", "power", "toughness", "edhrec", "artist"),
direction = c("auto", "asc", "desc"), include_extras = FALSE,
include_multilingual = FALSE, include_variations = FALSE,
include_ids = FALSE, include_uris = FALSE, delay = 75)
|
query |
search query to pass to the API. A character string that looks the same as a search you'd manually enter into Scryfall. (see: https://scryfall.com/docs/syntax for documentation on searching Scryfall) |
.unique |
How Scryfall handles cases where different versions of the
same card match the |
.order |
How Scryfall sorts returned cards. "name" (default): card name, "set": set code and collector number, "released": release date, "rarity": rarity, "color": color, "usd": price in US dollars, "tix"; price in tickets on MTGO, "eur": price in Euros, "cmc": converted mana cost, "power": power, "toughenss": toughness, "edhrec": EDHREC rating, or "artist": artist name. |
direction |
Which direction cards are sorted in based on |
include_extras |
Should results include extras like tokens or schemes. |
include_multilingual |
Should results include cards in all supported languages. |
include_variations |
Should results include rare case variants. |
include_ids |
Should results include ID variables (e.g. Oracle ID) |
include_uris |
Should results include URI variables (e.g. the URL for the card on Scryfall) |
delay |
Number of milliseconds scryr should wait between requests. (Scryfall asks for 50-100) |
a tibble of cards matching the search parameters
1 2 | scry_cards("set:ktk")
scry_cards("set:ktk wm:mardu")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.