Cat Facts API · Schema

Fact

A single cat fact with its character length.

Cat FactsTriviaFunLearningFree

Properties

Name Type Description
fact string The cat fact text.
length integer Character length of the fact.
View JSON Schema on GitHub

JSON Schema

fact.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catfact.ninja/schema/fact",
  "title": "Fact",
  "description": "A single cat fact with its character length.",
  "type": "object",
  "required": ["fact", "length"],
  "properties": {
    "fact": {
      "type": "string",
      "description": "The cat fact text.",
      "example": "In multi-cat households, cats of the opposite sex usually get along better."
    },
    "length": {
      "type": "integer",
      "description": "Character length of the fact.",
      "minimum": 1,
      "example": 75
    }
  },
  "additionalProperties": false
}