← 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 safe is empty except for an unsolved 5x5 Rubik's cube.",
    "date": "2011-06-24",
    "img": "https://imgs.xkcd.com/comics/unpickable.png",
    "link": "",
    "num": 916,
    "title": "Unpickable",
    "transcript": "HackerShield geek-proof safe system:\n[[Two boxes sit side by side. One is a safe with a lock marked \"Unpickable.\" It is labeled: (1) 24-pin dual-tumbler radial-hybrid lock (rendered unopenable by a fused 17th pin). The other is a shoebox. It is labeled: (2) Shoebox containing your valuables.]]\n\n{{Title text: The safe is empty except for an unsolved 5x5 Rubik's cube.}}"
  },
  "success": true
}