Hero Metadata & Image API

You can use the following endpoints to access Hero metadata and static images of DFK Heroes by Hero ID.

Hero Metadata

Returns metadata about the requested Hero

GET https://heroes.defikingdoms.com/token/{id}

Example - https://heroes.defikingdoms.com/token/1

Path Parameters

NameTypeDescription

*

integer

The ID of the requested Hero.

E.g.: 1234, 1000000001234, 2000000001234

Note: Heroes native to Crystalvale have IDs that are padded by 1000000000000 (one trillion), and those native to Serendale 2.0 are padded by 2000000000000 (two trillion).

Hero Static Image

Returns a static, transparent png image of the requested Hero.

GET https://heroes.defikingdoms.com/image/{id}

Example - https://heroes.defikingdoms.com/image/1

Path Parameters

NameTypeDescription

id*

integer

The ID of the requested Hero.

E.g.: 1234, 1000000001234, 2000000001234

Note: Heroes native to Crystalvale have IDs that are padded by 1000000000000 (one trillion), and those native to Serendale 2.0 are padded by 2000000000000 (two trillion).

Last updated