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.
curl https://nordapi.ee/api/v1/xkcd/random
{
"data": {
"alt": "Alternate method: convince them to pretend it's an Etch-a-Sketch and try to erase it.",
"date": "2007-03-19",
"img": "https://imgs.xkcd.com/comics/keyboards_are_disgusting.png",
"link": "",
"num": 237,
"title": "Keyboards are Disgusting",
"transcript": "{{title text: Keyboards are Disgusting}}\n[[A Man sits at his computer, chatting with some other person.]]\nChat: Wanna see an optical illusion? Hold your keyboard up in front of you and look at the home row.\n[[The man holds the keyboard in front of him.]]\nChat: Now cross your eyes a little so the 'g' and 'h' overlap.\nChat: Keeping focus, lift the keyboard over your head.\n[[The man lifts the keyboard over his head still looking at the keyboard]]\n[[Tiny parts of dust and skin particles fall in the man's face]]\nMan: Eww!\nChat: Haha"
},
"success": true
}