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": "At least they're not alone down there.",
"date": "2024-08-28",
"img": "https://imgs.xkcd.com/comics/stranded.png",
"link": "",
"num": 2978,
"title": "Stranded",
"transcript": ""
},
"success": true
}