scry_catalog: Query Scryfall Catalog API

Description Usage Arguments Value See Also Examples

View source: R/scry_catalog.R

Description

Request contents of catalogs. Catalogs contains all existing versions of that object. For example scry_catalog("toughnesses") returns every toughness that has ever been printed on a Magic card, including non-mumeric values like "*+1".

Usage

1
scry_catalog(catalog_name, delay = 75)

Arguments

catalog_name

The name of the catalog you want (character). See Description for available catalogs.

delay

Number of milliseconds scryr should wait between requests (Scryfall asks for 50-100).

Value

character vector of objects in the catalog

See Also

Catalogs: Available catalogs are "card-names", "artist-names", "word-bank", "creature-types", "planeswalker-types", "land-types","artifact-types", "enchantment-types", "spell-types", "powers", "toughnesses", "loyalties", "watermarks".
While most catalog names are self-explanatory, "word-bank" is every English word of 2+ letters that's appears in a card name.

Examples

1
2
scry_catalog("artist-names")
scry_catalog("toughnesses") %>% as.numeric()

khailper/scryr documentation built on Aug. 1, 2019, 9:35 p.m.