Dog CEO · Schema

Dog CEO API Breeds List Response

Schema for the all-breeds listing response from the Dog CEO API

DogsImagesAnimalsOpen SourceFree APIMachine LearningEducation

Properties

Name Type Description
message object Map of breed names to arrays of sub-breed names. Empty array means no sub-breeds.
status string Status of the API response
View JSON Schema on GitHub

JSON Schema

breeds-list-response.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dog-ceo/main/json-schema/breeds-list-response.json",
  "title": "Dog CEO API Breeds List Response",
  "description": "Schema for the all-breeds listing response from the Dog CEO API",
  "type": "object",
  "required": ["message", "status"],
  "properties": {
    "message": {
      "type": "object",
      "description": "Map of breed names to arrays of sub-breed names. Empty array means no sub-breeds.",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "examples": [
        {
          "hound": ["afghan", "basset", "blood", "english", "ibizan", "plott", "walker"],
          "retriever": ["chesapeake", "curly", "flatcoated", "golden"],
          "terrier": [],
          "poodle": ["medium", "miniature", "standard", "toy"]
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": ["success", "error"],
      "description": "Status of the API response"
    }
  },
  "additionalProperties": false
}