SkillJavaScriptv1.0.2

Cat Fact

Random cat facts and breed information from catfact.ninja.

0 downloads
thesethrose
Updated Jan 10, 2026

Cat Fact

Random cat facts from catfact.ninja (no API key required).

Usage

# Get a random cat fact
curl -s "https://catfact.ninja/fact"

# Get a random fact (short)
curl -s "https://catfact.ninja/fact?max_length=100"

# Get cat breeds
curl -s "https://catfact.ninja/breeds?limit=5"

Programmatic (JSON)

curl -s "https://catfact.ninja/fact" | jq '.fact'

One-liner examples

# Random fact
curl -s "https://catfact.ninja/fact" --header "Accept: application/json" | jq -r '.fact'

# Multiple facts
for i in {1..3}; do curl -s "https://catfact.ninja/fact" --header "Accept: application/json" | jq -r '.fact'; done

API Endpoints

EndpointDescription
GET /factRandom cat fact
GET /breedsList of cat breeds

Docs: https://catfact.ninja

Free
Installation
Reviews

Sign in to leave a review.

No reviews yet. Be the first.