Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Fetches random cat facts and lists cat breeds from the catfact.ninja API, with no API key needed.
83% 91%+9 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 19 of 23 without it.
I'm building a quick script to display a small sample list of cat breeds. How can I fetch that via cURL from the cat trivia service?
The command targets the https://catfact.ninja/breeds endpoint
3 of 3 safety checks passed
Random cat facts from catfact.ninja (no API key required).
# 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"
curl -s "https://catfact.ninja/fact" | jq '.fact'
# 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
| Endpoint | Description |
|---|---|
GET /fact | Random cat fact |
GET /breeds | List of cat breeds |
Next to this one in the catalogue, plus more from the same author.