← Entertainment

Random xkcd Comic

GET /xkcd/random

Get a random xkcd comic from the entire archive of 2,900+ comics spanning nearly two decades. Returns the comic title, number, image URL, alt text (the hidden hover text), and publication date. Perfect for 'surprise me' features, random content feeds, break-time entertainment widgets, and boredom-busting app features.

See it visualized

Example Requests

Basic usage
curl https://nordapi.ee/api/v1/xkcd/random

Live Response

{
  "data": {
    "alt": "The best camera is the one at L2.",
    "date": "2022-07-13",
    "img": "https://imgs.xkcd.com/comics/the_best_camera.png",
    "link": "",
    "num": 2645,
    "title": "The Best Camera",
    "transcript": ""
  },
  "success": true
}