API

Third-party developers can easily connect their applications to Degens in Space by using our public API.

Endpoint: https://api.degens.space

Get item's traits

GET /getItem

Returns an item json object based on a block number.

URL parameter

NameValue

block

Block number to be fetched

Response

[
    {
    "id":"316512",
    "name":"Human Replicant Shield Defense",
    "traits":{
        "type":"defense",
        "modifier_types":[
            "Human",
            "Replicant"
        ],
        "modifier_skills":[
            "Stamina",
            "Computation"
        ],
        "sub_type":"Shield",
        "power":1,
        "cooldown":0
        }
    }
]

Get pilot's traits

GET /getTraits

Returns an item json object based on a block number.

URL parameter

NameValue

block

Block number to be fetched

Response

"traits":[
    {
    "type":"species",
    "name":"venusian",
    "effects":
        [
            {
            "skill":"magic",
            "effect":5
            }
        ]
    },
    {
    "type":"gender",
    "name":"male",
    "effects":
        [
            {
            "skill":"stamina",
            "effect":3
            }
        ]
    },
    {
    "type":"head",
    "name":"camera",
    "effects":
        [
            {
            "skill":"computation",
            "effect":4
            }
        ]
    },
    {
    "type":"eyes",
    "name":"laser",
    "effects":
        [
            {
            "skill":"computation",
            "effect":5
            }
        ]
    },
"name":"venusian magician script kid #123456",
"id":"123456"

Get pilot's image

GET /getPilotImage

Returns a pilot image based on a block number.

URL parameter

NameValue

block

Block number to be fetched

Response

SVG object

Get item's image

GET /getItemImage

Returns an item image based on a block number.

URL parameter

NameValue

block

Block number to be fetched

Response

SVG object

Last updated