User Tools

Site Tools


connections

Available Connections

cards

This connection allows you to get information about all the cards available in Eredan iTCG.

Available aggregates

A card can never match several exclusive aggregates, these do not therefore accept semicolon separators.

Name type Exclusive Description
guildsintnoReturn cards of the specified guilds
Exemple : /cards/guilds/1,4,8
classesintnoReturn cards of the specified classes
Exemple : /cards/classes/1,4,8
racesintnoReturn cards of the specified races
Exemple : /cards/races/1,4,8
castsintnoReturn cards of the specified casts
Exemple : /cards/casts/1,4,8
gendersintnoReturn cards of the specified genders
Exemple : /cards/genders/1,4,8
cardtypesintyesReturn cards of the specified cardtypes
Exemple : /cards/cardtypes/1,4,8
seriesintyesReturn cards of the specified series
Exemple : /cards/series/1,4,8
raritiesintyesReturn cards of the specified rarities
Exemple : /cards/rarities/1,3

Character's Characteristics

The API accepts on the card connection a characteristic filter. You can use a single value (cards/{characteristic_name}/x) or a range of values (cards/{characteristic_name}/x-y).

Name type Description
min_attackintCharacter's minimum attack value
max_attackintCharacter's maximum attack value
defenseintCharacter's defense value
healthintCharacter's health value
spiritintCharacter's spirit value

Returned entries :

Name type Description
dataarrayList of cards
See table 1.1 for details
visual_url_prefixURLHost where images are hosted
prev_page_urlURLAPI URL for previous page
next_page_urlURLAPI URL for next page
1.1 data
Name type Description
id int Card's unique identifier
name string Card's name
description string Card's description
level int Card's level
relationsarray Card's characteristic
See table 1.11 for details
rarity_id int Rarity identifier
tradable bool true : can be trade at the marketplace
false : can't be trade at the marketplace
visuals array URI for big, medium and small card picture
See table 1.12 for details
release_date date Card's release date
flavor_textstringFlavor text
character_specsarray (If this card is a character)
See table 1.13 for details
1.11 data.relations
Name type Description
seriesarrayList of card's series
typesarrayList of card's types
classesarrayList of card's classes
1.12 data.visuals
Name type Description
bigstringCard's big picture URI
(336px × 461px)
mediumstringCard's medium picture URI
(189px × 259px)
smallstringCard's small picture URI
(75px × 103px)
1.13 data.character_specs
Name type Description
spiritintCharacter's spirit
attackarrayCharacter attack
Entry one : minimum attack
Entry two : maximum attack
defenseintCharacter's defense
healthintCharacter's health

Server-side Data Caching

This connection supports server-side data caching.

Exemple (json) :

http://api.itcg.eredan.com/json.php/cards?count=2&apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":2,
         "name":"Healing Balm",
         "level":1,
         "relations":{
            "series":[
               1
            ],
            "types":[
               6
            ]
         },
         "rarity_id":1,
         "tradable":true,
         "visuals":{
            "big":"cards\/web_big\/us\/6NqVngaY.png",
            "medium":"cards\/web_mid\/us\/6NqVngaY.png",
            "small":"cards\/web_small\/us\/6NqVngaY.png"
         },
         "release_date":"2010-04-12",
         "description":"Heals 2 to 3 Health points.",
         "flavor_text":"Once applied, this fabulous product will instantly heal your wounds.* Caution very flamable."
      },
      {
         "id":3,
         "name":"Mystic Staff",
         "level":1,
         "relations":{
            "series":[
               1
            ],
            "types":[
               41
            ],
            "classes":[
               4,
               2
            ]
         },
         "rarity_id":2,
         "tradable":true,
         "visuals":{
            "big":"cards\/web_big\/us\/vZwvA0yC.png",
            "medium":"cards\/web_mid\/us\/vZwvA0yC.png",
            "small":"cards\/web_small\/us\/vZwvA0yC.png"
         },
         "release_date":"2010-04-12",
         "description":"Activates after the fight. Permanent.\nDefense + 1 and Spirit + 2.",
         "flavor_text":"These mystical staffs are built in Drak'Azol workshops, ideal for young Mage apprentices. They suddenly become far more intelligent..."
      }
   ],
   "visual_url_prefix":"http:\/\/static.eredan.com\/",
   "next_page_url":"http:\/\/api.itcg.eredan.com\/json.php\/cards\/?count=2&locale=en&start=2"
}

