scry-sets: Retrieve information about sets

Description Usage Arguments Details Value References Examples

Description

A Set represents a group of related Magic cards. All cards on Scryfall belong to exactly one set.

Usage

1
2
3
scry_sets()

scry_set(id, source = "code")

Arguments

id

Unique set indentifier. May refer to any supported source.

source

Source to which id refers. Can be any one of code (the regular three to five-letter set code), scryfall or tcgplayer. See details.

Details

Due to Magic's long and complicated history, Scryfall includes many un-official sets as a way to group promotional or outlier cards together. Such sets will likely have a code that begins with p or t, such as pcel or tori. Official sets always have a three-letter set code, such as zen.

Value

A data frame with 1 or more rows and the following columns:

References

https://scryfall.com/docs/api/sets

Examples

1
2
3
4
5
# Get all sets
scry_sets()

# Get set using an ID
scry_set("vow")

curso-r/scryr documentation built on Feb. 3, 2022, 12:37 a.m.