← 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": "Inappropriate places for the Penis Game include baby showers and terrorist attacks",
    "date": "2006-04-28",
    "img": "https://imgs.xkcd.com/comics/the_sierpinski_penis_game.jpg",
    "link": "",
    "num": 95,
    "title": "The Sierpinski Penis Game",
    "transcript": "[[The Sierpinski Penis Game]]\n[[A large triangle is shown, with many smaller trianges inside]]\n[[Words are in the triangles]]\nSierpinski game: PENIS! Haha, penis."
  },
  "success": true
}