# Wttr Weather Forecast API

> Current weather and 3-day forecast for any city, airport or coordinates from wttr.in, in JSON

- Vendor: `wttrweatherforecastapi` · version 1.0 · category Weather · tags weather api, weather forecast api, current weather api, city weather api, free weather api, wttr api
- Datasource: custom HTTP routes
- Marketplace page: https://apiclay.com/api/wttrweatherforecastapi
- This document: https://apiclay.com/docs/wttrweatherforecastapi.md
- OpenAPI 3.1: https://apiclay.com/api/wttrweatherforecastapi/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `wttrweatherforecastapi`
- Updated: 2026-11-18

## About

## Wttr Weather Forecast API

Weather for any place name, airport code or latitude,longitude from wttr.in: current conditions (temperature, feels-like, humidity, wind, pressure, UV, cloud cover, description) and a 3-day forecast with hourly detail, astronomy (sunrise, sunset, moon phase) and the nearest area.

Data comes from **wttr.in** (https://wttr.in). Every route calls the source's own public API and returns it unchanged.

Typical flow: `/weather?location=London`, `/weather?location=JFK`, `/weather?location=48.85,2.35`.

### Routes

#### GET `/weather` - Weather
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| location | path | string | yes | City (`London`), airport code (`JFK`) or `lat,lon`. |
| lang | query | string | no | Description language, e.g. `de`, `fr`. |

Returns: `current_condition[]`, `weather[]` (3 days with `hourly[]`, `astronomy`), `nearest_area[]`.

### Caveats

- Community service backed by WorldWeatherOnline data; keep request volume modest.
- Upstream responses can change over time. Verify fields before relying on them.
- Not affiliated with or endorsed by wttr.in.

## Pricing

- Pay as you go: 0.0012 credits/request
- Trial: 1 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## HTTP routes

Only the public, buyer-facing parts of each route are listed; vendor-side credentials stay on the gateway.

### GET /weather — Weather
- Gateway: `GET https://api.apiclay.com/v1/api/wttrweatherforecastapi/weather`
- Public query params: `lang` (string), `location` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

## Call example

```bash
curl -X GET "https://api.apiclay.com/v1/api/wttrweatherforecastapi/weather?location=<location>" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
