Magic: the Gathering Yu-Gi-Oh! World of Warcraft Vs. System Pokémon Naruto UFS The Spoils Duelmasters
ccgdb
ccgdb.com Web API
We have created a REST-based API, that returns XML (eXtensible Markup Language) or JSON (Java Script Object Notation) data. For each game in our database, we maintain a set of API calls to help you make the most of your web-based TCG application.
Below is some documentation about the API.
  1. Magic: the Gathering
  2. Yu-Gi-Oh!
  3. World of Warcraft
  4. Vs. System
  5. Pokémon
  6. UFS
  7. The Spoils
  8. Duelmasters
  1. get card by name
  2. get cards like name
  3. get cards by list
  4. get all sets
  5. get cards by setid
  1. get card by id
  2. get card by name
  3. get all sets
  4. get cards by setid
  1. get card by id
  2. get cards like name
  3. get all sets
  4. get cards by setid
  1. get card by id
  2. get cards like name
  3. get all sets
  4. get cards by setid
  1. get all sets
Magic: the Gathering - get card by name
URL: http://api.ccgdb.com/mtg/v1/getCardByName/?
  • api_key=1234567890
  • query=[ string ]; ex. Serra Angel
  • output=[ xml (default) | json ]; (optional)
Magic: the Gathering - get cards like name
URL: http://api.ccgdb.com/mtg/v1/getCardsLikeName/?
  • api_key=1234567890
  • query=[ string ]; ex. Serra
  • output=[ xml (default) | json ]; (optional)
Magic: the Gathering - get cards by list
URL: http://api.ccgdb.com/mtg/v1/getCardsByList/?
  • api_key=1234567890
  • query=[ pipe-delimited list of names; max. 100 ]; ex. Forest|Island|Mountain
  • output=[ xml (default) | json ]; (optional)
Magic: the Gathering - get all sets
URL: http://api.ccgdb.com/mtg/v1/getAllSets/?
  • api_key=1234567890
  • output=[ xml (default) | json ]; (optional)
Magic: the Gathering - get all cards for a given set id
URL: http://api.ccgdb.com/mtg/v1/getCardsBySet/?
  • api_key=1234567890
  • query=[ number ]; ex. 1 (see get all sets for ids)
  • output=[ xml (default) | json ]; (optional)
Yu-Gi-Oh! - get card by id
URL: http://api.ccgdb.com/yugioh/v1/getCardById/?
  • api_key=1234567890
  • query=[ string ]; ex. STON-EN001
  • output=[ xml (default) | json ]; (optional)
Yu-Gi-Oh! - get card by name
URL: http://api.ccgdb.com/yugioh/v1/getCardByName/?
  • api_key=1234567890
  • query=[ string ]; ex. Gemini Elf
  • output=[ xml (default) | json ]; (optional)
Yu-Gi-Oh! - get all sets
URL: http://api.ccgdb.com/yugioh/v1/getAllSets/?
  • api_key=1234567890
  • output=[ xml (default) | json ]; (optional)
Yu-Gi-Oh! - get all cards for a given set id
URL: http://api.ccgdb.com/yugioh/v1/getCardsBySet/?
  • api_key=1234567890
  • query=[ number ]; ex. 1 (see get all sets for ids)
  • output=[ xml (default) | json ]; (optional)
World of Warcraft- get card by id
URL: http://api.ccgdb.com/warcraft/v1/getCardById/?
  • api_key=1234567890
  • query=[ string ]; ex. FOO-1
  • output=[ xml (default) | json ]; (optional)
World of Warcraft - get cards like name
URL: http://api.ccgdb.com/warcraft/v1/getCardsLikeName/?
  • api_key=1234567890
  • query=[ string ]; ex. Sword
  • output=[ xml (default) | json ]; (optional)
World of Warcraft - get all sets
URL: http://api.ccgdb.com/warcraft/v1/getAllSets/?
  • api_key=1234567890
  • output=[ xml (default) | json ]; (optional)
World of Warcraft - get all cards for a given set id
URL: http://api.ccgdb.com/warcraft/v1/getCardsBySet/?
  • api_key=1234567890
  • query=[ number ]; ex. 1 or HoA (see get all sets for ids/abbreviations)
  • output=[ xml (default) | json ]; (optional)
Vs. System - get card by id
URL: http://api.ccgdb.com/vs/v1/getCardById/?
  • api_key=1234567890
  • query=[ string ]; ex. DWF-001
  • output=[ xml (default) | json ]; (optional)
Vs. System - get cards like name
URL: http://api.ccgdb.com/vs/v1/getCardsLikeName/?
  • api_key=1234567890
  • query=[ string ]; ex. Robin
  • output=[ xml (default) | json ]; (optional)
Vs. System - get all sets
URL: http://api.ccgdb.com/vs/v1/getAllSets/?
  • api_key=1234567890
  • output=[ xml (default) | json ]; (optional)
Vs. System - get all cards for a given set id
URL: http://api.ccgdb.com/vs/v1/getCardsBySet/?
  • api_key=1234567890
  • query=[ string ]; ex. 1 or MOR (see get all sets for ids/abbreviations)
  • output=[ xml (default) | json ]; (optional)
Duelmasters - get all sets
URL: http://api.ccgdb.com/duelmasters/v1/getAllSets/?
  • api_key=1234567890
  • output=[ xml (default) | json ]; (optional)
This API is for non-commercial use only, and requires a confirmed email address (my.ccgdb account) and an API Key. To apply for an API Key, use the contact section of this website.

If you are interested in using this information for a commercial project, you can use the contact section of this website to submit your proposal, or contact me directly at api@ccgdb.com.

Home|Magic: the Gathering|Yu-Gi-Oh!|World of Warcraft|Vs. System|Pokémon|Naruto|UFS|The Spoils|Duelmasters|API