xkcd

Fetch xkcd comics as JSON — latest or by number

🎮 GamesUNMONITOREDchecked 28 min ago
AUTH NONECORS AGENT HTTPS COMMERCIAL

Grab any xkcd comic's metadata — title, image URL, alt text, and publish date — as a tidy JSON object. Hit info.0.json for the newest strip or /{num}/info.0.json for a specific one. Comics are licensed CC BY-NC, so commercial reuse is not permitted.

HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: — · unmonitored
Uptime history
—%90 days
—%30 days
P50 · ms
P95 · ms
operationalpartialdownno data
Live response samplecaptured by our last successful check
GET https://xkcd.com/info.0.json

{
  "num": 3267,
  "title": "Types of Tornado Alert",
  "img": "https://imgs.xkcd.com/comics/types_of_tornado_alert.png",
  "alt": "I hate the unearthly sound my phone makes when the weather service issues a tornado harbinger.",
  "year": "2026",
  "month": "7",
  "day": "3"
}
Call itcurl · fetch · python
curl "https://xkcd.com/info.0.json"
const res = await fetch("https://xkcd.com/info.0.json");
const data = await res.json();
console.log(data);
import requests

res = requests.get("https://xkcd.com/info.0.json")
print(res.json())

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

Endpoints · 3On scheduleFULL DOCS ↗
First rollup pending — GET /info.0.json has been probed
GET/info.0.jsonPROBED

Fetch xkcd comics as JSON — latest or by number

GET/info.1.json

Info 1 Json — documented GET route.

GET/info.1.json?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.

xkcd: common questions

Is xkcd free to use?

Yes — xkcd is a free games API. Free tier: Free, no API key. The free tier is for non-commercial use.

Does xkcd need an API key?

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

Can I call xkcd from the browser?

Not directly — xkcd 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 xkcd up right now?

As of our last scheduled check, xkcd is unmonitored. We re-probe it every sweep — the status badge and uptime chart above always show the latest.