Cat Fact
Return a random cat fact.
AnimalscatsfactsCost: 2 pt
Endpoint
/api/v1/catfact
curl (bash)
curl -H "x-api-key: $APINEST_API_KEY" "/api/v1/catfact"
Windows PowerShell
iwr -Uri "/api/v1/catfact" -Headers @{ "x-api-key" = $env:APINEST_API_KEY } | Select-Object -Expand Content
Node.js example
const res = await fetch("/api/v1/catfact", { headers: { "x-api-key": process.env.APINEST_API_KEY! } }) console.log(await res.json())
Include your API Key via the "x-api-key" header.
Status
v1 — Online