API

For engineers who are launching external services related to CryptoSpells, we will explain the details of the API that can be used with CryptoSpells.

Returns a list of Token IDs of card NFTs held by the user

/public_api/players/[:user_id]/cards.json

*Excludes items that are not in-game, listed for trade, or rented.

Return basic information about the player

/public_api/players/[:user_id].json

Return basic card information

/public_api/cards/[:card_number].json

*card_number is the number displayed in the card encyclopedia.

Return card token information

/public_api/card_tokens/[:token_id].json

*token_id is a 9-digit token ID starting from 1.

Returns basic information about the guild

/public_api/guilds/[:guild_id].json

*guild_id is 1,2,3,4,5, and corresponds to 1 = ruby, 2 = sapphire, 3 = emerald, 4 = diamond, 5 = onyx.

Returns data on win rate and usage rate for each color

/public_api/color_stats?time=[:time]&type=[:type]&.json

Last updated