← Развлечения

Случайный комикс xkcd

GET /xkcd/random

Получение случайного комикса xkcd из полного архива из 2 900+ комиксов за почти два десятилетия. Возвращает название комикса, номер, URL изображения, альтернативный текст (скрытый текст при наведении) и дату публикации. Идеально для функций «удиви меня», лент случайного контента, развлекательных виджетов и функций борьбы со скукой.

Посмотрите визуализацию

Примеры запросов

Базовое использование
curl https://nordapi.ee/api/v1/xkcd/random

Ответ в реальном времени

{
  "data": {
    "alt": "Not to be confused with 'making money selling this stuff to OTHER people who think it works', which corporate accountants and actuaries have zero problems with.",
    "date": "2010-10-20",
    "img": "https://imgs.xkcd.com/comics/the_economic_argument.png",
    "link": "",
    "num": 808,
    "title": "The Economic Argument",
    "transcript": "{{A table is labeled with three columns: \"Crazy phenomenon,\" \"If it worked, people would be using it to make a killing in...\" and \"Are they?\"}}\n\nRemote Viewing, Dowsing - Oil Prospecting -\nAuras, Homeopathy, Remote Prayer - Health Care Cost Reduction -\nAstrology, Tarot - Financial\nBusiness Planning -\nCrystal Energy - Regular Energy -\nCurses, Hexes - The Military -\nRelativity - GPS Devices - X\nQuantum Electrodynamics - Semiconductor Circuit Design - X\n\nEventually, arguing that these things work means arguing that modern capitalism isn't THAT ruthlessly profit-focused.\n\n{{Title text: Not to be confused with 'making money selling this stuff to OTHER people who think it works', which corporate accountants and actuaries have zero problems with.}}"
  },
  "success": true
}