Random Advice With curl

Fetch a short piece of advice as JSON from a free API.

LinuxcurlnetworkapiLow risk
Run curl -s https://api.adviceslip.com/advice to print a random advice slip as JSON.

01Command

Command
$ curl -s https://api.adviceslip.com/advice

02What it does

The Advice Slip API returns a JSON object with a nested slip.advice field. Extract it with jq -r '.slip.advice'. It supports search and random endpoints and needs no key, making it a compact JSON-and-jq exercise.

03Risk

RiskLow risk
Requirementscurl (preinstalled on most Linux distributions)
!Warning: The advice is for entertainment; it is not professional guidance.

04Undo

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

05Sources

  • Advice Slip API
    adviceslip.com · vendor-doc · 2026-09-20
    Evidence: Documents the /advice endpoint and the nested slip.advice JSON field.

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

06Related solutions