cardtypes

Get all types

You can get all card types by using “cardtypes”.

Returned entries

Name type Description
dataarrayList of card types
See table 1.1 for details
1.1 data
Name type Description
id int Type unique identifier
namestring Type's name
namestring Type's name
childrenarrayList of type's children in the same format

Server-side Data Caching

This connection supports server-side data caching.

Exemple (json) :

http://api.itcg.eredan.com/json.php/cardtypes?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":3,
         "name":"Action",
         "children":[
            {
               "id":82,
               "name":"Necrosis"
            },
            {
               "id":70,
               "name":"Quest"
            }
         ]
      },
      {
         "id":2,
         "name":"Character"
      },
      {
         "id":54,
         "name":"Decoration",
         "children":[
            {
               "id":63,
               "name":"The Proelior Magus Wand"
            }
         ]
      },
      {
         "id":67,
         "name":"Elemental"
      },
      {
         "id":75,
         "name":"Eredan's Favor"
      },
      {
         "id":1,
         "name":"Item",
         "children":[
            {
               "id":28,
               "name":"Amulet"
            },
            {
               "id":24,
               "name":"Armor",
               "children":[
                  {
                     "id":33,
                     "name":"Shield"
                  }
               ]
            }
   ]
}
Get specific types

You can also target specifics ids.
http://api.itcg.eredan.com/json.php/cardtypes/17,36,24?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":17,
         "name":"Fire"
      },
      {
         "id":36,
         "name":"Flail"
      },
      {
         "id":24,
         "name":"Armor",
         "children":[
            {
               "id":33,
               "name":"Shield"
            }
         ]
      }
   ]
}

casts

Get all casts

You can get all card casts by using “casts”.

Returned entries

Name type Description
dataarrayList of card casts
See table 1.1 for details
1.1 data
Name type Description
id int Cast's unique identifier
namestring Cast's name

Server-side Data Caching

This connection supports server-side data caching.

Exemple (json) :

http://api.itcg.eredan.com/json.php/casts?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":19,
         "name":"Archon"
      },
      {
         "id":18,
         "name":"Avalonian"
      },
      {
         "id":8,
         "name":"Circus"
      },
      {
         "id":12,
         "name":"Temple Guardian"
      },
      {
         "id":13,
         "name":"Tempus"
      },
      {
         "id":9,
         "name":"The Pack"
      },
      {
         "id":3,
         "name":"Tracker"
      },
      {
         "id":4,
         "name":"Tsouta\u00ef"
      },
      {
         "id":1,
         "name":"WitchBlade"
      },
      {
         "id":14,
         "name":"World-Tree"
      }
   ]
}
Get specifics casts

You can also target specifics ids.
http://api.itcg.eredan.com/json.php/casts/1,10?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":10,
         "name":"Courtier"
      },
      {
         "id":1,
         "name":"WitchBlade"
      }
   ]
}

classes

Get all classes

You can get all card classes by using “classes”.

Returned entries

Name type Description
dataarrayList of card classes
See table 1.1 for details
visual_url_prefixURLWhere images are hosted
1.1 data
Name type Description
id int Class' unique identifier
namestring Class' name
visualsarray Class' icons
See table 1.11
1.11 data.visuals
Name type Description
big URI Class' big icon
(53px × 53px)
mediumURI Class' medium icon
(30px × 30px)
smallURI Class' small icon
(12px × 12px)

Server-side Data Caching

This connection supports server-side data caching.

Exemple (json) :

