← 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.

Example Requests

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

Live Response

{
  "data": {
    "alt": "I tried oxidizing them, but your bank uses some really weird paper and it wouldn't light.",
    "date": "2014-09-26",
    "img": "https://imgs.xkcd.com/comics/reduce_your_payments.png",
    "link": "",
    "num": 1426,
    "title": "Reduce Your Payments",
    "transcript": "[[A figure sits at a couch. Black hat guy walks up from behind, holding some paper.]]\nBlack hat guy: I discovered this weird trick for reducing your mortgage payments! \nFigure: What?\nBlack hat guy: Sodium borohydride.\nFigure: ... I hate you.\n\n{{Title text: I tried oxidizing them, but your bank uses some really weird paper and it wouldn't light.}}"
  },
  "success": true
}