← 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": "Asbestos is bad; definitely get the one on the right. Wait -- this one over here has no swine flu!  Now I can't decide.",
    "date": "2009-09-25",
    "img": "https://imgs.xkcd.com/comics/free.png",
    "link": "",
    "num": 641,
    "title": "Free",
    "transcript": "[[A shelf holds 3 boxes of cereal.  Each box shows a bowl of cereal.]]\nGenCo Oat Cereal\nStayPuft Oat Cereal\nRedFarm Oat Cereal ((with additional text in a star)) Asbestos-free!\nNarrator: I hate whatever marketer first realized you could do this.\n\n{{Title text: Asbestos is bad; definitely get the one on the right. Wait -- this one over here has no swine flu!  Now I can't decide.}}"
  },
  "success": true
}