Skip to content

Diets

GET {baseUrl}/api/v1/diets`

Returns all dinosaur diets that exist within the API.

No parameters are required for this endpoint.

[
{
"diet": "carnivore",
"count": 320
},
{
"diet": "herbivore",
"count": 650
},
{
"diet": "omnivore",
"count": 150
},
{
"diet": "piscivore",
"count": 68
}
]

Demo