Random Chuck Norris Jokes With curl

Fetch a joke as JSON and read it in the terminal.

LinuxcurlnetworkapiLow risk
Run curl -s https://api.chucknorris.io/jokes/random to print a random joke as JSON.

01Command

Command
$ curl -s https://api.chucknorris.io/jokes/random

02What it does

The Chuck Norris API returns a JSON object whose value field holds the joke. Pipe it to jq -r .value for just the text, or to jq -r '.icon_url' for the icon. It is a simple, dependency-free way to demo JSON APIs.

03Risk

RiskLow risk
Requirementscurl (preinstalled on most Linux distributions)
!Warning: The jokes are user-generated and occasionally crude; the API is third-party with no uptime guarantee.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • chucknorris.io API
    chucknorris.io · vendor-doc · 2026-09-20
    Evidence: Documents the /jokes/random endpoint and categories.

Last verified: 2026-09-20 · Category: Network

06Related solutions