← Viihde

Satunnainen xkcd-sarjakuva

GET /xkcd/random

Hae a random xkcd comic from the entire archive of 2,900+ comics spanning nearly two decades. Palauttaa the comic title, number, image URL, alt text (the hidden hover text), and publication date. Sopii 'surprise me' features, random content feeds, break-time entertainment widgets, and boredom-busting app features.

Esimerkkipyynnöt

Peruskäyttö
curl https://nordapi.ee/api/v1/xkcd/random

Reaaliaikainen vastaus

{
  "data": {
    "alt": "They have a telescope pointed RIGHT AT US!",
    "date": "2013-06-28",
    "img": "https://imgs.xkcd.com/comics/habitable_zone.png",
    "link": "",
    "num": 1231,
    "title": "Habitable Zone",
    "transcript": "[[An astronomer stands in front of a huge telescope, looking through the eyepiece.]]\nAstronomer: I've discovered an Earth-sized planet in a star's habitable zone! It even has oceans! And visible weather! \nTo mess with an astronomer, put a mirror in the path of their telescope.\n{{Title text: They have a telescope pointed RIGHT AT US!}}"
  },
  "success": true
}