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": "No, tell the park rangers to calm down, it's fine--I put a screen on the front. I just want to get the birds a little closer.",
"date": "2017-04-19",
"img": "https://imgs.xkcd.com/comics/birdwatching.png",
"link": "",
"num": 1826,
"title": "Birdwatching",
"transcript": ""
},
"success": true
}