GET /xkcd/random
Получение случайного комикса xkcd из полного архива из 2 900+ комиксов за почти два десятилетия. Возвращает название комикса, номер, URL изображения, альтернативный текст (скрытый текст при наведении) и дату публикации. Идеально для функций «удиви меня», лент случайного контента, развлекательных виджетов и функций борьбы со скукой.
curl https://nordapi.ee/api/v1/xkcd/random
{
"data": {
"alt": "I always figured the word 'blog' would sound *less* silly as the years went by.",
"date": "2008-05-26",
"img": "https://imgs.xkcd.com/comics/starwatching.png",
"link": "",
"num": 428,
"title": "Starwatching",
"transcript": "Man: Just look at those stars.\nMan: My father once told me that the great bloggers of the past are up there, watching over us.\n\nMan: High above the blogosphere, a gap opens in the tag clouds. Cory Doctorow's voice booms forth...\nWoman: You need to get out either more or less. I can't decide.\n{{title text: I always figured the word 'blog' would sound *less* silly as the years went by.}}"
},
"success": true
}