APIHub
Back to Explore

xkcd

The xkcd API returns JSON metadata (including title, image URL, alt text, and publication date) for either the current comic or a specific comic identified by its numeric ID.

Games & Comics
No auth required
HTTPS
CORS: No
Description enriched
Visit official documentation

Latency

461ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/info.0.json

Fetch current comic and metadata.

GET

/{comicId}/info.0.json

Fetch comics and metadata by comic id.

  • comicId (path, required)

2 endpoints auto-detected

curl -X GET \
  "https://xkcd.com/json.html/info.0.json"

xkcd.com · HTTPS only