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
- Host: GitHub
- URL: https://github.com/mrmartineau/xkcd-api
- Owner: mrmartineau
- Created: 2017-09-24T06:30:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-01T06:43:36.000Z (almost 7 years ago)
- Last Synced: 2025-03-17T19:21:25.452Z (about 1 year ago)
- Topics: api, cors-enabled, xkcd-api, zeit
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 40
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
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"
}
```
[](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)