xkcd API

The xkcd API offers a straightforward method to access metadata for individual xkcd webcomics in JSON format. By appending the comic number to the base URL, developers can retrieve details such as titles, image URLs, alt text, and more. This API is ideal for integrating xkcd comics into applications, websites, or educational tools, providing a seamless way to display or analyze comic content programmatically.

1

Endpoints

0

Views

Aug 19, 2025

Last Checked

NaN

Rate Limit

API Endpoints

Get the latest xkcd comic

Full URL

https://xkcd.com/json.html/info.0.json

Code Examples

curl -X GET 'https://xkcd.com/json.html/info.0.json'

Example Response

{
  "img": "https://imgs.xkcd.com/comics/comic.png",
  "num": 2500,
  "title": "Comic Title"
}

Version

v1

Rate Limit

Unlimited
Tags
comicsentertainmentxkcd
Technical Details
Authentication
None
Response Formats
JSON
Availability
global
Status
Published
Rate Limits

None specified

Supported Languages
Any
Use Cases
comics
entertainment
humor

Related APIs

Discover similar APIs that might interest you

APIfree

TVMaze API

TVMaze API delivers up-to-date televisio...

Category
Fun & Entertainment
Endpoints
1
entertainmentmediatv shows
APIopen source

Studio Ghibli API

Resources from Studio Ghibli films

Category
Fun & Entertainment
Endpoints
1
animationmovies
APIopen source

SHOUTCLOUD API

SHOUTCLOUD API is a humorous and fun pub...

Category
Fun & Entertainment
Endpoints
1
humortext