Joshua de la Bruere
{scryfalleR} (name likely to change) is an R package that wraps the scryfall API. Scryfall is the leading 3rd party database for finding Magic the Gathering card data, such as printings, prices, previews, and rulings.
{scryAnotherDay} is currently in development and is very experimental. You can install this alpha version using devtools or remotes from this repository.
devtools::install_github("delabj/scryAnotherDay")
remotes::install_github("delabj/scryAnotherDay")
This package is very much in the alpha stages, the API may change and breaking changes may be introduced. This package is not maintained nor endorsed by scryfall.com, but is build according to the rules provided in their license.
In general Scryfall asks that you make no more than 10 requests per second, in addition they recommend that you cache the data from scryfall once every 25 hours, in general though small updates are made per day, prices are only updated every 24 hours, and gameplay information like card names, Oracle text, and mana costs, are made on a significantly less frequent basis. If only looking at elements that are unlikely to update, it is encouraged that you process the data locally in your own database, and update far less frequently.
Taken from the Scryfall docs:
As part of the Wizards of the Coast Fan Content Policy, Scryfall provides our card data and image database free of charge for the primary purpose of creating additional Magic software, performing research, or creating community content (such as videos, set reviews, etc) about Magic and related products.
When using Scryfall data, you must adhere to the following guidelines:
- You may not use Scryfall logos or use the Scryfall name in a way that implies Scryfall has endorsed you, your work, or your product.
- You may not require anyone to make payments, take surveys, agree to subscriptions, rate your content, or create accounts in exchange for access to Scryfall data.
- You may not use Scryfall data to create new games, or to imply the information and images are from any other game besides Magic: The Gathering.
- If you wish to use card images, please also review our image guidelines.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.