GET /xkcd/random
Obtenez une bande dessinée xkcd aléatoire issue de l'ensemble des archives de plus de 2 900 strips couvrant près de deux décennies. Renvoie le titre du strip, son numéro, l'URL de l'image, le texte alternatif (le texte caché au survol) et la date de publication. Parfait pour les fonctionnalités surprise, les flux de contenu aléatoire, les widgets de divertissement pour les pauses et les fonctionnalités anti-ennui.
curl https://nordapi.ee/api/v1/xkcd/random
{
"data": {
"alt": "The 8th panel is my favorite",
"date": "2006-02-24",
"img": "https://imgs.xkcd.com/comics/five_thirty.jpg",
"link": "",
"num": 68,
"title": "Five Thirty",
"transcript": "Comics from 5.30 AM\n[[A succession of unrelated and completely random panels]]\nMan 1: It's 80's night at the club. Wanna go?\nMan 1: There is no Tuesday.\nMan 2: Jack the Ripper or Jack Black?\n[[The second man in this panel is holding a glinting sword]]\nMan 1: You crashed my helicopter!\nMan 2: Verily!\n[[A small figure is talking with a larger figure]]\nFigure 1: Basically, neither of us have shins.\nFigure 2: Over and out.\n[[Two men are shown: one with three arms, and another with just two. All arms have round appendages at their ends]]\nMen: shitshitshitshitshit\nMen: shitdaylightsavings\nMen: shitshitshitshitsh\n[[Two figures with pumpkins (carved with faces) for heads]]\nFigure 1: You're out of ointment and out of time!\n[[A diagram of a right-angled triangle, with a theta at the smallest angle]]\nFUCK THE COSINE\nMan 1: Does being a mermaid for five minutes make you gay?\nMan 2: I hope so!\n[[A man is holding a gun to the head of another]]\nMan 1: Barbershops are for pussies.\nMan 1: My hair is bleeding.\nMan 2: [square root]3\n[[Man seems to be walking on the ceiling]]\nMan 1: Bachelor party!\n[[Warning sign with picture of spider]]\nWARNING: STRETCHY DEATH\n{{title text: The eighth panel is my favourite}}"
},
"success": true
}