An open API service indexing awesome lists of open source software.

https://github.com/mrmartineau/xkcd-api

💪 CORS enabled version of the XKCD API
https://github.com/mrmartineau/xkcd-api

api cors-enabled xkcd-api zeit

Last synced: 12 months ago
JSON representation

💪 CORS enabled version of the XKCD API

Awesome Lists containing this project

README

          


XKCD API

> CORS enabled API for the [XKCD](https://xkcd.com) 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](https://xkcd.com/json.html)
```json
{
"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](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/2254fd6b4db3e7345ddd)

> Made by [ZΛNDΞR :zap:](https://github.com/mrmartineau/) by using [Micro](https://github.com/zeit/micro) & hosted on [now](https://zeit.co/now) by [zeit](https://zeit.co)