GET /xkcd/random
从跨越近二十年的 2,900+ 部漫画完整档案中获取随机 xkcd 漫画。返回漫画标题、编号、图片 URL、alt 文字(隐藏的悬停文字)和发布日期。适用于「给我惊喜」功能、随机内容推送、休息时间娱乐小组件和解闷应用功能。
curl https://nordapi.ee/api/v1/xkcd/random
{
"data": {
"alt": "This is roughly equivalent to 'number of times I've picked up a seashell at the ocean' / 'number of times I've picked up a seashell', which in my case is pretty close to 1, and gets much closer if we're considering only times I didn't put it to my ear.",
"date": "2013-07-10",
"img": "https://imgs.xkcd.com/comics/seashell.png",
"link": "",
"num": 1236,
"title": "Seashell",
"transcript": "((At the top of the panel is an equation showing Bayes' Theorem for the probability that a person is near the ocean given that they just picked up a seashell.))\n\nThe probability that I'm near the ocean given I picked up a seashell equals the probability I picked up a seashell given I'm near the ocean times the probability I'm near the ocean all divided by the probability I picked up a seashell.\n\n[[A person holding a seashell stands to the left of the panel, to the right a few birds are flying around and the sound of a wave crashing against the shore is depicted.]]\n\n<<Crashhh>>\n<<Sploosh>>\n\nCaption: Statistically speaking, if you pick up a seashell and don't hold it to your ear, you can probably hear the ocean.\n\n{{Title text: This is roughly equivalent to 'number of times I've picked up a seashell at the ocean' \n 'number of times I've picked up a seashell', which in my case is pretty close to 1, and gets much closer if we're considering only times I didn't put it to my ear.}}"
},
"success": true
}