GET /api/v1/cities/{slug}/weather
Weather per city (DWD via Bright Sky)
Current weather readings for a city from the German Weather Service (DWD, via Bright Sky) in the canonical envelope. data holds the readings, attribution carries the GeoNutzV modification notice (modified=true). Special cases: a disabled source returns 200 with source_status="disabled"; a dead upstream with no cache returns 503 with a hint to GET /api/v1/health.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/weather"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/weather");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/weather")
res.raise_for_status()
print(res.json())