Dog API · JSON Structure

Dog Api Alt Image Structure

A dog image URL paired with descriptive alt text suitable for accessibility.

Type: object Properties: 2 Required: 2
DogsImagesOpen DataOpen Source

AltImage is a JSON Structure definition published by Dog API, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

url altText

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dog-api/refs/heads/main/json-structure/dog-api-alt-image-structure.json",
  "name": "AltImage",
  "description": "A dog image URL paired with descriptive alt text suitable for accessibility.",
  "type": "object",
  "properties": {
    "url": {
      "type": "uri",
      "description": "URL of the dog image.",
      "example": "https://images.dog.ceo/breeds/hound-basset/n02088238_2217.jpg"
    },
    "altText": {
      "type": "string",
      "description": "Human-readable alt text describing the image (typically \"{Sub-breed} {breed} dog\").",
      "example": "Basset hound dog"
    }
  },
  "required": [
    "url",
    "altText"
  ]
}