Pet Metadata & Image API
Last updated
You can use the following endpoints to access Pet metadata and static images of DFK Pets by Pet ID.
GET https://pets.defikingdoms.com/token/{id}
Example - https://pets.defikingdoms.com/token/1
*
integer
The ID of the requested Pet.
E.g.: 1234, 1000000001234, 2000000001234
Note: Pets 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).
GET https://pets.defikingdoms.com/image/{id}?{queryParams}
Examples
Full Image - https://pets.defikingdoms.com/image/1
No Frame - https://pets.defikingdoms.com/image/1?frame=false
id*
integer
The ID of the requested Pet.
E.g.: 1234, 1000000001234, 2000000001234
Note: Pets 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).
frame
Boolean
Default: true
Includes the Pet frame in the image response.
background
Boolean
Default: true
Includes the Pet background in the image response.
Last updated