FreeAPI.watch

xkcd

The webcomic's own JSON endpoint — comic number, title, alt text, and image URL. Tiny, stable, and unchanged for over a decade, which makes it the standard smoke-test API for tutorials.

Status
🟢 Online · 29 ms
30-day uptime
100%
Free tier
Unlimited, no key, no credit card
Auth
No key required

Is xkcd down right now?

No — xkcd was up at our last check (Sun, 06 Dec 2026 00:40 UTC): HTTP 200 in 29 ms. It answered 100% of our hourly checks over the last 30 days.

We check every tracked API hourly from Cloudflare's network; this page is rebuilt every few hours. For the value right now, query the public JSON API or the MCP server.

Last 30 days

Free alternatives (live ranking)

Official docs ↗

Frequently Asked Questions

Does xkcd require an API key?

No, xkcd is freely accessible without registration or an API key.

What is xkcd's free tier?

Unlimited, no key, no credit card

Is xkcd down right now?

At our last check (Sun, 06 Dec 2026 00:40 UTC) xkcd was up, with HTTP 200 in 29 ms. We check it every hour, and it answered 100% of checks over the last 30 days.

Implementation notes

When to use xkcd

The xkcd JSON endpoint is close to the smallest useful API on the internet: /info.0.json returns the latest comic and /{n}/info.0.json any numbered one, each with title, alt text, image URL, publication date and, for older comics, a full transcript. No key, no documented rate limit, and a response shape that has not changed in over a decade, which is why it is the standard smoke test in tutorials and HTTP-client test suites. Use it to teach fetch and JSON parsing, for a comic-of-the-day widget or chat bot, to exercise caching code against content that is effectively immutable, and to build search over alt text and transcripts. It is not a content platform: there is no search, listing or pagination endpoint, so discovering anything beyond the latest number means walking IDs downward. A numbered comic does not change once posted, which makes this one of the rare APIs where caching forever is simply correct — only /info.0.json moves.

Common pitfalls

Quick start (bash)

curl -s 'https://xkcd.com/info.0.json' | jq '{num, safe_title, img, alt}'
# numbered comics never change - cache by num indefinitely; month and day are unpadded strings
curl -s 'https://xkcd.com/614/info.0.json' | jq '{year, month, day}'
# comic 404 is a deliberate gap in the sequence
curl -s -o /dev/null -w '%{http_code}' 'https://xkcd.com/404/info.0.json'

Embed this badge

Add a live status badge to your README, docs, or website.

xkcd status badge

Markdown

[![xkcd Status](https://api.freeapi.watch/badge/xkcd.svg)](https://freeapi.watch/xkcd)

HTML

<a href="https://freeapi.watch/xkcd"><img src="https://api.freeapi.watch/badge/xkcd.svg" alt="xkcd Status"/></a>