Please keep the forum protocol in mind when posting.

Judging Technology » Post: Gatherer API

Gatherer API

Aug. 7, 2016 05:09:22 AM

Yuval Tzur
Judge (Level 2 (International Judge Program)), IJP Temporary Regional Advisor

Europe - East

Gatherer API

Does anyone know if there's a Gatherer API?

I'm working on web-based platform for judges and judge candidates, and it would really help if I could get stuff easily from gatherer.
I'm looking for stuff like card images, Oracle text, mana costs, format legality and so on…

Thanks!

Aug. 7, 2016 08:26:08 AM

Jordan Baker
Judge (Level 2 (Judge Foundry)), Scorekeeper

USA - Great Lakes

Gatherer API

I'm doing some work right now using mtgjson.com's stuff. It used to have an image library as well, but that was C&D'd. Otherwise, I'd recommend doing some investigation in that system, as you may still be able to leverage Gatherer for some of that data from within that system.

Aug. 7, 2016 10:52:55 PM

Peter Richmond
Judge (Level 2 (Judge Foundry)), Scorekeeper

USA - Pacific Northwest

Gatherer API

There are no official APIs that I am aware of, although there are a few unofficial ones that emulate such. (Simply google “Gatherer API” to find a few already prepared options). As Jordan suggested, images will need to come directly from Gatherer itself due to the more… aggressive legal stance toward any outside hosting, but it would be trivial to generate a simple file that could parse through each card's HTML page, grab the image URL, and simply link to the direct gatherer resource (there's likely an easier way or format in each image's URL that would make this very easy). There are no guarantees, however, that this won't be treated identically as any other image resource.

Aug. 7, 2016 11:13:01 PM

Chris Nowak
Judge (Level 2 (Judge Academy))

USA - Midatlantic

Gatherer API

You may want to refer to Sections 2a & 2b in http://gatherer.wizards.com/pages/content.aspx?x=mtg/gatherer/termsofuse

I'm no lawyer, but that would give me some pause before embarking on a project

Aug. 8, 2016 02:16:37 AM

Federico Donner
Judge (Level 3 (International Judge Program))

Hispanic America - South

Gatherer API

magiccards.info doesn’t have an API per se but I think you can add their
search bar to your site… probably not exactly what you were looking for but
super easy to implement.

http://magiccards.info/about.html

Aug. 8, 2016 06:59:40 AM

Filip Haglund
Judge (Uncertified)

Europe - North

Gatherer API

There's no official Gatherer API, sadly. MTGJson is good, and I'd also like to recommend deckbrew. It's a very easy to use REST API.

A couple of example requests:

http://api.deckbrew.com/mtg/cards?name=Tarmogoyf
http://api.deckbrew.com/mtg/sets

You get the idea.