← Back to Skills
Exec

Cat Fact

thesethrose By thesethrose 👁 13 views ▲ 0 votes

Random cat facts and breed information from catfact.ninja

GitHub
---
name: Cat Fact
description: Random cat facts and breed information from catfact.ninja (free, no API key)
read_when:
  - Wanting random cat facts
  - Looking up cat breeds
  - Building fun bot responses
metadata: {"clawdbot":{"emoji":"🐱","requires":{"bins":["curl"]}}}
---

# Cat Fact

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

## Usage

```bash
# 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)

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

## One-liner examples

```bash
# 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

| Endpoint | Description |
|----------|-------------|
| `GET /fact` | Random cat fact |
| `GET /breeds` | List of cat breeds |

Docs: https://catfact.ninja
exec

Comments

Sign in to leave a comment

Loading comments...