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": "It can be expensive to hire a professional spectroscopist for your wedding, but the quality of the spectra you get is worth it.",
"date": "2023-09-08",
"img": "https://imgs.xkcd.com/comics/gold.png",
"link": "",
"num": 2826,
"title": "Gold",
"transcript": ""
},
"success": true
}