GET /xkcd/random
Rufen Sie einen zufälligen xkcd-Comic aus dem gesamten Archiv von über 2.900 Comics aus fast zwei Jahrzehnten ab. Liefert den Comic-Titel, die Nummer, die Bild-URL, den Alt-Text (den versteckten Hover-Text) und das Veröffentlichungsdatum. Perfekt für „Überrasche mich"-Funktionen, zufällige Content-Feeds, Unterhaltungs-Widgets für die Pause und App-Funktionen gegen Langeweile.
curl https://nordapi.ee/api/v1/xkcd/random
{
"data": {
"alt": "In retrospect, it's weird that as a kid I thought completely random outbursts made me seem interesting, given that from an information theory point of view, lexical white noise is just about the opposite of interesting by definition.",
"date": "2013-05-10",
"img": "https://imgs.xkcd.com/comics/im_so_random.png",
"link": "",
"num": 1210,
"title": "I'm So Random",
"transcript": "[[Black Hat Man is working peacefully at his computer when an annoying little brat runs up behind him and goes..]]\nAnnoying Brat: MONKEY TACOS! I'm so random!\n\nBlack Hat Man: Me too!\n\n[[Black Hat Man spews an enormous torrent of random numbers, and the annoying brat is blasted away]]\n\n[[Black Hat Man returns to work in peace]]\n\n{{Title text: In retrospect, it's weird that as a kid I thought completely random outbursts made me seem interesting, given that from an information theory point of view, lexical white noise is just about the opposite of interesting by definition.}}"
},
"success": true
}