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 Fujita Scale was replaced by the Enhanced Fujita Scale in 2007, but I think 'EF-5' sounds stupid, so I vote we just use the new measurements for assigning numbers but still call them 'F-whatever'.",
"date": "2009-09-23",
"img": "https://imgs.xkcd.com/comics/tornado_hunter.png",
"link": "",
"num": 640,
"title": "Tornado Hunter",
"transcript": "[[Two people are in a car, which is driving past a cactus. The passenger has a pith helmet and a mustache.]]\nDriver: The tornado's three miles west, moving northeast at 15 mph.\nPassenger: Go right; get ahead of it.\n\n[[A tornado is visible. The passenger pulls out a gun, and stands up in the car.]]\nPassenger: Okay, we're in range! Stop here!\n\n[[The passenger fires a gun at the tornado.]]\n<<BANG>>\nTornado: AUGH!\n\nPassenger: Big one! Must be an F-3!\nDriver: I'm not sure we're doing this right.\nPassenger: Help me mount it on the hood.\n[[The passenger is holding the tornado by its tail.]]\n\n{{Title text: The Fujita Scale was replaced by the Enhanced Fujita Scale in 2007, but I think 'EF-5' sounds stupid, so I vote we just use the new measurements for assigning numbers but still call them 'F-whatever'.}}"
},
"success": true
}