xkcd
Fetch xkcd comics as JSON — latest or by number
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.
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"
}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
/info.0.jsonPROBEDFetch xkcd comics as JSON — latest or by number
/info.1.jsonInfo 1 Json — documented GET route.
/info.1.json?limit=5Paginated variant with limit parameter.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
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.