public apis
/
CategoriesMCPBlogRandomStar
Public APIs

A searchable directory of 2,000+ free public APIs, curated by the community and maintained with APILayer.

Powered byAPILayer

Popular

  • Weather APIs
  • Finance APIs
  • Crypto APIs
  • Geocoding APIs
  • Machine learning APIs
  • Games APIs

Directory

  • Categories
  • All APIs
  • MCP servers
  • FAQ
  • Stats
  • JSON API
  • llms.txt

APILayer

  • Browse the API suite ↗
  • Get a free API key ↗
  • APILayer blog ↗
  • Postman collection ↗
  • Discord community ↗

Project

  • public-apis on GitHub ↗
  • Contribute an API ↗
Public APIs · by APILayerData from public-apis (MIT)
  1. Home
  2. /Games & Comics
  3. /xkcd
Games & Comics
xkcd logo

xkcd

Retrieve xkcd comics as JSON.

xkcd API is a free Games & Comics API that requires no API key, is served over HTTPS and does not support CORS, so it should be called from a server.

Authentication
None required
HTTPS
Yes
CORS
No
Category
Games & Comics
Visit documentation ↗xkcd.com
APILayer

Unified API suite · now live

Geocode an address, validate an email, track a flight or pull stock data with one account, one dashboard and one API key.

Get your free API key→Free tier on every API

xkcd API alternatives

Worth the Rip logo

Worth the Rip

Sealed trading-card product prices and expected value across 10 TCGs, refreshed every 2 hours

No authHTTPSCORS
Yu-Gi-Oh! logo

Yu-Gi-Oh!

Yu-Gi-Oh! TCG Information

No authHTTPSCORS ?
When is next MCU film logo

When is next MCU film

Upcoming MCU film information

No authHTTPSCORS ?
weBump logo

weBump

Connect games to nearby players' profiles, small saves and recent visitors with consent

OAuthHTTPSCORS
Wargaming.net logo

Wargaming.net

Wargaming.net info and stats

apiKeyHTTPSNo CORS
W

Warface (non-official)

Official API proxy with better data structure and more features

No authHTTPSNo CORS

xkcd API FAQ

Is the xkcd API free?

Yes. The xkcd API is listed in the Games & Comics category of the public-apis directory, which only includes APIs that are free or have a free tier. Check its documentation for rate limits and paid plans.

Does the xkcd API require an API key?

No. The xkcd API requires no authentication, so you can start making requests without signing up.

Can I call the xkcd API from the browser?

Not directly. The xkcd API does not allow CORS, so call it from a server, serverless function or proxy instead of front-end JavaScript.

Does the xkcd API support HTTPS?

Yes. The xkcd API is served over HTTPS, so it's safe to use in production.