Public APIs
xkcd favicon

xkcd

Games & Comics

Retrieve xkcd comics as JSON.

xkcd's website screenshot

About xkcd

The JSON interface provides programmatic access to xkcd comic data. Requests to URLs such as https://xkcd.com/info.0.json return the current comic, while https://xkcd.com/614/info.0.json returns a specific numbered comic.

Each response contains plaintext, easily-parsed metadata: comic titles, URLs, post dates, and transcripts when available.

The interface is intended for developers who want to fetch xkcd comics and their associated metadata automatically rather than scraping the site's HTML pages.

Key features

  • Provides a JSON API to fetch xkcd comic metadata
  • Returns current comic via a fixed info.0.json endpoint
  • Returns any specific comic by number via a per-comic info.0.json URL
  • Includes comic title, URL, post date, and transcript when available

Frequently asked questions

What data does the xkcd JSON API return?

It returns comic titles, URLs, post dates, transcripts (when available), and other metadata in plaintext JSON.

How do I get the current comic?

Request https://xkcd.com/info.0.json to get the current comic's data.

Is authentication required to use this API?

The page content does not mention any authentication requirement.

Ad
Webz.io News API favicon

Webz.io News API

Webz.io News APIs provide global news data for search, monitoring, analytics, and AI applications, with powerful filters and natural-language search.

Learn more
Ad
SerpApi - Search API favicon

SerpApi - Search API

SerpApi's Search API makes it easy and fast to scrape Google and other search engines.

Learn more

Featured products

  • SerpApi - Search API favicon
  • Webz.io News API favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product