http://api.itcg.eredan.com/json.php/classes?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":8,
         "name":"Berserker",
         "visuals":{
            "big":"images\/web_big\/2dd0835cc885e1fcba61234813339d0d.png",
            "medium":"images\/web_mid\/2dd0835cc885e1fcba61234813339d0d.png",
            "small":"images\/web_small\/2dd0835cc885e1fcba61234813339d0d.png"
         }
      },
      {
         "id":6,
         "name":"Craftsman",
         "visuals":{
            "big":"images\/web_big\/2725070774ffdc6ecce88bf718a201f4.png",
            "medium":"images\/web_mid\/2725070774ffdc6ecce88bf718a201f4.png",
            "small":"images\/web_small\/2725070774ffdc6ecce88bf718a201f4.png"
         }
      },
      {
         "id":2,
         "name":"Mage",
         "visuals":{
            "big":"images\/web_big\/3dcf24998808c09c06cffe4b0e8d4598.png",
            "medium":"images\/web_mid\/3dcf24998808c09c06cffe4b0e8d4598.png",
            "small":"images\/web_small\/3dcf24998808c09c06cffe4b0e8d4598.png"
         }
      },
      {
         "id":3,
         "name":"Marauder",
         "visuals":{
            "big":"images\/web_big\/af0fe07aff1f68bedbccfa1747e27521.png",
            "medium":"images\/web_mid\/af0fe07aff1f68bedbccfa1747e27521.png",
            "small":"images\/web_small\/af0fe07aff1f68bedbccfa1747e27521.png"
         }
      },
      {
         "id":4,
         "name":"Priest",
         "visuals":{
            "big":"images\/web_big\/effa47fc496aa429e1659d86cf013a32.png",
            "medium":"images\/web_mid\/effa47fc496aa429e1659d86cf013a32.png",
            "small":"images\/web_small\/effa47fc496aa429e1659d86cf013a32.png"
         }
      },
      {
         "id":7,
         "name":"Unknown",
         "visuals":{
            "big":"images\/web_big\/492c246bbfb23cbffb210c943b57b636.png",
            "medium":"images\/web_mid\/492c246bbfb23cbffb210c943b57b636.png",
            "small":"images\/web_small\/492c246bbfb23cbffb210c943b57b636.png"
         }
      },
      {
         "id":1,
         "name":"Warrior",
         "visuals":{
            "big":"images\/web_big\/d29065540f9987c359e6447c7027ead0.png",
            "medium":"images\/web_mid\/d29065540f9987c359e6447c7027ead0.png",
            "small":"images\/web_small\/d29065540f9987c359e6447c7027ead0.png"
         }
      }
   ],
   "visual_url_prefix":"http:\/\/static.eredan.com\/"
}
Get specifics classes

You can also target specifics ids.
http://api.itcg.eredan.com/json.php/classes/6,8?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":8,
         "name":"Berserker",
         "visuals":{
            "big":"images\/web_big\/2dd0835cc885e1fcba61234813339d0d.png",
            "medium":"images\/web_mid\/2dd0835cc885e1fcba61234813339d0d.png",
            "small":"images\/web_small\/2dd0835cc885e1fcba61234813339d0d.png"
         }
      },
      {
         "id":6,
         "name":"Craftsman",
         "visuals":{
            "big":"images\/web_big\/2725070774ffdc6ecce88bf718a201f4.png",
            "medium":"images\/web_mid\/2725070774ffdc6ecce88bf718a201f4.png",
            "small":"images\/web_small\/2725070774ffdc6ecce88bf718a201f4.png"
         }
      }
   ],
   "visual_url_prefix":"http:\/\/static.eredan.com\/"
}

guilds

Get all guilds

You can get all card guilds by using “guilds”.

Returned entries

Name type Description
dataarrayList of card guilds
See table 1.1 for details
visual_url_prefixURLWhere images are hosted
1.1 data
Name type Description
id int Guild's unique identifier
namestring Guild's name
colorstringColor of the guild (Hexadecimal, # prefixed)
visualsarray Guild's icons
See table 1.11
1.11 data.visuals
Name type Description
big URI Guild's big icon
(81px × 78px)
mediumURI Guild's medium icon
(46px × 44px)
smallURI Guild's small icon
(18px × 17px)

Server-side Data Caching

This connection supports server-side data caching.

Exemple (json) :

http://api.itcg.eredan.com/json.php/guilds?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":7,
         "name":"Desert Nomads",
         "color":"#f0c26b",
         "visuals":{
            "big":"images\/web_big\/25fd5740bc64712b8353b56cd6a65bda.png",
            "medium":"images\/web_mid\/25fd5740bc64712b8353b56cd6a65bda.png",
            "small":"images\/web_small\/25fd5740bc64712b8353b56cd6a65bda.png"
         }
      },
      {
         "id":4,
         "name":"Kotoba",
         "color":"#ad0313",
         "visuals":{
            "big":"images\/web_big\/462fe73b74a8f01f54fdd33eaba323b7.png",
            "medium":"images\/web_mid\/462fe73b74a8f01f54fdd33eaba323b7.png",
            "small":"images\/web_small\/462fe73b74a8f01f54fdd33eaba323b7.png"
         }
      },
      {
         "id":8,
         "name":"Mercenaries",
         "color":"#cecca4",
         "visuals":{
            "big":"images\/web_big\/db0b06c586298efe1c579a8e7ab5febc.png",
            "medium":"images\/web_mid\/db0b06c586298efe1c579a8e7ab5febc.png",
            "small":"images\/web_small\/db0b06c586298efe1c579a8e7ab5febc.png"
         }
      },
      {
         "id":9,
         "name":"Nehantists",
         "color":"#2f4763",
         "visuals":{
            "big":"images\/web_big\/fe7aa75fa9f3031c09aa1849b915deb4.png",
            "medium":"images\/web_mid\/fe7aa75fa9f3031c09aa1849b915deb4.png",
            "small":"images\/web_small\/fe7aa75fa9f3031c09aa1849b915deb4.png"
         }
      }
   ],
   "visual_url_prefix":"http:\/\/static.eredan.com\/"
}
Get specifics guilds

