← Underhållning

Slumpmässig xkcd-serie

GET /xkcd/random

Hämta en slumpmässig xkcd-serie från hela arkivet med 2 900+ serier som spänner över nästan två decennier. Returnerar seriens titel, nummer, bild-URL, alt-text (den dolda hovertexten) och publiceringsdatum. Perfekt för funktioner med överraska mig, slumpmässiga innehållsflöden, underhållningswidgetar för raster och appfunktioner som motverkar tristess.

Se det visualiserat

Exempelförfrågningar

Grundläggande användning
curl https://nordapi.ee/api/v1/xkcd/random

Livesvar

{
  "data": {
    "alt": "'How about a little ... *family growth*?'  'Dude, that's not until round two.'",
    "date": "2010-08-11",
    "img": "https://imgs.xkcd.com/comics/scheduling.png",
    "link": "",
    "num": 778,
    "title": "Scheduling",
    "transcript": "[[Pizza guy enters through door; maid is dusting.]]\nPizza Guy: Pizza delivery! Did someone order a hot sausag--\nMaid: Mon dieu! Monsieur is home early--\nBoth: Wait, who are you?\n\nPizza guy: Wait, this is the Jones', right? Their daughter was supposed to be having a party!\nMaid: No, I thought Mr. Jones was coming home early.\n\n[[Pizza guy is off-panel left as plumber enters from the right.]]\nPizza guy: But I thought--\nPlumber: Howdy, Mrs. Jones. I hear you need some plumbi--\nPlumber: Who are you?\n\n[[The pizza guy looks in a cabinet; the others are off-panel right.]]\nMaid: Sorry, big mixup.\nPizza guy: Hey, check out out--the Joneses have Agricola!\nPlumber: I love that game!\n\n[[Mr. Jones and Miss Jones arrive home. Pizza guy, maid, and plumber are sitting on the floor playing Agricola.]]\nMr. Jones: What in the name of ...\nPizza guy: Dammit, I wanted that grain.\nMaid: Hush, you have starting player.\n\n{{Title text: 'How about a little ... *family growth*?'  'Dude, that's not until round two.'}}"
  },
  "success": true
}