Tap the button above to download an iPhone Shortcut called “Scryfall Photo Lookup by Caleb”.
The first time you use the shortcut, be sure to tap “Always Allow” when prompted.
When activated, this shortcut opens your camera. When you snap a photo of any Magic: The Gathering card, it will take you to that specific printing’s page on scryfall.com.
That is all!
This shortcut was made possible by (OCR) Optical Character Recognition technology, in combination with regex (regular expressions).
How does it work?
- Your phone uses OCR to scan the photo for text. It reads the whole card.
- It then uses regex to search the text for the relevant information in the card:
- Collector Number (e.g. 167)
- Set Code (e.g. ECL for Lorwyn Eclipsed)
- It then queries the API of Scryfall.com using these two pieces of information to find the exact card you took a photo of.
- Lastly, it opens up that link for you in your default browser for you to look at!