You can also target specifics ids.
http://api.itcg.eredan.com/json.php/guilds/1,8?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":8,
         "name":"Mercenaries",
         "color":"#cecca4",
         "visuals":{
            "big":"images\/web_big\/db0b06c586298efe1c579a8e7ab5febc.png",
            "medium":"images\/web_mid\/db0b06c586298efe1c579a8e7ab5febc.png",
            "small":"images\/web_small\/db0b06c586298efe1c579a8e7ab5febc.png"
         }
      },
      {
         "id":1,
         "name":"Noz'Dingard Envoys",
         "color":"#5099cf",
         "visuals":{
            "big":"images\/web_big\/6d67edf96a5395213ce3734526c04f0f.png",
            "medium":"images\/web_mid\/6d67edf96a5395213ce3734526c04f0f.png",
            "small":"images\/web_small\/6d67edf96a5395213ce3734526c04f0f.png"
         }
      }
   ],
   "visual_url_prefix":"http:\/\/static.eredan.com\/"
}

races

Get all races

You can get all card guilds by using “races”.

Returned entries

Name type Description
dataarrayList of card races
See table 1.1 for details
visual_url_prefixURLWhere images are hosted
1.1 data
Name type Description
id int Race's unique identifier
namestring Race's name
visualsarray Race's icons
See table 1.11
1.11 data.visuals
Name type Description
big URI Race's big icon
(53px × 53px)
mediumURI Race's medium icon
(30px × 30px)
smallURI Race's small icon
(12px × 12px)

Server-side Data Caching

This connection supports server-side data caching.

Exemple (json) :

http://api.itcg.eredan.com/json.php/races?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":10,
         "name":"Beast",
         "visuals":{
            "big":"images\/web_big\/bc76cea60a2b788a609071bdd2e90108.png",
            "medium":"images\/web_mid\/bc76cea60a2b788a609071bdd2e90108.png",
            "small":"images\/web_small\/bc76cea60a2b788a609071bdd2e90108.png"
         }
      },
      {
         "id":1,
         "name":"Dais",
         "visuals":{
            "big":"images\/web_big\/483c073b7343e496eaa25fba082f71d6.png",
            "medium":"images\/web_mid\/483c073b7343e496eaa25fba082f71d6.png",
            "small":"images\/web_small\/483c073b7343e496eaa25fba082f71d6.png"
         }
      },
      {
         "id":6,
         "name":"Guemelite",
         "children":[
            {
               "id":11,
               "name":"Air Guemelite ",
               "visuals":{
                  "big":"images\/web_big\/913a4a78fc412e2f7109ca8a0cb2afc8.png",
                  "medium":"images\/web_mid\/913a4a78fc412e2f7109ca8a0cb2afc8.png",
                  "small":"images\/web_small\/913a4a78fc412e2f7109ca8a0cb2afc8.png"
               }
            },
            {
               "id":21,
               "name":"Dragon Guemelite ",
               "visuals":{
                  "big":"images\/web_big\/913a4a78fc412e2f7109ca8a0cb2afc8.png",
                  "medium":"images\/web_mid\/913a4a78fc412e2f7109ca8a0cb2afc8.png",
                  "small":"images\/web_small\/913a4a78fc412e2f7109ca8a0cb2afc8.png"
               }
            }
         ],
         "visuals":{
            "big":"images\/web_big\/913a4a78fc412e2f7109ca8a0cb2afc8.png",
            "medium":"images\/web_mid\/913a4a78fc412e2f7109ca8a0cb2afc8.png",
            "small":"images\/web_small\/913a4a78fc412e2f7109ca8a0cb2afc8.png"
         }
      }
   ],
   "visual_url_prefix":"http:\/\/static.eredan.com\/"
}
Get specifics races

