Skip to content

xkcd API

The current or a numbered xkcd comic with title, image and alt text.
Status
Working
API key
Not needed
Browser calls
Server only
Latency
43 ms

Build snapshot, not live. One verifier run on , from the machine that built this site. How we check

Example request

GEThttps://xkcd.com/info.0.json

Copy the request

Shell
curl -s 'https://xkcd.com/info.0.json'

Response stored by the verifier

This is what xkcd.com answered when the verifier sent the request above on : HTTP 200, application/json. Arrays are cut to two items and long strings are shortened. It comes from the build snapshot.

application/json · stored
{
  "month": "10",
  "num": 3306,
  "link": "",
  "year": "2026",
  "news": "",
  "safe_title": "Accelerator Energies",
  "transcript": "",
  "alt": "Fans at Daytona always get extra excited when officials decide to introduce some antimatter cars circling the track i...",
  "img": "https://imgs.xkcd.com/comics/accelerator_energies.png",
  "title": "Accelerator Energies",
  "day": "2"
}

Availability

Up 1 of 1 day checked · 30-day window

What counts as up for this API: an answer within five seconds, a 2xx status, and the JSON body must contain the field "num".

Last check: — passed, HTTP 200 in 43 ms.

The check runs from our infrastructure, not from where you are. If you need certainty, send the request yourself above. How the verifier works.

Questions

Does the xkcd API need an API key?

No. The sample request on this page was answered without a key, token or account.

Can I call the xkcd API from the browser?

Not directly. xkcd.com did not send an Access-Control-Allow-Origin header to our verifier on Oct 3, 2026, so browsers block the response. Call it from a server or a serverless function.

Is the xkcd API working?

At the check on Oct 3, 2026 it returned HTTP 200 with the expected data in 43 ms. The status at the top of this page shows the most recent result we have.