get_card_by_name: Retrieve a card from the Scryfall API using the card's name.

View source: R/cards.R

get_card_by_nameR Documentation

Retrieve a card from the Scryfall API using the card's name.

Description

For both exact and fuzzy, card names are case-insensitive and punctuation is optional (you can drop apostrophes and periods etc). For example: "fIReBALL" is the same as "Fireball" and "smugglers copter" is the same as "Smuggler's Copter".

Usage

get_card_by_name(name, fuzzy = FALSE, set = NULL)

Arguments

name

The card name to be searched for.

fuzzy

Whether to search for an exact match, or to use a fuzzy search.

set

(Optional) A set code to limit the search to one set.

Value

A tibble containing card information.


mooreaw/scRyfall documentation built on Nov. 9, 2022, 2:54 a.m.