You can also target specifics ids.
http://api.itcg.eredan.com/json.php/races/21,10?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":21,
         "name":"Dragon Guemelite ",
         "visuals":{
            "big":"images\/web_big\/913a4a78fc412e2f7109ca8a0cb2afc8.png",
            "medium":"images\/web_mid\/913a4a78fc412e2f7109ca8a0cb2afc8.png",
            "small":"images\/web_small\/913a4a78fc412e2f7109ca8a0cb2afc8.png"
         }
      },
      {
         "id":10,
         "name":"Beast",
         "visuals":{
            "big":"images\/web_big\/bc76cea60a2b788a609071bdd2e90108.png",
            "medium":"images\/web_mid\/bc76cea60a2b788a609071bdd2e90108.png",
            "small":"images\/web_small\/bc76cea60a2b788a609071bdd2e90108.png"
         }
      }
   ],
   "visual_url_prefix":"http:\/\/static.eredan.com\/"
}

rarities

Get all rarity levels

You can get all card rarity levels by using “rarities”.

Returned entries

Name type Description
dataarrayList of rarity levels
See table 1.1 for details
visual_url_prefixURLWhere images are hosted
1.1 data
Name type Description
id int Rarity level's unique identifier
namestring Rarity level's name
can_be_foilbooltrue : Can be foil.
false : a card with this rarity level can never be foil.
series_overridearrayIcon override for specific series
See table 1.11 for details.
visualsarray Rarity level's icons
See table 1.12 for details.
1.12 data.serie_override
Name type Description
series_id int Serie's unique identifier.
visualsarray See table 1.12 for details
1.12 data.visuals
Name type Description
big URI Rarity level's big icon
(20px × 21px)
mediumURI Rarity level's medium icon
(11px × 12px)
smallURI Rarity level's small icon
(4px × 4px)

Server-side Data Caching

This connection supports server-side data caching.

Exemple (json) :

http://api.itcg.eredan.com/json.php/rarities?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":9,
         "name":"Pokeredan",
         "can_be_foil":false,
         "visuals":{
            "big":"images\/web_big\/d14551466d86165d31f3d718bc6b8c7b.png",
            "medium":"images\/web_mid\/d14551466d86165d31f3d718bc6b8c7b.png",
            "small":"images\/web_small\/d14551466d86165d31f3d718bc6b8c7b.png"
         }
      },
      {
         "id":10,
         "name":"Iced",
         "can_be_foil":false,
         "visuals":{
            "big":"images\/web_big\/d14551466d86165d31f3d718bc6b8c7b.png",
            "medium":"images\/web_mid\/d14551466d86165d31f3d718bc6b8c7b.png",
            "small":"images\/web_small\/d14551466d86165d31f3d718bc6b8c7b.png"
         },
         "series_override":[
            {
               "series_id":1,
               "visuals":{
                  "big":"images\/web_big\/3d53f2d20dfb8391d3f6fd57b00c6798.png",
                  "medium":"images\/web_mid\/3d53f2d20dfb8391d3f6fd57b00c6798.png",
                  "small":"images\/web_small\/3d53f2d20dfb8391d3f6fd57b00c6798.png"
               }
            },
            {
               "series_id":35,
               "visuals":{
                  "big":"images\/web_big\/81110577ee3c20e680d7e8dea203f17e.png",
                  "medium":"images\/web_mid\/81110577ee3c20e680d7e8dea203f17e.png",
                  "small":"images\/web_small\/81110577ee3c20e680d7e8dea203f17e.png"
               }
            },
            {
               "series_id":39,
               "visuals":{
                  "big":"images\/web_big\/ff1e6f4a7e59c82f2837bc16b2854306.png",
                  "medium":"images\/web_mid\/ff1e6f4a7e59c82f2837bc16b2854306.png",
                  "small":"images\/web_small\/ff1e6f4a7e59c82f2837bc16b2854306.png"
               }
            }
         ]
      },
      {
         "id":13,
         "name":"Olympiads ",
         "can_be_foil":false,
         "visuals":{
            "big":"images\/web_big\/dbb064518b6b359cd33a39bd4155931f.png",
            "medium":"images\/web_mid\/dbb064518b6b359cd33a39bd4155931f.png",
            "small":"images\/web_small\/dbb064518b6b359cd33a39bd4155931f.png"
         }
      }
   ],
   "visual_url_prefix":"http:\/\/static.eredan.com\/"
}

