Affirmations.dev

Random positive affirmation as tiny JSON

😄 FunHEALTHYchecked 8h ago
AUTH NONECORS ✗AGENT ✓HTTPS ✓COMMERCIAL ?

affirmations.dev returns a single uplifting affirmation per request in a one-field JSON body. No key, CORS-open, and about as simple as an API gets — a friendly hello-world fetch or a daily-motivation widget.

95HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: 95 · healthy
Uptime history
100%90 days
100%30 days
315P50 · ms
1081P95 · ms
operationalpartialdownno data
Response time · last 48 checks
Fastest 123 ms, slowest 689 ms, most recent 299 ms.
Live response samplecaptured by our last successful check
GET https://www.affirmations.dev/

{
  "affirmation": "Nothing is impossible. The word itself says 'I’m possible!'"
}
Call itcurl · fetch · python
curl "https://www.affirmations.dev/"
const res = await fetch("https://www.affirmations.dev/");
const data = await res.json();
console.log(data);
import requests

res = requests.get("https://www.affirmations.dev/")
print(res.json())

BROWSER CALLS BLOCKED (NO CORS/HTTPS) — USE THE CURL SNIPPET

Endpoints · 2HealthyFULL DOCS ↗
Monitored path responding — GET /315 mschecked 8h ago
GET/PROBED

Random positive affirmation as tiny JSON

GET/?limit=5

Paginated variant with limit parameter.

Machine-readable spec

We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.

Response-shape history

Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.

Affirmations.dev: common questions

Is Affirmations.dev free to use?

Yes — Affirmations.dev is a free fun API. Free tier: Free — limits not published. Whether the free tier allows commercial use is unclear — check the provider docs.

Does Affirmations.dev need an API key?

No — Affirmations.dev needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).

Can I call Affirmations.dev from the browser?

Not directly — Affirmations.dev doesn't send browser-friendly CORS headers, so call it from a server or proxy instead. Copy the curl or Python snippet on this page to get started.

Is Affirmations.dev up right now?

As of our last scheduled check, Affirmations.dev is healthy with 100% uptime over 90 days and a 315 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.