Skip to Content
APIEndpoints🟢 GET /forecast-daily

GET /forecast-daily

Daily forecast for the cities published for daily data on the Weather Data page (or, if none, the current-data cities), up to 16 days ahead, starting today (local date).

curl 'https://www.skycaster.tv/api/public/v1/forecast-daily?count=7' \
-H 'Authorization: Bearer YOUR_API_KEY'

🔐 Authentication

Send your API key as Authorization: Bearer YOUR_API_KEY, x-api-key: YOUR_API_KEY, or ?apiKey=YOUR_API_KEY. See Authentication.

🧩 Query Parameters

NameTypeRequiredDescription
countintegerYesNumber of days, 1–16
apiKeystringNo*API key, if not sent in a header
formatstringNojson or xml. Defaults to the format published on the Weather Data page, then json
presetstringNoName of a daily preset saved on the Weather Data page (case-insensitive)
langstringNoLanguage id from Languages & wording

* One of apiKey, Authorization or x-api-key is required.

📦 Response

See Data Types → DailyForecastData. Keys in forecast are local dates (YYYY-MM-DD).

✅ Example Successful Response

1{
2"message": [
3  {
4    "city": "Zürich",
5    "data": {
6      "forecast": {
7        "2025-05-17": {
8          "time": "2025-05-17",
9          "icon": "https://cdn.skycaster.tv/set-2/01d.gif",
10          "weather_description": "Clear sky",
11          "daily_temp_max": 24.9,
12          "daily_temp_min": 9.4,
13          "daily_wind_max": 14.8,
14          "daily_wind_dir": 36,
15          "daily_precip_p": 5,
16          "daily_daylight": 55860,
17          "daily_alerts": []
18        },
19        "2025-05-18": {
20          "time": "2025-05-18",
21          "icon": "https://cdn.skycaster.tv/set-2/10d.gif",
22          "weather_description": "Rain",
23          "daily_temp_max": 17.3,
24          "daily_temp_min": 11.1,
25          "daily_wind_max": 38.2,
26          "daily_wind_dir": 250,
27          "daily_precip_p": 90,
28          "daily_daylight": 55980,
29          "daily_alerts": [
30            { "type": "rain", "severity": "moderate", "title": "Heavy rain" }
31          ]
32        }
33      },
34      "type": "daily",
35      "days": 2
36    }
37  }
38]
39}

❌ Possible Errors

All errors are returned as { "error": "..." }. The API key is checked first.

StatuserrorDescription
400count is requiredMissing count
400count must be a whole number from 1 to 16Out of range or not an integer
400No cities configured. Save cities on the Weather Data page first.Nothing published
400No daily fields configured. Select fields and save on the Weather Data page first.No daily fields published
400format must be json or xmlUnsupported format
400 / 404Preset "…" …Preset not found, saved for another mode, or empty
400 / 404lang must be … / Language "…" not found. …Malformed or unknown lang
401Missing API key / Invalid API keySee Authentication
403No active subscriptionThe account has no active subscription
429Rate limit exceededPlan rate limit reached
500Error fetching daily forecastUpstream or internal error — retry shortly

⚙️ Notes

  • Data comes from Open-Meteo. Air-quality and pollen fields are not available daily.
  • Responses are cached for 15 minutes per API key and parameters. Publishing new settings clears the cache.
  • Daily icon values always use the day variant.

📞 Need Assistance?

If you have questions or need support, email us at support@skycaster.tv.

Last updated on