Pet Metadata & Image API
You can use the following endpoints to access Pet metadata and static images of DFK Pets by Pet ID.
Pet Metadata
Returns metadata about the requested Pet
GET https://pets.defikingdoms.com/token/{id}
Example - https://pets.defikingdoms.com/token/1
Path Parameters
| Name | Type | Description |
|---|---|---|
| * | integer | The ID of the requested Pet. E.g.: Note: Pets native to Crystalvale have IDs that are padded by |
Pet Static Image
Returns a static, transparent png image of the requested Pet
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
Path Parameters
| Name | Type | Description |
|---|---|---|
| id* | integer | The ID of the requested Pet. E.g.: Note: Pets native to Crystalvale have IDs that are padded by |
Query Parameters
| Name | Type | Description |
|---|---|---|
| frame | Boolean | Default: Includes the Pet frame in the image response. |
| background | Boolean | Default: Includes the Pet background in the image response. |