How to hit the The Dog API API

The Dog API at https://api.thedogapi.com/v1 serves dog photos and breed information. A free key unlocks breed filters, favourites, and higher limits.

Authentication

None for basic image search. For more, get a free key at thedogapi.com and send it as the x-api-key header.

Full reference: https://developers.thedogapi.com/

Random dog image

curl "https://api.thedogapi.com/v1/images/search?limit=1"
Run in PostTaco
Example response (trimmed)
[
  {
    "id": "6qroETuH-",
    "url": "https://s3.us-west-2.amazonaws.com/cdn2.thedogapi.com/images/6qroETuH-.jpg",
    "width": 1080,
    "height": 1350
  }
]

List breeds

Temperament, life span, weight, height.

curl "https://api.thedogapi.com/v1/breeds?limit=2" \
  -H "x-api-key: {{THEDOGAPI_KEY}}"
Run in PostTaco