v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
📢 Public APIs

Get dog by id

The API endpoint retrieves a dog object based on the provided dog ID in the path variable.

By accessing this endpoint with a valid dog ID, you will receive a response containing the details and information specific to the dog with the corresponding ID.

get/public/dogs/{dogId}

Response

Get dog by id

messagestring
statusCodenumber
successboolean

Example response

{
  "data": {
    "bred_for": "Hunting rabbits",
    "breed_group": "Hound",
    "height": {
      "imperial": "21 - 25",
      "metric": "53 - 64"
    },
    "id": 124,
    "image": {
      "height": 2938,
      "id": "Byz6mgqEQ",
      "url": "https://cdn2.thedogapi.com/images/Byz6mgqEQ.jpg",
      "width": 3918
    },
    "life_span": "12 - 14 years",
    "name": "Pharaoh Hound",
    "reference_image_id": "Byz6mgqEQ",
    "temperament": "Affectionate, Sociable, Playful, Intelligent, Active, Trainable",
    "weight": {
      "imperial": "40 - 60",
      "metric": "18 - 27"
    }
  },
  "message": "Dog fetched successfully",
  "statusCode": 200,
  "success": true
}