{"uid":"cap_9_jto4jcNkeDmZpqnIH5C","slug":"dwd-weather-forecast-api-via-4yearcycle-com-427481be","name":"DWD Weather Forecast API (via 4yearcycle.com)","description":"Interactive Bitcoin 4-year halving cycle chart on a polar disc. Live price, 200W MA, Mayer Multiple, RSI, MACD, Pi Cycle and optional paid cycle projections.","url":"https://4yearcycle.com/x402/weather-de?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"tz":{"type":"string","default":"Europe/Berlin","examples":["Europe/Berlin","Etc/UTC"],"description":"IANA timezone for returned timestamps. Default: Europe/Berlin."},"lat":{"type":"string","pattern":"^-?\\d{1,2}(\\.\\d+)?$","examples":["52.52","48.1351"],"description":"Latitude in decimal degrees (-90 to 90). Required unless station is given."},"lon":{"type":"string","pattern":"^-?\\d{1,3}(\\.\\d+)?$","examples":["13.405","11.5820"],"description":"Longitude in decimal degrees (-180 to 180). Required unless station is given."},"hours":{"type":"string","default":"24","pattern":"^\\d{1,3}$","examples":["24","72"],"description":"Forecast/observation window in hours from now. Integer 1-240 (DWD MOSMIX horizon is ~10 days); values above 240 are capped. Default: 24."},"station":{"type":"string","examples":["00399"],"description":"Optional DWD station ID (5 alphanumeric characters) to query directly instead of lat/lon, e.g. 00399 for Berlin-Alexanderplatz."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["count","forecast","source","attribution"],"properties":{"count":{"type":"integer","description":"Number of hourly records returned"},"source":{"type":"string","description":"Always \"DWD\" — Deutscher Wetterdienst"},"station":{"type":["object","null"],"properties":{"lat":{"type":["number","null"]},"lon":{"type":["number","null"]},"stationName":{"type":["string","null"]},"dwdStationId":{"type":["string","null"]},"distanceMeters":{"type":["number","null"]}},"description":"Resolved DWD station used for the forecast"},"forecast":{"type":"array","items":{"type":"object","properties":{"icon":{"type":["string","null"],"description":"Bright Sky icon name for the condition"},"condition":{"type":["string","null"],"description":"DWD condition code, e.g. dry, rain, snow, fog"},"timestamp":{"type":"string","description":"Record timestamp, ISO 8601 in the requested timezone"},"windGustKmh":{"type":["number","null"],"description":"Maximum wind gust in km/h"},"temperatureC":{"type":["number","null"],"description":"Air temperature in °C"},"windSpeedKmh":{"type":["number","null"],"description":"Mean wind speed in km/h"},"cloudCoverPct":{"type":["integer","null"],"description":"Cloud cover in %"},"precipitationMm":{"type":["number","null"],"description":"Precipitation in mm over the hour"},"sunshineMinutes":{"type":["number","null"],"description":"Sunshine duration in minutes over the hour"},"windDirectionDeg":{"type":["integer","null"],"description":"Wind direction in degrees"},"precipitationProbabilityPct":{"type":["integer","null"],"description":"Precipitation probability in %, forecast records only"}}},"description":"Hourly weather records over the requested window"},"attribution":{"type":"string","description":"Required CC BY 4.0 DWD attribution"}}}}}}},"responseSchema":{"type":"json","example":{"count":1,"source":"DWD","station":{"lat":52.52,"lon":13.42,"stationName":"BERLIN-ALEX.","dwdStationId":"00399","distanceMeters":1016},"forecast":[{"icon":"partly-cloudy-day","condition":"dry","timestamp":"2026-08-18T14:00:00+02:00","windGustKmh":25.9,"temperatureC":22.4,"windSpeedKmh":14.4,"cloudCoverPct":60,"precipitationMm":0,"sunshineMinutes":42,"windDirectionDeg":260,"precipitationProbabilityPct":10}],"attribution":"Deutscher Wetterdienst (DWD) Open Data, CC BY 4.0 (dwd.de/DE/leistungen/opendata), served via the independent free Bright Sky API (brightsky.dev)"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fuB43zlXgm6y5hPqFj9I6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns hourly weather forecasts for a given location using Germany's Deutscher Wetterdienst (DWD) MOSMIX data via the Bright Sky API","exampleAgentPrompt":"Can you get me the hourly weather forecast for Berlin (latitude 52.52, longitude 13.405) for the next 48 hours, using the Europe/Berlin timezone?","exampleUseCases":[{"title":"City weather forecast for event planning","prompt":"What's the hourly weather forecast for Hamburg over the next 72 hours? Use latitude 53.55 and longitude 9.99 with the Europe/Berlin timezone — I need temperature, rain probability, and wind speed."},{"title":"DWD station direct query","prompt":"Fetch me the weather forecast directly from DWD station 00399 (Berlin-Alexanderplatz) for the next 24 hours in the Europe/Berlin timezone."},{"title":"Multi-day forecast for outdoor logistics","prompt":"Get me 5 days of hourly weather data for Munich — lat 48.1351, lon 11.582 — in UTC timezone, so I can plan outdoor operations across the week."}],"resultDescription":"A JSON object containing an array of hourly forecast records, each with timestamp, temperature in Celsius, precipitation in mm, precipitation probability, wind speed and gust in km/h, wind direction in degrees, cloud cover percentage, sunshine minutes, a condition label, and a weather icon identifier. Also includes the resolved DWD station metadata and attribution text.","failureModes":["Missing or invalid lat/lon without a station ID provided — returns error","Station ID not found in DWD database — returns null station or error","Hours value above 240 gets capped silently — may return fewer records than expected","Invalid timezone string causes parsing error","DWD MOSMIX data unavailable or delayed — upstream data gap"],"whenToPreferThis":"Choose this endpoint when you need structured hourly weather forecasts sourced from Germany's official meteorological authority (DWD) for locations in Germany or Central Europe. It is ideal when DWD MOSMIX accuracy and official attribution are required, or when you want to query a specific DWD station by ID. Prefer it over generic weather APIs when regulatory or scientific credibility of the data source matters, or when coverage of German stations is the priority.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:31:59.794Z","isFirstParty":false,"canonicalSlug":"dwd-weather-forecast-api-via-4yearcycle-com-427481be"}