← 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": "I mean, if it's that easy to get a theorem named for you ... \"a straight line that passes through the center of a coplanar circle always divides the circle into two equal halves.\" Can I have that one? Wait, can I auction off the naming rights? It can be the Red Bull Theorem or the Quicken Loans Theorem, depending who wants it more.",
    "date": "2018-09-05",
    "img": "https://imgs.xkcd.com/comics/rolles_theorem.png",
    "link": "",
    "num": 2042,
    "title": "Rolle's Theorem",
    "transcript": ""
  },
  "success": true
}