Skip to content
💪 CORS enabled version of the XKCD API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.prettierrc
index.js improve CORS and add retina images Feb 13, 2018
now.json initial commit 🎉 add API Sep 24, 2017
package.json
readme.md
yarn.lock

readme.md

XKCD API

CORS enabled API for the XKCD comic

Latest comic

https://xkcd.now.sh

Comic #1000

https://xkcd.now.sh/1000

Example response (comic #1892)

This is the same exact response that the official XKCD API

{
  "month": "9",
  "num": 1892,
  "link": "",
  "year": "2017",
  "news": "",
  "safe_title": "USB Cables",
  "transcript": "",
  "alt": "Tag yourself, I'm \"frayed.\"",
  "img": "https://imgs.xkcd.com/comics/usb_cables.png",
  "title": "USB Cables",
  "day": "20"
}

Run in Postman

Made by ZΛNDΞR ⚡️ by using Micro & hosted on now by zeit

You can’t perform that action at this time.