GET /xkcd/random
从跨越近二十年的 2,900+ 部漫画完整档案中获取随机 xkcd 漫画。返回漫画标题、编号、图片 URL、alt 文字(隐藏的悬停文字)和发布日期。适用于「给我惊喜」功能、随机内容推送、休息时间娱乐小组件和解闷应用功能。
curl https://nordapi.ee/api/v1/xkcd/random
{
"data": {
"alt": "When I was a kid, I asked my parents why our houses didn't have toothpaste pipes in addition to water ones. I'm strangely pleased to see Amazon thinking the same way.",
"date": "2015-11-04",
"img": "https://imgs.xkcd.com/comics/water_delivery.png",
"link": "",
"num": 1599,
"title": "Water Delivery",
"transcript": "Now that Amazon is advertising one-hour delivery of bottled water,\n\n[[A diagram showing the most obvious progression of events. First just one bottle is sent from the warehouse to a person. Then two. Then five. Then 20.\nFinally, a direct pipe sends the water along.]]\n\nI vote we start calling municipal plumbing \"on-demand hyperloop-style water delivery\" and see if we can sell anyone on the idea.\n\n{{Title text: When I was a kid, I asked my parents why our houses didn't have toothpaste pipes in addition to water ones. I'm strangely pleased to see Amazon thinking the same way.}}"
},
"success": true
}