GET /xkcd/random
Sæktu handahófskennda xkcd-myndasögu úr öllu safninu með yfir 2.900 myndasögum sem spannar næstum tvo áratugi. Skilar titli myndasögunnar, númeri, mynd-slóð, alt-texta (falda yfirflugstextann) og útgáfudagsetningu. Fullkomið fyrir „komdu mér á óvart“ aðgerðir, handahófskennda efnisstrauma, viðmót fyrir hvíldarstundaafþreyingu og leiðindaeyðandi forritaaðgerðir.
curl https://nordapi.ee/api/v1/xkcd/random
{
"data": {
"alt": "1916: 'PHYSICIST DAD' TURNS HIS ATTENTION TO GRAVITY, AND YOU WON'T BELIEVE WHAT HE FINDS. [PICS] [NSFW]",
"date": "2013-10-28",
"img": "https://imgs.xkcd.com/comics/headlines.png",
"link": "",
"num": 1283,
"title": "Headlines",
"transcript": "20th Century headlines rewritten to get more clicks\n\n1905 - How A Shocking New Theory, Discovered By A Dad, Proves Scientists Are Wrong About *Everything!\n1912 - 6 Titanic Survivors Who Should've Died\n1920 - 17 Things That Will Be Outlawed Now That Women Can Vote\n1928 - This One Weird Mold Kills All Germs\n1929 - Most Embarrassing Reactions to the Stock Market Crash [GIFs]\n1945 - Thes 9 Nazi Atrocities Will Make You Lose Faith In Humanity\n1948 - 5 Insane Plans For Feeding West Berlin You Wan't Believe Are Real\n1955 - Avoid Polio With This One Weird Trick\n1957 - 12 Nip Slips Potentially Visible To Sputnik\n1968 - This Year's Assasinations Ranked From Most To Least Tragic\n1969 - This is The Most Important Photo Of An Astronaut You'll See All Day\n1986 - This Video of a Terminally Ill Child Watching The Challenger Launch Will Break Your Heart\n1989 - You Won't Believe What These People Did to the Berlin Wall [Video]\nJan 1, 1990 - 500 Signs You're a 90s Kid\n\n{{Title text: 1916: 'PHYSICIST DAD' TURNS HIS ATTENTION TO GRAVITY, AND YOU WON'T BELIEVE WHAT HE FINDS. [PICS] [NSFW]}}"
},
"success": true
}