Cataas · JSON Structure

Cat Structure

A cat catalog document.

Type: object Properties: 9 Required: 2
AnimalsCatsImagesOpen SourcePublic APIs

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

Properties

_id id tags mimetype size created_at edited_at validated url

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/cataas/refs/heads/main/json-structure/cat-structure.json",
  "name": "Cat",
  "description": "A cat catalog document.",
  "type": "object",
  "required": [
    "id",
    "tags"
  ],
  "properties": {
    "_id": {
      "type": "string",
      "description": "MongoDB document id of the cat.",
      "example": "595f280b557291a9750ebf66"
    },
    "id": {
      "type": "string",
      "description": "Public id of the cat (mirror of `_id`).",
      "example": "595f280b557291a9750ebf66"
    },
    "tags": {
      "type": "array",
      "description": "Tags attached to this cat.",
      "items": {
        "type": "string"
      },
      "example": [
        "cute",
        "orange"
      ]
    },
    "mimetype": {
      "type": "string",
      "description": "MIME type of the cat image file.",
      "example": "image/jpeg"
    },
    "size": {
      "type": "int32",
      "description": "Size of the cat image file in bytes.",
      "example": 18234
    },
    "created_at": {
      "type": "datetime",
      "description": "Timestamp when the cat document was created.",
      "example": "2026-05-29T14:30:00Z"
    },
    "edited_at": {
      "type": "datetime",
      "description": "Timestamp when the cat document was last edited.",
      "example": "2026-05-29T15:00:00Z"
    },
    "validated": {
      "type": "boolean",
      "description": "Whether this cat has been moderated and approved for the public catalog.",
      "example": true
    },
    "url": {
      "type": "uri",
      "description": "Direct URL to the cat image.",
      "example": "https://cataas.com/cat/595f280b557291a9750ebf66"
    }
  }
}