Random Fact
Return a random interesting fact.
KnowledgefactsrandomCost: 1 pt
Endpoint
/api/v1/fact
curl (bash)
curl -H "x-api-key: $APINEST_API_KEY" "/api/v1/fact"
Windows PowerShell
iwr -Uri "/api/v1/fact" -Headers @{ "x-api-key" = $env:APINEST_API_KEY } | Select-Object -Expand Content
Node.js example
const res = await fetch("/api/v1/fact", { 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