← Unterhaltung

Zufälliger xkcd Comic

GET /xkcd/random

Rufen Sie einen zufälligen xkcd-Comic aus dem gesamten Archiv von über 2.900 Comics aus fast zwei Jahrzehnten ab. Liefert den Comic-Titel, die Nummer, die Bild-URL, den Alt-Text (den versteckten Hover-Text) und das Veröffentlichungsdatum. Perfekt für „Überrasche mich"-Funktionen, zufällige Content-Feeds, Unterhaltungs-Widgets für die Pause und App-Funktionen gegen Langeweile.

Sehen Sie es visualisiert

Beispielanfragen

Grundlegende Verwendung
curl https://nordapi.ee/api/v1/xkcd/random

Live-Antwort

{
  "data": {
    "alt": "It's not hard when you have the same thought like 40 or 50 percent of the time.",
    "date": "2011-02-09",
    "img": "https://imgs.xkcd.com/comics/milk.png",
    "link": "",
    "num": 858,
    "title": "Milk",
    "transcript": "[[Couple sitting opposed, woman on couch reading book and man on a chair with a laptop]]\n\nWoman: The fact that I have breasts doesn't mean you could milk me now. I'd have to be lactating.\n\n[[a beat passes]]\n\nMan (thinking): Oh my god. She's psychic!\n\n{{Title text: It's not hard when you have the same thought like 40 or 50 percent of the time.}}"
  },
  "success": true
}