This repository contains my REST API for checking current prices on Magic TCG singles.
Changelog:
Parameter | Description |
---|---|
cardname | The name of the card to retrieve an image for. |
cardset(optional) | The set we want to retrieve the image from, as listed on magiccards.info |
Parameter | Description |
---|---|
cardname | The name of the card to retrieve TCGPlayer pricing on. |
cardset(optional) | The set we want to retrieve TCGPlayer prices from as listed on TCGPlayer |
Parameter | Description |
---|---|
cardname | The name of the card to retrieve Ebay pricing on. |
cardset(optional) | The set we want to retrieve the Ebay price from in any format |
Parameter | Description |
---|---|
cardname | The name of the card to retrieve Channel Fireball pricing on. |
cardset(optional) | The set we want to retrieve the Channel Fireball price from in any format |
These examples demonstrate the proper URLs and return values for these APIs.
URL:
http://magictcgprices.appspot.com/api/images/imageurl.json?cardname=Pillar%20of%20Flame&cardset=fnmp
Result:
["http://magiccards.info/scans/en/fnmp/150.jpg"]
URL:
http://magictcgprices.appspot.com/api/tcgplayer/price.json?cardname=Tarmogoyf&cardset=Modern%20Masters
Result:
["$97.25", "$115.20", "$149.98"]
URL:
http://magictcgprices.appspot.com/api/ebay/price.json?cardname=Restoration%20Angel&cardset=promo
Result:
["$11.99"]
URL:
http://magictcgprices.appspot.com/api/cfb/price.json?cardname=Dark%20Confidant&setname=ravnica
Result:
["$59.99"]
To test this API, I write a simple Android app which will be released in the Google Play Store. After it shows up in the market, I will post the link here, as well as potentially uploading the source code for that app.