Get specifics rarity levels

You can also target specifics ids.
http://api.itcg.eredan.com/json.php/rarities/13?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":13,
         "name":"Olympiads ",
         "can_be_foil":false,
         "visuals":{
            "big":"images\/web_big\/dbb064518b6b359cd33a39bd4155931f.png",
            "medium":"images\/web_mid\/dbb064518b6b359cd33a39bd4155931f.png",
            "small":"images\/web_small\/dbb064518b6b359cd33a39bd4155931f.png"
         }
      }
   ],
   "visual_url_prefix":"http:\/\/static.eredan.com\/"
}

series

Get all series

You can get all card series by using “series”.

Returned entries

Name type Description
dataarrayList of series
See table 1.1 for details
visual_url_prefixURLWhere images are hosted
1.1 data
Name type Description
id int Serie's unique identifier
namestring Serie's name
rarity_visualsarrayRarity levels icons used for this series
See table 1.11 for details
1.11 data.rarity_visuals
Name type Description
rarity_id int Rarity level's unique identifier
visualsarray See table 1.111 for details
1.111 data.rarity_visuals.visuals
Name type Description
big URI Rarity level's big icon
(20px × 21px)
mediumURI Rarity level's medium icon
(11px × 12px)
smallURI Rarity level's small icon
(4px × 4px)

Server-side Data Caching

This connection supports server-side data caching.

Exemple (json) :

http://api.itcg.eredan.com/json.php/series?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":1,
         "name":"Act I - Fallen from the Sky",
         "rarity_visuals":[
            {
               "rarity_id":1,
               "visuals":{
                  "big":"images\/web_big\/7049fa1b46523170cd8fc01ac7a18798.png",
                  "medium":"images\/web_mid\/7049fa1b46523170cd8fc01ac7a18798.png",
                  "small":"images\/web_small\/7049fa1b46523170cd8fc01ac7a18798.png"
               }
            },
            {
               "rarity_id":2,
               "visuals":{
                  "big":"images\/web_big\/43369f1af917574eb355ea3660651daf.png",
                  "medium":"images\/web_mid\/43369f1af917574eb355ea3660651daf.png",
                  "small":"images\/web_small\/43369f1af917574eb355ea3660651daf.png"
               }
            },
            {
               "rarity_id":3,
               "visuals":{
                  "big":"images\/web_big\/85a65c0ec77279709b76aceafd70de86.png",
                  "medium":"images\/web_mid\/85a65c0ec77279709b76aceafd70de86.png",
                  "small":"images\/web_small\/85a65c0ec77279709b76aceafd70de86.png"
               }
            },
            {
               "rarity_id":4,
               "visuals":{
                  "big":"images\/web_big\/85a65c0ec77279709b76aceafd70de86.png",
                  "medium":"images\/web_mid\/85a65c0ec77279709b76aceafd70de86.png",
                  "small":"images\/web_small\/85a65c0ec77279709b76aceafd70de86.png"
               }
            },
            {
               "rarity_id":5,
               "visuals":{
                  "big":"images\/web_big\/3d53f2d20dfb8391d3f6fd57b00c6798.png",
                  "medium":"images\/web_mid\/3d53f2d20dfb8391d3f6fd57b00c6798.png",
                  "small":"images\/web_small\/3d53f2d20dfb8391d3f6fd57b00c6798.png"
               }
            },
            {
               "rarity_id":6,
               "visuals":{
                  "big":"images\/web_big\/3d53f2d20dfb8391d3f6fd57b00c6798.png",
                  "medium":"images\/web_mid\/3d53f2d20dfb8391d3f6fd57b00c6798.png",
                  "small":"images\/web_small\/3d53f2d20dfb8391d3f6fd57b00c6798.png"
               }
            },
            {
               "rarity_id":8,
               "visuals":{
                  "big":"images\/web_big\/3d53f2d20dfb8391d3f6fd57b00c6798.png",
                  "medium":"images\/web_mid\/3d53f2d20dfb8391d3f6fd57b00c6798.png",
                  "small":"images\/web_small\/3d53f2d20dfb8391d3f6fd57b00c6798.png"
               }
            },
            {
               "rarity_id":10,
               "visuals":{
                  "big":"images\/web_big\/3d53f2d20dfb8391d3f6fd57b00c6798.png",
                  "medium":"images\/web_mid\/3d53f2d20dfb8391d3f6fd57b00c6798.png",
                  "small":"images\/web_small\/3d53f2d20dfb8391d3f6fd57b00c6798.png"
               }
            }
         ]
      },
      {
         "id":10,
         "name":"Special"
      },
      {
         "id":44,
         "name":"Act VII - Event Cards",
         "rarity_visuals":[
            {
               "rarity_id":6,
               "visuals":{
                  "big":"images\/web_big\/6c9fd328146246fa9a35560054256960.png",
                  "medium":"images\/web_mid\/6c9fd328146246fa9a35560054256960.png",
                  "small":"images\/web_small\/6c9fd328146246fa9a35560054256960.png"
               }
            }
         ]
      }
   ]
}
Get specifics series

