← Underholdning

Tilfældig xkcd-tegneserie

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.

Se det visualiseret

Eksempelforespørgsler

Grundlæggende brug
curl https://nordapi.ee/api/v1/xkcd/random

Livesvar

{
  "data": {
    "alt": "Unsafe vehicles, hills, and philosophy go hand in hand.",
    "date": "2008-04-11",
    "img": "https://imgs.xkcd.com/comics/electric_skateboard_double_comic.png",
    "link": "",
    "num": 409,
    "title": "Electric Skateboard (Double Comic)",
    "transcript": "[[Guy showing off electric skateboard to girl reading something]]\nGuy: Check it out! An electric longboard!\nGirl: Sweet!\n[[Guy riding longboard with girl sitting onboard -- people in background]]\nLongboard: <<RRRR>>\n[[Girl turned around on longboard]]\nGirl: I feel like we're missing something...\nGuy: Yeah...\n[[Guy throwing 3 green Koopa Troopa shells; girl throwing 1 red Koopa Troopa shell -- like Mario Kart]]\n<<Music Playing>>\nLongboard: <<RRRR>>\n\n[[Guy and girl still on longboard, going up an incline]]\nGuy: Skating uphill like this is amazing.  Years of gliding downhill and pushing uphill, and now suddenly it's gliding both ways.\nLongboard: <<RRRR>>\n[[Guy and girl after passing an S-curve and boulder]]\nGuy: It's like going from C to Python.  You don't realize how much time you were spending on the boring parts until you don't have to do them anymore.\nGirl: But coding C or assembly makes you a better programmer.  Maybe the boring parts build character.\n[[Guy and girl on longboard...]]\nGuy: Yeah... but it depends how you want to spend your life.  See, my philosophy is --\n[[Longboard get into an accident]]\n<<*WHAM*>>\n[[Calvin and Hobbes laying down in the grass near the guy and girl laying down on the grass -- Calin and Hobbes's wagon is on the path, as is the longboard -- all characters seeing stars]]\n{{Title text: Unsafe vehicles, hills, and philosophy go hand in hand.}}"
  },
  "success": true
}