Ask a Yes/No Question With curl

Fetch a random yes, no or maybe answer as JSON.

LinuxcurlnetworkapiLow risk
Run curl -s https://yesno.wtf/api to print a random answer as JSON.

01Command

Command
$ curl -s https://yesno.wtf/api

02What it does

YesNo.wtf returns a JSON object with an answer field of yes, no or maybe, plus a matching GIF URL. It is a minimalist example API and a fun way to settle trivial decisions; pipe it to jq -r .answer for the bare word.

03Risk

RiskLow risk
Requirementscurl (preinstalled on most Linux distributions)
!Warning: The answer is random and meaningless; do not use it for real decisions.

04Undo

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

05Sources

  • YesNo.wtf API
    yesno.wtf · vendor-doc · 2026-09-20
    Evidence: Documents the /api endpoint returning answer, forced and image fields.

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

06Related solutions