Skip to Content
APIEndpoints🟢 GET /weather

GET /weather

Current conditions for the cities published for current data on the Weather Data page, with the fields and units published there. Weather, air-quality and pollen fields can be combined in one call.

curl 'https://www.skycaster.tv/api/public/v1/weather' \
-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
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 current preset saved on the Weather Data page (case-insensitive). Uses that preset’s cities, fields, units and format instead of the published settings
langstringNoLanguage id from Languages & wording; replaces weather descriptions and alert titles with your wording

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

📦 Response

A list of cities, in the order they were published. See Data Types → WeatherData.

✅ Example Successful Response

1{
2"message": [
3  {
4    "city": "Paris",
5    "data": {
6      "icon": "https://cdn.skycaster.tv/set-2/01d.gif",
7      "weather_description": "Clear sky",
8      "temp": 18.5,
9      "humidity": 62,
10      "dew": 11.2,
11      "uv": 5.1,
12      "eu_aqi": 24,
13      "ozone": 89.3,
14      "alerts": []
15    }
16  },
17  {
18    "city": "New York",
19    "data": {
20      "icon": "https://cdn.skycaster.tv/set-2/02n.gif",
21      "weather_description": "Mainly clear",
22      "temp": 23.4,
23      "humidity": 70,
24      "dew": 17.6,
25      "uv": 0,
26      "eu_aqi": 31,
27      "ozone": 64.0,
28      "alerts": []
29    }
30  }
31]
32}

❌ Possible Errors

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

StatuserrorDescription
400No cities configured. Save cities on the Weather Data page first.Nothing published for current data
400No current fields configured. Select fields and save on the Weather Data page first.No current 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 dataUpstream or internal error — retry shortly

⚙️ Notes

  • Data comes from Open-Meteo (forecast models) and the Open-Meteo Air Quality API (air quality and pollen).
  • Responses are cached for 60 seconds per API key and parameters. Publishing new settings clears the cache.
  • icon uses the night variant after dark where one exists. See Icons.

📞 Need Assistance?

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

Last updated on