Cat Facts (catfact.ninja) · JSON Structure

Cat Facts Catfact Cat Fact Structure

A single cat trivia fact and its character length.

Type: object Properties: 2 Required: 2
AnimalsCatsTriviaPublic APIsCommunityNo AuthenticationREST

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

Properties

fact length

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/cat-facts-catfact/refs/heads/main/json-structure/cat-facts-catfact-cat-fact-structure.json",
  "name": "CatFact",
  "description": "A single cat trivia fact and its character length.",
  "type": "object",
  "properties": {
    "fact": {
      "type": "string",
      "description": "The cat fact text.",
      "example": "Cats sleep 70% of their lives."
    },
    "length": {
      "type": "int32",
      "description": "Character length of the fact string.",
      "example": 30
    }
  },
  "required": [
    "fact",
    "length"
  ]
}