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": "The establishment doesn't take us seriously. You know who else they didn't take seriously? Hitler. I'll be like him, but a GOOD guy instead of...",
"date": "2018-01-29",
"img": "https://imgs.xkcd.com/comics/campaign_fundraising_emails.png",
"link": "",
"num": 1948,
"title": "Campaign Fundraising Emails",
"transcript": ""
},
"success": true
}