GET /xkcd/random
Hae satunnainen xkcd-sarjakuva koko yli 2 900 sarjakuvan arkistosta, joka kattaa lähes kaksi vuosikymmentä. Palauttaa sarjakuvan otsikon, numeron, kuva-URL-osoitteen, alt-tekstin (piilotettu hover-teksti) ja julkaisupäivän. Täydellinen 'yllätä minut' -toiminnoille, satunnaisille sisältösyötteille, taukoviihteen pienoissovelluksille ja tylsyyttä torjuville sovellustoiminnoille.
curl https://nordapi.ee/api/v1/xkcd/random
{
"data": {
"alt": "Hey, before you go, can you explain to me what job I now have?",
"date": "2012-08-13",
"img": "https://imgs.xkcd.com/comics/interview.png",
"link": "",
"num": 1094,
"title": "Interview",
"transcript": "[[Black Hat Man is interviewed for a job at an interviewer's desk]]\nInterviewer: ..but thank you for applying. We'll keep your résumé on file.\n\n[[Black Hat Man places a briefcase onto the interviewer's desk]]\nBlack Hat Man: Perhaps *this* could change your mind?\n\n[[Interviewer opens the briefcase]]\n\n[[..the briefcase opens into a hole that extends below the desk]]\n\n[[The hole looks miles deep]]\n\n[[The view falls into the hole]]\n\n[[The interviewer falls down the hole]]\n\n[[The interviewer lands on a chair with a briefcase]]\n\n[[The positions from the original scene have switched and Black Hat Man is now interviewing]]\nBlack Hat Man: ..but thank you for applying. We'll keep your résumé on file.\n\n[[Interviewer looks confused]]\n\n[[Interviewer notices the briefcase]]\n\n[[Interviewer places briefcase on the desk]]\nInterviewer: Perhaps *this* could change your mind?\n\n[[Black Hat Man opens the briefcase]]\n\n[[Black Hat Man looks inside]]\n\n[[Black Hat Man spins the briefcase around]]\nBlack Hat Man: I'm sorry..\n\nBlack Hat Man: - that opening has been filled\n[[briefcase contains the normal business elements of a briefcase]]\n\n{{Title text: Hey, before you go, can you explain to me what job I now have?}}"
},
"success": true
}