GET /xkcd/random
Hent en tilfeldig xkcd-stripe fra hele arkivet med over 2 900 striper som spenner over nesten to tiår. Returnerer stripens tittel, nummer, bilde-URL, alt-tekst (den skjulte hover-teksten) og publiseringsdato. Perfekt for «overrask meg»-funksjoner, tilfeldige innholdsstrømmer, pauseunderholdningswidgets og apper for kjedsomhetsbekjempelse.
curl https://nordapi.ee/api/v1/xkcd/random
{
"data": {
"alt": "Protip: You can win every exchange just by being one level more precise than whoever talked last. Eventually, you'll defeat all conversational opponents and stand alone.",
"date": "2014-01-17",
"img": "https://imgs.xkcd.com/comics/actually.png",
"link": "",
"num": 1318,
"title": "Actually",
"transcript": "((The text of the comic is circular. Each statement is followed by the next, wrapping around back to the original speaker. Thus, the speaker chosen to be \"first\" below is chosen arbitrarily - in this case, the one that is facing upwards on the page.))\n[[6 figures stand on the surface of a circle, equidistant around it.]]\nFirst figure: Actually, measurements suggest it's flat.\nSecond figure: Actually, it's a sphere.\nThird figure: Actually, it's an oblate spheroid.\nFourth figure: Actually, it's a shape defined by the EGM96 coefficients.\nFifth figure: Actually, it's that plus local topography.\nSixth figure: Actually, it's embedded in a universe that's curved.\n((And thus the text has arrived back at the beginning of the first figure's statement.))\n\n{{Title text: Protip: You can win every exchange just by being one level more precise than whoever talked last. Eventually, you'll defeat all conversational opponents and stand alone.}}"
},
"success": true
}