Skip to content

GET /weather

Returns current weather conditions for the given coordinates. No AI processing is involved — raw weather data only.

Endpoint: GET https://skystyle.app/api/v1/weather
Credit cost: 1 per request

Request

Headers

HeaderValue
AuthorizationBearer sk_live_YOUR_API_KEY

Query parameters

ParameterTypeRequiredDescription
latnumberLatitude (-90 to 90)
lonnumberLongitude (-180 to 180)
unitstring"metric" (°C, km/h, default) or "imperial" (°F, mph)

Response (200)

FieldTypeDescription
tempnumberTemperature in the requested unit.
feels_likenumberApparent (feels-like) temperature.
temp_unitstring"°C" or "°F".
humidity_pctnumberRelative humidity (0–100).
wind_speednumberWind speed in the requested unit.
wind_speed_unitstring"km/h" or "mph".
wind_dirstringCardinal wind direction, e.g. "NW".
descriptionstringHuman-readable conditions, e.g. "Partly cloudy".
rain_chance_pctnumberPrecipitation probability (0–100).
uv_indexnumberUV index.
is_daybooleanWhether it is currently daytime at that location.
alertsstring[]Active weather alerts (empty array if none).
sourcestringWeather data provider identifier.
retrieved_atstringISO-8601 UTC timestamp.

Examples

JavaScript (fetch)

javascript
const response = await fetch(
  "https://skystyle.app/api/v1/weather?lat=35.6762&lon=139.6503&unit=metric",
  {
    headers: { "Authorization": "Bearer sk_live_YOUR_API_KEY" },
  }
);

const data = await response.json();

curl

bash
curl "https://skystyle.app/api/v1/weather?lat=35.6762&lon=139.6503&unit=metric" \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"

Sample response

json
{
  "temp": 22,
  "feels_like": 20,
  "temp_unit": "°C",
  "humidity_pct": 68,
  "wind_speed": 14,
  "wind_speed_unit": "km/h",
  "wind_dir": "SE",
  "description": "Mostly sunny",
  "rain_chance_pct": 5,
  "uv_index": 6,
  "is_day": true,
  "alerts": [],
  "source": "open-meteo",
  "retrieved_at": "2026-04-17T12:00:00.000Z"
}

Sky Style Docs — always in sync with skystyle.app/api/v1