You can also target specifics ids.
http://api.itcg.eredan.com/json.php/series/44,10?apiKey=xxxx&locale=en

{
   "data":[
      {
         "id":10,
         "name":"Special"
      },
      {
         "id":44,
         "name":"Act VII - Event Cards",
         "rarity_visuals":[
            {
               "rarity_id":6,
               "visuals":{
                  "big":"images\/web_big\/6c9fd328146246fa9a35560054256960.png",
                  "medium":"images\/web_mid\/6c9fd328146246fa9a35560054256960.png",
                  "small":"images\/web_small\/6c9fd328146246fa9a35560054256960.png"
               }
            }
         ]
      }
   ]
}

marketplace

Get marketplace information

You can get marketplace information for specific cards by using “marketplace”. You must provide one card ID in your request.

Returned entries

Name type Description
card_idintCard ID
standardobjectInformation for standard cards
See table 1.1 for details
foilobjectInformation for foil cards
See table 1.1 for details
1.1 data
Name type Description
minintMinimal authorized price
maxintMaximal authorized price
avgintAverage current price
in_sale_countintNumber of cards currently in sale in the marketplace
cardsarrayPrice list of the currently in sale cards (ascending)
This field is only available if 'list' parameter specified

Server-side Data Caching

This connection supports server-side data caching.

Exemple (json) :

http://api.itcg.eredan.com/json.php/marketplace/2?apiKey=xxxx

{
    "id_carte": 2,
    "standard": {
        "min": 100,
        "max": 880,
        "avg": 440,
        "in_sale_count": 2
    },
    "foil": {
        "min": 100,
        "max": 1700,
        "avg": 880,
        "in_sale_count": 0
    }
}

Retrieving currently in sale cards

You can specify the list member to retrieve the currently in sale cards. It will add the cards array into the standard and foil objects whenever cards are in sale into the marketplace. Those arrays contains prices for the cards, ascending ordered.

http://api.itcg.eredan.com/json.php/marketplace/2/list?apiKey=xxxx

{
    "id_carte": 2,
    "standard": {
        "min": 100,
        "max": 880,
        "avg": 440,
        "in_sale_count": 2,
        "cards": [
            440,
            600
        ]
    },
    "foil": {
        "min": 100,
        "max": 1700,
        "avg": 880,
        "in_sale_count": 0
    }
}

server

You can get information about the game's server by using “server”.

Returned entries

Name type Description
timearrayServer timezone information
See table 1.1 for details
registeredintAmount of subscribed users
OnlineintAmount of users currently online
gamesintAmount of games played since Eredan iTCG release
games_in_progressintAmount of games actually running on Eredan iTCG server
1.1 data
Name type Description
timezonestring Server's timezone
current_timestamptimestampServer's current timestamp
datetimedatetimeServer's humanly readable current datetime

Server-side Data Caching

This connection does not support server-side data caching.

Exemple (json) :

http://api.itcg.eredan.com/json.php/server?apiKey=xxxx&locale=en

{
   "time":{
      "timezone":"Europe\/Paris",
      "current_timestamp":1355760519,
      "datetime":"2012-12-17 17:08:39"
   },
   "registered":2583941,
   "online":997,
   "games":33300746,
   "games_in_progress":810
}

Further Reading

connections.txt · Last modified: 2013/06/01 02:09 by admin