Terminal Weather With wttr.in

Fetch a compact current-conditions line for any city using curl.

LinuxcurlnetworkapiLow risk
Run curl "wttr.in/Beijing?format=3" to print a one-line weather summary.

01Command

Command
$ curl "wttr.in/Beijing?format=3"

02What it does

wttr.in is a free weather service that renders forecasts as plain text. The ?format=3 query returns a compact one-line summary; omit it for a full ASCII forecast, and add ?0 for the current day only. It needs no API key.

03Risk

RiskLow risk
Requirementscurl (preinstalled on most Linux distributions)
!Warning: It is a third-party service, so availability and rate limits can change; do not build critical automation on it.

04Undo

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

05Sources

  • chubin/wttr.in
    GitHub · vendor-doc · 2026-09-20
    Evidence: Documents wttr.in one-line format (?format=3), units and location paths.

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

06Related solutions