# wttr.in

> partly sunny: The right way to check the weather

- Type: agent or tool
- Field: Developer Tools
- Repository: https://github.com/chubin/wttr.in
- GitHub stars: 30813
- Licence: Apache-2.0
- Language: Go
- Last push: 2026-11-22
- Page: https://imutechz.in/agents/wttr.in

## What it is
wttr.in is a console-oriented weather forecast service accessible via HTTP clients like curl, wget, or web browsers. It returns weather data in multiple formats including ANSI-colored terminal output, HTML, PNG images, JSON, and Prometheus metrics. Users can query by city name, airport code, landmark, IP address, or domain name, with options for units, language, and output format. No installation is required; the service runs at wttr.in and handles tens of millions of daily queries.

## Features
- ANSI, HTML, PNG, JSON, and Prometheus output formats
- Location queries via city, airport code, landmark, IP, or domain
- Unit options: USCS, metric (SI), metric with m/s wind
- Language localization support
- One-line output for status bars and scripts
- Map view and moon phase information

## Best for
- Quick terminal weather checks with curl
- Embedding weather in scripts, tmux, or status bars
- Generating weather PNGs for images or web widgets
- API access via JSON or Prometheus metrics

## Pros
- Zero installation — works with any HTTP client
- Multiple output formats for diverse use cases
- Supports many location types and internationalization
- Lightweight one-line format for status bars

## Cons
- Requires internet connection to query the service
- Rate limits may apply at high query volumes
- No offline or local forecasting capability

## Usage
```
curl wttr.in/London
```

Tags: weather, terminal, curl, api, json, png, ansi, cli
