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.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product