Take the 2-minute tour ×
Board & Card Games Stack Exchange is a question and answer site for people who like playing board games, designing board games or modifying the rules of existing board games. It's 100% free, no registration required.

I am going to write a program to manage my library of Magic cards and I am looking for a database file or list of all of the cards that have been released. I know that the Gathering site is useful, but it limits the number of cards I can return in a search. I would happily accept a spreadsheet file, database file, or even a text file.

The more information contained in the database, the better. Having associated images would just be fantastic, but at this point I would settle for names and basic stats of the cards.

share|improve this question
2  
Cockatrice just scrubs Gatherer set-by-set when you set it up. Their code to do it should be open-source (you'll want to look at the oracle tool). –  Alex P May 7 '12 at 19:55
    
Note that technically you'd be breaking Wizard's terms of service if you scrape all the images from Gatherer. I'm sure you don't care about that if it's for personal use only… –  ghoppe May 7 '12 at 21:26
1  
I'm guessing half the fun for you will be building the program, but just in case you didn't know, if you're using Windows, the Magic the Gathering Online client can also track collections offline. You might want to check that out because it is possible to export a csv collection file. –  ghoppe May 7 '12 at 21:56
    
And for those who don't take fun in programming their own tool and still need to manage their library, there are also online tools to do so. I'm using deckbox but I assume there are others as well. –  Joubarc Sep 19 '13 at 7:17
    
possible duplicate of Magic card database for websites –  Jonathan Hobbs Nov 5 '13 at 8:56
show 2 more comments

4 Answers

up vote 3 down vote accepted

You can grab a complete list here it's in .xls too! I have downloaded a copy but it looks to be someone's personal list and might disappear at any time. I don't have the ability to attach a file yet so download it quick!

If that is not what you want then your best bet would be Cockatrice but be aware of breaking the Gatherer ToS.

share|improve this answer
1  
Where are the Gatherer TOS? –  ikegami May 24 '12 at 0:14
add comment

as an alternative, you can also get the full set of cards in JSON format - including all sets, languages, printings and detailed information - from this website: http://mtgjson.com/

This website also provides information to work with it's associated site for serving images, found here: http://mtgimage.com

these websites appear to be designed specifically for developers, with explanations of what each property in the JSON objects means.

share|improve this answer
    
I was playing with this over the weekend and it works quite well, there are a couple of hiccups to look out for. the "booster" attribute of each set object didn't play well with the library I used (Newtonsoft Json). And contrary to my first implementation, converted mana costs cannot be integers. Thanks unhinged! –  Patters Mar 10 at 14:47
add comment

For people that are still searching for a program to save you set, put in trade cards and or make a wishlist. I found this awesome site that does exactly that! http://deckbox.org/. After you have listed all of your cards, you can even see the value of your set.

share|improve this answer
    
I was thinking of building a similar tool to the OP. I want my collection organized by which deck each card is in, with the possibility of proxies. Does Deckbox provide this? –  thepeer Apr 2 at 14:40
add comment

Here is it in XML, complete from what I gather.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.