GET /xkcd/:num
Get a specifik xkcd comic by dess nummer. Returnerar the comic titel, nummer, bild URL, alt text, and publication datum. Användbart för att bygga comic browsers, linking to specifik strips in discussions, att skapa cubedömda xkcd samlingar, and pedagogisk references to specifik science or math-related serier.
num
obligatorisk
Comic number
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
num |
Ja | - | Comic number |
curl https://nordapi.ee/api/v1/xkcd/327
curl https://nordapi.ee/api/v1/xkcd/327
curl https://nordapi.ee/api/v1/xkcd/927
curl https://nordapi.ee/api/v1/xkcd/303
{
"data": {
"alt": "Her daughter is named Help I'm trapped in a driver's license factory.",
"date": "2007-10-10",
"img": "https://imgs.xkcd.com/comics/exploits_of_a_mom.png",
"link": "",
"num": 327,
"title": "Exploits of a Mom",
"transcript": "[[A woman is talking on the phone, holding a cup]]\nPhone: Hi, this is your son's school. We're having some computer trouble.\nMom: Oh dearâdid he break something?\nPhone: In a wayâ\nPhone: Did you really name your son \"Robert'); DROP TABLE Students;--\" ?\nMom: Oh, yes. Little Bobby Tables, we call him.\nPhone: Well, we've lost this year's student records. I hope you're happy.\nMom: And I hope you've learned to sanitize your database inputs.\n{{title-text: Her daughter is named Help I'm trapped in a driver's license factory.}}"
},
"success": true
}