Random Comic
random_comicFetch a randomly selected XKCD comic from the full archive (skips #404). Returns comic number, title, image URL, alt text, publication date, and transcript.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | Yes | Alt text for the comic image | |
| img | Yes | URL to the comic image | |
| url | Yes | URL to view the comic on xkcd.com | |
| date | Yes | Publication date in YYYY-MM-DD format | |
| link | Yes | URL link related to the comic, or null if not present | |
| title | Yes | The comic title | |
| number | Yes | The comic number | |
| safe_title | Yes | The comic title with special characters escaped | |
| transcript | Yes | Transcript of the comic, or null if not available |