GET /xkcd/random
Hent en tilfældig xkcd-tegneserie fra hele arkivet med 2.900+ tegneserier, der spænder over næsten to årtier. Returnerer tegneseriens titel, nummer, billed-URL, alt-tekst (den skjulte hovertekst) og udgivelsesdato. Perfekt til 'overrask mig'-funktioner, tilfældige indholdsfeeds, pauseunderholdningswidgets og kedsomhedsbrydende appfunktioner.
curl https://nordapi.ee/api/v1/xkcd/random
{
"data": {
"alt": "Not pictured: the elongated Halley's-Comet-like orbit of every Rebecca Black lyric.",
"date": "2011-07-27",
"img": "https://imgs.xkcd.com/comics/days_of_the_week.png",
"link": "https://xkcd.com/930/large/",
"num": 930,
"title": "Days of the Week",
"transcript": "((The whole comic is a single panel, with a circular diagram of the days of the week.))\nPolar graph of what stuff happens on which days, based on number of Google results for phrases like \"company meeting on <day>.\"\nThe relative frequency of <day> in <phrase> is shown by the distance from the center at which <phrase>'s line crosses <day>.\nEach curve is normalized to have the same number of total hits - they're not on the same scale.\n((Not easy to reproduce the actual plot, these are the phrases, in order of popularity on Wednesday.))\n1. <day> is ladies night\n2. announced <day>\n3. company meeting on <day> \n company meeting <day>\n4. due on <day>\n5. got laid <day>\n6. drunk on <day> \n so drunk <day>\n7. <day> is the big day\n8. Church <day>\n9. got my period <day>\n10. we broke up on <day>\n11. <day> sucked\n((Thursday, from most common to least common: 11, 2, 1, 3, 9, 4, 5, 7, 10, 6, 8))\n((Friday, from most common to least common: 10, 4, 6, 7, 5, 9, 11, 3, 2, 1, 8))\n((Saturday, ditto: 6, 7, 5, 11, 9, 10, 8, 3, 2, 1, 4))\n((Sunday, ditto: 8, 9, 7, 11, 10, 5, 6, 2, 3, 4, 1))\n((Monday, ditto: 4, 2, 9, 11, 3, 5, 10, 6, 7, 8, 1))\n((Tuesday, ditto: 3, 2, 4, 5, 1, 7, 9, 10, 11, 8, 6))\n\n{{Title text: Not pictured: the elongated Halley's-Comet-like orbit of every Rebecca Black lyric.}}"
},
"success": true
}