Weather UV Marine and Earthquake API

API ID 15733

Current conditions, hourly and daily forecasts, UV index, marine waves, computed heat index and feels-like, activity scoring (beach, fishing, outdoor work, drone, running), official US weather alerts

API Documentation

Endpoints

Request
Temperature, computed feels-like (wind chill, heat index or apparent temperature), dew point, humidity, pressure, cloud cover, wind, rain, UV index, a comfort label and a heat-risk level for a city or coordinates. The values are the forecast model value for the current hour (not a station reading). Units metric or imperial; condition text in English, Arabic or French. Data: MET Norway (CC BY 4.0), cached and refreshed per its Expires header. Add demo=true for bundled sample data. Nothing you send is stored or logged beyond a rounded-coordinate cache key (about 1 km) that holds public weather data, not customer data.
Endpoint ID: 42764
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42764/current+weather
INPUT PARAMETERS

Current Weather — Endpoint Features

Object Description
city Optional Parameter of this endpoint
demo Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

city
demo
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "location": {
            "city": {
                "id": "riyadh",
                "name_en": "Riyadh",
                "name_ar": "الرياض",
                "country": "SA"
            },
            "lat": 24.7136,
            "lng": 46.6753,
            "grid_lat": 24.71,
            "grid_lng": 46.68,
            "elevation_m": 12,
            "timezone": "Asia/Riyadh",
            "timezone_source": "city",
            "country": "SA",
            "notes": []
        },
        "units": {
            "system": "metric",
            "temperature": "°C",
            "wind_speed": "km/h",
            "precipitation": "mm",
            "pressure": "hPa",
            "wave_height": "m"
        },
        "current": {
            "time": "2026-11-29T06:00:00Z",
            "local_time": "2026-11-29T09:00:00+03:00",
            "is_day": true,
            "condition": {
                "code": "partlycloudy",
                "category": "partly_cloudy",
                "thunder": false,
                "text": "Partly cloudy",
                "texts": {
                    "en": "Partly cloudy",
                    "ar": "غائم جزئيًا",
                    "fr": "Partiellement nuageux"
                }
            },
            "temperature": 20.1,
            "feels_like": 17.8,
            "feels_like_method": "apparent",
            "heat_index": null,
            "wind_chill": null,
            "dew_point": 10.9,
            "humidity": 54,
            "pressure": 1012,
            "cloud_cover": 43,
            "wind_speed": 12.6,
            "wind_gust": 23.4,
            "wind_direction_deg": 320,
            "wind_direction": "NW",
            "wind_direction_text": "NW",
            "precipitation_next_hour": 0,
            "precipitation_probability": 0,
            "uv_index": 5.1,
            "uv_level": "moderate",
            "uv_label": "Moderate",
            "comfort": {
                "level": "comfortable",
                "text": "Comfortable"
            },
            "heat_risk": {
                "level": "none",
                "text": "No heat risk"
            }
        },
        "source": {
            "id": "demo",
            "name": "Bundled sample data",
            "license": "Synthetic sample data, not a real forecast",
            "attribution": "Demo mode: synthetic sample data.",
            "url": null,
            "updated_at": "2026-11-29T06:00:00Z",
            "fetched_at": "2026-11-29T06:14:28.661Z",
            "cache": "demo",
            "stale": false,
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_ccd5515c4a48043b",
        "version": "v1"
    }
}
Current Weather — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42764/current+weather?city=riyadh&demo=true' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Hour by hour forecast for the next 1 to 72 hours (about 60 hours are available hourly): condition, temperature, feels-like, dew point, humidity, wind and gusts, rain amount and probability, thunder probability and UV. Times are given in UTC and in the local zone. Nothing you send is stored or logged beyond a rounded-coordinate cache key (about 1 km) that holds public weather data, not customer data.
Endpoint ID: 42765
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42765/hourly+forecast
INPUT PARAMETERS

Hourly Forecast — Endpoint Features

Object Description
city Optional Parameter of this endpoint
lang Optional Parameter of this endpoint
demo Optional Parameter of this endpoint
hours Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

city
lang
demo
hours
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "location": {
            "city": {
                "id": "dubai",
                "name_en": "Dubai",
                "name_ar": "دبي",
                "country": "AE"
            },
            "lat": 25.2048,
            "lng": 55.2708,
            "grid_lat": 25.2,
            "grid_lng": 55.27,
            "elevation_m": 12,
            "timezone": "Asia/Dubai",
            "timezone_source": "city",
            "country": "AE",
            "notes": []
        },
        "units": {
            "system": "metric",
            "temperature": "°C",
            "wind_speed": "km/h",
            "precipitation": "mm",
            "pressure": "hPa",
            "wave_height": "m"
        },
        "count": 12,
        "hours": [
            {
                "time": "2026-11-29T06:00:00Z",
                "local_time": "2026-11-29T10:00:00+04:00",
                "is_day": true,
                "condition": {
                    "code": "partlycloudy",
                    "category": "partly_cloudy",
                    "thunder": false,
                    "text": "غائم جزئيًا",
                    "texts": {
                        "en": "Partly cloudy",
                        "ar": "غائم جزئيًا",
                        "fr": "Partiellement nuageux"
                    }
                },
                "temperature": 20.7,
                "feels_like": 18.3,
                "dew_point": 10.9,
                "humidity": 51,
                "pressure": 1012,
                "cloud_cover": 44,
                "wind_speed": 12.6,
                "wind_gust": 23.4,
                "wind_direction_deg": 320,
                "wind_direction": "NW",
                "wind_direction_text": "شمال غرب",
                "precipitation": 0,
                "precipitation_probability": 0,
                "thunder_probability": 0,
                "uv_index": 5.9,
                "uv_level": "moderate"
            },
            {
                "time": "2026-11-29T07:00:00Z",
                "local_time": "2026-11-29T11:00:00+04:00",
                "is_day": true,
                "condition": {
                    "code": "partlycloudy",
                    "category": "partly_cloudy",
                    "thunder": false,
                    "text": "غائم جزئيًا",
                    "texts": {
                        "en": "Partly cloudy",
                        "ar": "غائم جزئيًا",
                        "fr": "Partiellement nuageux"
                    }
                },
                "temperature": 22.2,
                "feels_like": 19.4,
                "dew_point": 11,
                "humidity": 44,
                "pressure": 1012,
                "cloud_cover": 44,
                "wind_speed": 13.7,
                "wind_gust": 24.8,
                "wind_direction_deg": 320,
                "wind_direction": "NW",
                "wind_direction_text": "شمال غرب",
                "precipitation": 0,
                "precipitation_probability": 0,
                "thunder_probability": 0,
                "uv_index": 7.1,
                "uv_level": "high"
            },
            {
                "time": "2026-11-29T08:00:00Z",
                "local_time": "2026-11-29T12:00:00+04:00",
                "is_day": true,
                "condition": {
                    "code": "partlycloudy",
                    "category": "partly_cloudy",
                    "thunder": false,
                    "text": "غائم جزئيًا",
                    "texts": {
                        "en": "Partly cloudy",
                        "ar": "غائم جزئيًا",
                        "fr": "Partiellement nuageux"
                    }
                },
                "temperature": 23.5,
                "feels_like": 20.3,
                "dew_point": 11.3,
                "humidity": 39,
                "pressure": 1012,
                "cloud_cover": 45,
                "wind_speed": 14.8,
                "wind_gust": 26.3,
                "wind_direction_deg": 320,
                "wind_direction": "NW",
                "wind_direction_text": "شمال غرب",
                "precipitation": 0,
                "precipitation_probability": 0,
                "thunder_probability": 0,
                "uv_index": 7.5,
                "uv_level": "high"
            },
            {
                "time": "2026-11-29T09:00:00Z",
                "local_time": "2026-11-29T13:00:00+04:00",
                "is_day": true,
                "condition": {
                    "code": "partlycloudy",
                    "category": "partly_cloudy",
                    "thunder": false,
                    "text": "غائم جزئيًا",
                    "texts": {
                        "en": "Partly cloudy",
                        "ar": "غائم جزئيًا",
                        "fr": "Partiellement nuageux"
                    }
                },
                "temperature": 24.6,
                "feels_like": 21.1,
                "dew_point": 11.4,
                "humidity": 34,
                "pressure": 1012,
                "cloud_cover": 45,
                "wind_speed": 15.5,
                "wind_gust": 27.4,
                "wind_direction_deg": 320,
                "wind_direction": "NW",
                "wind_direction_text": "شمال غرب",
                "precipitation": 0,
                "precipitation_probability": 0,
                "thunder_probability": 0,
                "uv_index": 7.2,
                "uv_level": "high"
            },
            {
                "time": "2026-11-29T10:00:00Z",
                "local_time": "2026-11-29T14:00:00+04:00",
                "is_day": true,
                "condition": {
                    "code": "partlycloudy",
                    "category": "partly_cloudy",
                    "thunder": false,
                    "text": "غائم جزئيًا",
                    "texts": {
                        "en": "Partly cloudy",
                        "ar": "غائم جزئيًا",
                        "fr": "Partiellement nuageux"
                    }
                },
                "temperature": 25.3,
                "feels_like": 21.4,
                "dew_point": 11.5,
                "humidity": 31,
                "pressure": 1012,
                "cloud_cover": 45,
                "wind_speed": 16.6,
                "wind_gust": 28.4,
                "wind_direction_deg": 320,
                "wind_direction": "NW",
                "wind_direction_text": "شمال غرب",
                "precipitation": 0,
                "precipitation_probability": 0,
                "thunder_probability": 0,
                "uv_index": 6.3,
                "uv_level": "high"
            },
            {
                "time": "2026-11-29T11:00:00Z",
                "local_time": "2026-11-29T15:00:00+04:00",
                "is_day": true,
                "condition": {
                    "code": "partlycloudy",
                    "category": "partly_cloudy",
                    "thunder": false,
                    "text": "غائم جزئيًا",
                    "texts": {
                        "en": "Partly cloudy",
                        "ar": "غائم جزئيًا",
                        "fr": "Partiellement nuageux"
                    }
                },
                "temperature": 25.6,
                "feels_like": 21.5,
                "dew_point": 11.6,
                "humidity": 30,
                "pressure": 1012,
                "cloud_cover": 44,
                "wind_speed": 17.3,
                "wind_gust": 29.5,
                "wind_direction_deg": 320,
                "wind_direction": "NW",
                "wind_direction_text": "شمال غرب",
                "precipitation": 0,
                "precipitation_probability": 0,
                "thunder_probability": 0,
                "uv_index": 4.7,
                "uv_level": "moderate"
            },
            {
                "time": "2026-11-29T12:00:00Z",
                "local_time": "2026-11-29T16:00:00+04:00",
                "is_day": true,
                "condition": {
                    "code": "partlycloudy",
                    "category": "partly_cloudy",
                    "thunder": false,
                    "text": "غائم جزئيًا",
                    "texts": {
                        "en": "Partly cloudy",
                        "ar": "غائم جزئيًا",
                        "fr": "Partiellement nuageux"
                    }
                },
                "temperature": 25.6,
                "feels_like": 21.4,
                "dew_point": 11.6,
                "humidity": 30,
                "pressure": 1012,
                "cloud_cover": 44,
                "wind_speed": 17.6,
                "wind_gust": 30.2,
                "wind_direction_deg": 320,
                "wind_direction": "NW",
                "wind_direction_text": "شمال غرب",
                "precipitation": 0,
                "precipitation_probability": 0,
                "thunder_probability": 0,
                "uv_index": 2.7,
                "uv_level": "low"
            },
            {
                "time": "2026-11-29T13:00:00Z",
                "local_time": "2026-11-29T17:00:00+04:00"
            }
        ]
    },
    "_note": "Response truncated for documentation purposes"
}
Hourly Forecast — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42765/hourly+forecast?city=dubai&lang=ar&demo=true&hours=12' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Up to 9 local days: representative condition, high and low, rain total and chance, strongest wind and gust, average humidity, peak UV, sunrise and sunset. UV is only available for roughly the first 4 days (hourly data); later days return null. Days are cut at local midnight of the zone. The first day may be partial (partial=true) and the last days are built from 6-hourly data, so their highs and lows are less precise. Nothing you send is stored or logged beyond a rounded-coordinate cache key (about 1 km) that holds public weather data, not customer data.
Endpoint ID: 42766
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42766/daily+forecast
INPUT PARAMETERS

Daily Forecast — Endpoint Features

Object Description
lat Optional Parameter of this endpoint
lng Optional Parameter of this endpoint
units Optional Parameter of this endpoint
demo Optional Parameter of this endpoint
days Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

lat
lng
units
demo
days
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "location": {
            "city": null,
            "lat": 30.0444,
            "lng": 31.2357,
            "grid_lat": 30.04,
            "grid_lng": 31.24,
            "elevation_m": 12,
            "timezone": "Africa/Cairo",
            "timezone_source": "nearest_city:cairo",
            "country": "EG",
            "notes": []
        },
        "units": {
            "system": "imperial",
            "temperature": "°F",
            "wind_speed": "mph",
            "precipitation": "in",
            "pressure": "inHg",
            "wave_height": "ft"
        },
        "count": 5,
        "days": [
            {
                "date": "2026-11-29",
                "condition": {
                    "code": "partlycloudy",
                    "category": "partly_cloudy",
                    "thunder": false,
                    "text": "Partly cloudy",
                    "texts": {
                        "en": "Partly cloudy",
                        "ar": "غائم جزئيًا",
                        "fr": "Partiellement nuageux"
                    }
                },
                "temperature_max": 79.7,
                "temperature_min": 52.5,
                "precipitation_total": 0,
                "precipitation_probability_max": 0,
                "wind_speed_max": 11.2,
                "wind_gust_max": 19,
                "humidity_average": 45,
                "uv_index_max": 6.7,
                "uv_level": "high",
                "sunrise": "2026-11-29T04:31:35.791Z",
                "sunset": "2026-11-29T14:54:50.256Z",
                "hours_covered": 16,
                "partial": true
            },
            {
                "date": "2026-11-30",
                "condition": {
                    "code": "partlycloudy",
                    "category": "partly_cloudy",
                    "thunder": false,
                    "text": "Partly cloudy",
                    "texts": {
                        "en": "Partly cloudy",
                        "ar": "غائم جزئيًا",
                        "fr": "Partiellement nuageux"
                    }
                },
                "temperature_max": 79.7,
                "temperature_min": 47.3,
                "precipitation_total": 0,
                "precipitation_probability_max": 0,
                "wind_speed_max": 11.2,
                "wind_gust_max": 19,
                "humidity_average": 55,
                "uv_index_max": 6.8,
                "uv_level": "high",
                "sunrise": "2026-11-30T04:32:24.057Z",
                "sunset": "2026-11-30T14:54:45.324Z",
                "hours_covered": 24,
                "partial": false
            },
            {
                "date": "2026-12-01",
                "condition": {
                    "code": "rain",
                    "category": "rain",
                    "thunder": false,
                    "text": "Rain",
                    "texts": {
                        "en": "Rain",
                        "ar": "أمطار",
                        "fr": "Pluie"
                    }
                },
                "temperature_max": 78.3,
                "temperature_min": 47.3,
                "precipitation_total": 0.09,
                "precipitation_probability_max": 70,
                "wind_speed_max": 11.2,
                "wind_gust_max": 19,
                "humidity_average": 59,
                "uv_index_max": 7,
                "uv_level": "high",
                "sunrise": "2026-12-01T04:33:11.946Z",
                "sunset": "2026-12-01T14:54:42.112Z",
                "hours_covered": 24,
                "partial": false
            },
            {
                "date": "2026-12-02",
                "condition": {
                    "code": "clearsky",
                    "category": "clear",
                    "thunder": false,
                    "text": "Clear sky",
                    "texts": {
                        "en": "Clear sky",
                        "ar": "سماء صافية",
                        "fr": "Ciel dégagé"
                    }
                },
                "temperature_max": 79.3,
                "temperature_min": 47.7,
                "precipitation_total": 0,
                "precipitation_probability_max": 0,
                "wind_speed_max": 8.5,
                "wind_gust_max": 15.7,
                "humidity_average": 55,
                "uv_index_max": 5.2,
                "uv_level": "moderate",
                "sunrise": "2026-12-02T04:33:59.415Z",
                "sunset": "2026-12-02T14:54:40.618Z",
                "hours_covered": 24,
                "partial": false
            },
            {
                "date": "2026-12-03",
                "condition": {
                    "code": "clearsky",
                    "category": "clear",
                    "thunder": false,
                    "text": "Clear sky",
                    "texts": {
                        "en": "Clear sky",
                        "ar": "سماء صافية",
                        "fr": "Ciel dégagé"
                    }
                },
                "temperature_max": 79.3,
                "temperature_min": 47.7,
                "precipitation_total": 0,
                "precipitation_probability_max": 0,
                "wind_speed_max": 10.7,
                "wind_gust_max": 18.3,
                "humidity_average": 55,
                "uv_index_max": 5.2,
                "uv_level": "moderate",
                "sunrise": "2026-12-03T04:34:46.421Z",
                "sunset": "2026-12-03T14:54:40.838Z",
                "hours_covered": 24,
                "partial": false
            }
        ],
        "source": {
            "id": "demo",
            "name": "Bundled sample data",
            "license": "Synthetic sample data, not a real forecast",
            "attribution": "Demo mode: synthetic sample data.",
            "url": null,
            "updated_at": "2026-11-29T06:00:00Z",
            "fetched_at": "2026-11-29T06:15:05.555Z",
            "cache": "demo",
            "stale": false,
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_535f63d709667f3c",
        "version": "v1"
    }
}
Daily Forecast — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42766/daily+forecast?lat=30.0444&lng=31.2357&units=imperial&demo=true&days=5' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
UV index now (clear-sky value from the model, reduced for cloud cover), its level and advice in your language, today's peak with its time, and the hourly curve for the rest of the local day. Levels follow the WHO scale: low, moderate, high, very high, extreme. Nothing you send is stored or logged beyond a rounded-coordinate cache key (about 1 km) that holds public weather data, not customer data.
Endpoint ID: 42767
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42767/uv+index
INPUT PARAMETERS

UV Index — Endpoint Features

Object Description
demo Optional Parameter of this endpoint
city Optional Parameter of this endpoint
lang Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

demo
city
lang
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "location": {
            "city": {
                "id": "jeddah",
                "name_en": "Jeddah",
                "name_ar": "جدة",
                "country": "SA"
            },
            "lat": 21.5433,
            "lng": 39.1728,
            "grid_lat": 21.54,
            "grid_lng": 39.17,
            "elevation_m": 12,
            "timezone": "Asia/Riyadh",
            "timezone_source": "city",
            "country": "SA",
            "notes": []
        },
        "current": {
            "time": "2026-11-29T06:00:00Z",
            "uv_index": 4.5,
            "uv_index_clear_sky": 4.7,
            "level": "moderate",
            "label": "Modéré",
            "advice": "Portez des lunettes et de la crème solaire ; cherchez l'ombre à midi.",
            "cloud_cover": 43
        },
        "peak_today": {
            "time": "2026-11-29T09:00:00Z",
            "local_time": "2026-11-29T12:00:00+03:00",
            "uv_index": 8.2,
            "level": "very_high",
            "label": "Très élevé",
            "advice": "Évitez le soleil à midi ; couvrez-vous et utilisez SPF 50."
        },
        "hourly": [
            {
                "time": "2026-11-29T06:00:00Z",
                "local_time": "2026-11-29T09:00:00+03:00",
                "uv_index": 4.5,
                "uv_index_clear_sky": 4.7,
                "level": "moderate",
                "label": "Modéré",
                "cloud_cover": 43
            },
            {
                "time": "2026-11-29T07:00:00Z",
                "local_time": "2026-11-29T10:00:00+03:00",
                "uv_index": 6.4,
                "uv_index_clear_sky": 6.7,
                "level": "high",
                "label": "Élevé",
                "cloud_cover": 44
            },
            {
                "time": "2026-11-29T08:00:00Z",
                "local_time": "2026-11-29T11:00:00+03:00",
                "uv_index": 7.6,
                "uv_index_clear_sky": 8,
                "level": "high",
                "label": "Élevé",
                "cloud_cover": 44
            },
            {
                "time": "2026-11-29T09:00:00Z",
                "local_time": "2026-11-29T12:00:00+03:00",
                "uv_index": 8.2,
                "uv_index_clear_sky": 8.6,
                "level": "very_high",
                "label": "Très élevé",
                "cloud_cover": 45
            },
            {
                "time": "2026-11-29T10:00:00Z",
                "local_time": "2026-11-29T13:00:00+03:00",
                "uv_index": 7.9,
                "uv_index_clear_sky": 8.3,
                "level": "high",
                "label": "Élevé",
                "cloud_cover": 45
            },
            {
                "time": "2026-11-29T11:00:00Z",
                "local_time": "2026-11-29T14:00:00+03:00",
                "uv_index": 6.9,
                "uv_index_clear_sky": 7.3,
                "level": "high",
                "label": "Élevé",
                "cloud_cover": 45
            },
            {
                "time": "2026-11-29T12:00:00Z",
                "local_time": "2026-11-29T15:00:00+03:00",
                "uv_index": 5.2,
                "uv_index_clear_sky": 5.5,
                "level": "moderate",
                "label": "Modéré",
                "cloud_cover": 44
            },
            {
                "time": "2026-11-29T13:00:00Z",
                "local_time": "2026-11-29T16:00:00+03:00",
                "uv_index": 3.2,
                "uv_index_clear_sky": 3.4,
                "level": "moderate",
                "label": "Modéré",
                "cloud_cover": 44
            },
            {
                "time": "2026-11-29T14:00:00Z",
                "local_time": "2026-11-29T17:00:00+03:00",
                "uv_index": 1.1,
                "uv_index_clear_sky": 1.1,
                "level": "low",
                "label": "Faible",
                "cloud_cover": 43
            },
            {
                "time": "2026-11-29T15:00:00Z",
                "local_time": "2026-11-29T18:00:00+03:00",
                "uv_index": 0,
                "uv_index_clear_sky": 0,
                "level": "low",
                "label": "Faible",
                "cloud_cover": 41
            },
            {
                "time": "2026-11-29T16:00:00Z",
                "local_time": "2026-11-29T19:00:00+03:00",
                "uv_index": 0,
                "uv_index_clear_sky": 0,
                "level": "low",
                "label": "Faible",
                "cloud_cover": 40
            },
            {
                "time": "2026-11-29T17:00:00Z",
                "local_time": "2026-11-29T20:00:00+03:00",
                "uv_index": 0,
                "uv_index_clear_sky": 0,
                "level": "low",
                "label": "Faible",
                "cloud_cover": 38
            },
            {
                "time": "2026-11-29T18:00:00Z",
                "local_time": "2026-11-29T21:00:00+03:00",
                "uv_index": 0,
                "uv_index_clear_sky": 0,
                "level": "low",
                "label": "Faible",
                "cloud_cover": 36
            },
            {
                "time": "2026-11-29T19:00:00Z",
                "local_time": "2026-11-29T22:00:00+03:00",
                "uv_index": 0,
                "uv_index_clear_sky": 0,
                "level": "low",
                "label": "Faible",
                "cloud_cover": 34
            },
            {
                "time": "2026-11-29T20:00:00Z",
                "local_time": "2026-11-29T23:00:00+03:00",
                "uv_index": 0,
                "uv_index_clear_sky": 0,
                "level": "low",
                "label": "Faible",
                "cloud_cover": 31
            }
        ],
        "source": {
            "id": "demo",
            "name": "Bundled sample data",
            "license": "Synthetic sample data, not a real forecast",
            "attribution": "Demo mode: synthetic sample data.",
            "url": null,
            "updated_at": "2026-11-29T06:00:00Z",
            "fetched_at": "2026-11-29T06:15:22.277Z",
            "cache": "demo",
            "stale": false,
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_e5e4845c94bb533e",
        "version": "v1"
    }
}
UV Index — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42767/uv+index?demo=true&city=jeddah&lang=fr' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Wave height, direction and period, sea state, sea surface temperature and current speed hour by hour for sea points (MET Norway ocean model). Coverage is Northern and Western Europe seas only (the upstream does not cover the Mediterranean, Red Sea or Gulf); points on land or outside that area return 404 no_marine_data. Use demo=true to see the response shape anywhere. Wave heights in metres or feet; current speed in km/h or mph. Nothing you send is stored or logged beyond a rounded-coordinate cache key (about 1 km) that holds public weather data, not customer data.
Endpoint ID: 42768
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42768/marine+forecast
INPUT PARAMETERS

Marine Forecast — Endpoint Features

Object Description
lat Optional Parameter of this endpoint
lng Optional Parameter of this endpoint
demo Optional Parameter of this endpoint
hours Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

lat
lng
demo
hours
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "location": {
            "city": null,
            "lat": 60.39,
            "lng": 5.1,
            "grid_lat": 60.39,
            "grid_lng": 5.1,
            "elevation_m": null,
            "timezone": "Etc/UTC",
            "timezone_source": "estimated_from_longitude",
            "country": "NO",
            "notes": [
                "timezone_estimated_from_longitude_send_timezone_for_dst"
            ]
        },
        "units": {
            "system": "metric",
            "temperature": "°C",
            "wind_speed": "km/h",
            "precipitation": "mm",
            "pressure": "hPa",
            "wave_height": "m"
        },
        "current": {
            "time": "2026-11-29T06:00:00Z",
            "local_time": "2026-11-29T06:00:00+00:00",
            "wave_height": 0.7,
            "wave_direction_deg": 340,
            "wave_direction": "NNW",
            "wave_period_s": 5.2,
            "sea_state": "smooth",
            "sea_state_text": "Smooth",
            "sea_temperature": 27.5,
            "current_speed": 0.7
        },
        "count": 24,
        "hours": [
            {
                "time": "2026-11-29T06:00:00Z",
                "local_time": "2026-11-29T06:00:00+00:00",
                "wave_height": 0.7,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.5,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T07:00:00Z",
                "local_time": "2026-11-29T07:00:00+00:00",
                "wave_height": 0.7,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.5,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T08:00:00Z",
                "local_time": "2026-11-29T08:00:00+00:00",
                "wave_height": 0.8,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.5,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T09:00:00Z",
                "local_time": "2026-11-29T09:00:00+00:00",
                "wave_height": 0.8,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.6,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T10:00:00Z",
                "local_time": "2026-11-29T10:00:00+00:00",
                "wave_height": 0.9,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.6,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T11:00:00Z",
                "local_time": "2026-11-29T11:00:00+00:00",
                "wave_height": 0.9,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.6,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T12:00:00Z",
                "local_time": "2026-11-29T12:00:00+00:00",
                "wave_height": 0.9,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.6,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T13:00:00Z",
                "local_time": "2026-11-29T13:00:00+00:00",
                "wave_height": 0.9,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.7,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T14:00:00Z",
                "local_time": "2026-11-29T14:00:00+00:00",
                "wave_height": 1,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.7,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T15:00:00Z",
                "local_time": "2026-11-29T15:00:00+00:00",
                "wave_height": 1,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.7,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T16:00:00Z",
                "local_time": "2026-11-29T16:00:00+00:00",
                "wave_height": 1,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.7,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T17:00:00Z",
                "local_time": "2026-11-29T17:00:00+00:00",
                "wave_height": 1,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.8,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T18:00:00Z",
                "local_time": "2026-11-29T18:00:00+00:00",
                "wave_height": 1,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.8,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T19:00:00Z",
                "local_time": "2026-11-29T19:00:00+00:00",
                "wave_height": 1,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.8,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T20:00:00Z",
                "local_time": "2026-11-29T20:00:00+00:00",
                "wave_height": 1,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.8,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T21:00:00Z",
                "local_time": "2026-11-29T21:00:00+00:00",
                "wave_height": 1,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.9,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T22:00:00Z",
                "local_time": "2026-11-29T22:00:00+00:00",
                "wave_height": 1,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.9,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-29T23:00:00Z",
                "local_time": "2026-11-29T23:00:00+00:00",
                "wave_height": 1,
                "wave_direction_deg": 340,
                "wave_direction": "NNW",
                "wave_period_s": 5.2,
                "sea_state": "smooth",
                "sea_state_text": "Smooth",
                "sea_temperature": 27.9,
                "current_speed": 0.7
            },
            {
                "time": "2026-11-30T00:00:00Z",
                "local_time": "2026-11-30T00:00:00+00:00",
                "wave_height": 1
            }
        ]
    },
    "_note": "Response truncated for documentation purposes"
}
Marine Forecast — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42768/marine+forecast?lat=60.39&lng=5.1&demo=true&hours=24' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Computes dew point, heat index (US NWS Rothfusz regression), wind chill (NWS and Environment Canada formula), apparent temperature (Steadman) and one feels-like value from temperature, humidity and wind you send, with a comfort label and a heat-risk level in your language. Pure calculation: no upstream call, nothing stored. Inputs and outputs use the units you choose.
Endpoint ID: 42769
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42769/comfort+index
INPUT PARAMETERS

Comfort Index — Endpoint Features

Object Description
temperature Required Parameter of this endpoint
humidity Optional Parameter of this endpoint
wind_speed Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

temperature
humidity
wind_speed
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "units": {
            "system": "metric",
            "temperature": "°C",
            "wind_speed": "km/h",
            "precipitation": "mm",
            "pressure": "hPa",
            "wave_height": "m"
        },
        "temperature": 38,
        "humidity": 55,
        "wind_speed": 10,
        "feels_like": 51.6,
        "feels_like_method": "heat_index",
        "heat_index": 51.6,
        "wind_chill": null,
        "apparent_temperature": 44,
        "dew_point": 27.4,
        "comfort": {
            "level": "oppressive",
            "text": "Oppressive"
        },
        "heat_risk": {
            "level": "danger",
            "text": "Danger: heat exhaustion likely, heat stroke possible"
        }
    },
    "meta": {
        "request_id": "req_f82c11999707b980",
        "version": "v1"
    }
}
Comfort Index — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42769/comfort+index?temperature=38&humidity=55&wind_speed=10' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
The activities supported by GET /activity with their names and scoring rules in English, Arabic and French.
Endpoint ID: 42770
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42770/activity+list
INPUT PARAMETERS

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "count": 5,
        "activities": [
            {
                "id": "beach",
                "name": {
                    "en": "Beach and swimming",
                    "ar": "الشاطئ والسباحة",
                    "fr": "Plage et baignade"
                },
                "rules": {
                    "en": "Feels-like 24 to 36 C is best; wind under 25 km/h; dry; waves under 1 m; no thunder.",
                    "ar": "الأفضل حرارة محسوسة بين 24 و36 مئوية، ورياح أقل من 25 كم/س، وطقس جاف، وأمواج أقل من متر، دون رعد.",
                    "fr": "Ressenti de 24 à 36 C, vent sous 25 km/h, temps sec, vagues sous 1 m, pas d'orage."
                }
            },
            {
                "id": "fishing",
                "name": {
                    "en": "Fishing (boat or shore)",
                    "ar": "الصيد (قارب أو شاطئ)",
                    "fr": "Pêche (bateau ou rivage)"
                },
                "rules": {
                    "en": "Wind under 25 km/h, waves under 1 m, little rain, mild temperature, no thunder.",
                    "ar": "رياح أقل من 25 كم/س، وأمواج أقل من متر، ومطر قليل، وحرارة معتدلة، دون رعد.",
                    "fr": "Vent sous 25 km/h, vagues sous 1 m, peu de pluie, température douce, pas d'orage."
                }
            },
            {
                "id": "outdoor_work",
                "name": {
                    "en": "Outdoor work and construction",
                    "ar": "العمل الخارجي والبناء",
                    "fr": "Travail en extérieur et chantier"
                },
                "rules": {
                    "en": "Feels-like 5 to 30 C is comfortable, above 35 C is a heat risk; wind under 40 km/h; dry; no thunder.",
                    "ar": "الحرارة المحسوسة من 5 إلى 30 مئوية مريحة وفوق 35 خطر حرارة، ورياح أقل من 40 كم/س، وجاف، دون رعد.",
                    "fr": "Ressenti de 5 à 30 C confortable, au-dessus de 35 C risque de chaleur ; vent sous 40 km/h ; sec ; pas d'orage."
                }
            },
            {
                "id": "drone",
                "name": {
                    "en": "Drone flight",
                    "ar": "تشغيل الطائرات المسيّرة",
                    "fr": "Vol de drone"
                },
                "rules": {
                    "en": "Wind under 20 km/h and gusts under 30 km/h, no rain, no fog, 0 to 40 C, daylight preferred.",
                    "ar": "رياح أقل من 20 كم/س وهبّات أقل من 30 كم/س، دون مطر أو ضباب، من 0 إلى 40 مئوية، ويفضّل النهار.",
                    "fr": "Vent sous 20 km/h, rafales sous 30 km/h, ni pluie ni brouillard, 0 à 40 C, de préférence de jour."
                }
            },
            {
                "id": "running",
                "name": {
                    "en": "Running and outdoor exercise",
                    "ar": "الجري والتمارين الخارجية",
                    "fr": "Course et sport en extérieur"
                },
                "rules": {
                    "en": "Feels-like 6 to 20 C is ideal, above 30 C is hard; dew point under 16 C; wind under 25 km/h; dry.",
                    "ar": "الأفضل حرارة محسوسة بين 6 و20 مئوية، وفوق 30 صعب، ونقطة ندى أقل من 16، ورياح أقل من 25 كم/س، وجاف.",
                    "fr": "Ressenti de 6 à 20 C idéal, au-dessus de 30 C difficile ; point de rosée sous 16 C ; vent sous 25 km/h ; sec."
                }
            }
        ]
    },
    "meta": {
        "request_id": "req_19b2b305474599dd",
        "version": "v1"
    }
}
Activity List — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42770/activity+list' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Scores every forecast hour from 0 to 100 for beach, fishing, outdoor_work, drone or running, with a rating (excellent, good, fair, poor, not_recommended), the reasons in your language and the best consecutive window. Scores combine feels-like temperature, wind and gusts, rain, thunder risk, waves (beach and fishing, only where an ocean forecast exists: Northern and Western Europe seas), fog, dew point, UV and daylight; thunder caps the score. Rules are listed at GET /activities. Nothing you send is stored or logged beyond a rounded-coordinate cache key (about 1 km) that holds public weather data, not customer data.
Endpoint ID: 42771
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42771/activity+score
INPUT PARAMETERS

Activity Score — Endpoint Features

Object Description
city Optional Parameter of this endpoint
demo Optional Parameter of this endpoint
activity Required Parameter of this endpoint
hours Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

city
demo
activity
hours
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "location": {
            "city": {
                "id": "jeddah",
                "name_en": "Jeddah",
                "name_ar": "جدة",
                "country": "SA"
            },
            "lat": 21.5433,
            "lng": 39.1728,
            "grid_lat": 21.54,
            "grid_lng": 39.17,
            "elevation_m": 12,
            "timezone": "Asia/Riyadh",
            "timezone_source": "city",
            "country": "SA",
            "notes": []
        },
        "units": {
            "system": "metric",
            "temperature": "°C",
            "wind_speed": "km/h",
            "precipitation": "mm",
            "pressure": "hPa",
            "wave_height": "m"
        },
        "activity": {
            "id": "beach",
            "name": "Beach and swimming",
            "rules": "Feels-like 24 to 36 C is best; wind under 25 km/h; dry; waves under 1 m; no thunder."
        },
        "now": {
            "time": "2026-11-29T06:00:00Z",
            "local_time": "2026-11-29T09:00:00+03:00",
            "score": 57,
            "rating": "fair",
            "rating_text": "Fair",
            "reasons": [
                {
                    "code": "too_cold",
                    "text": "Too cold"
                }
            ]
        },
        "best_window": {
            "start": "2026-11-29T11:00:00Z",
            "end": "2026-11-29T14:00:00Z",
            "local_start": "2026-11-29T14:00:00+03:00",
            "local_end": "2026-11-29T17:00:00+03:00",
            "hours": 3,
            "average_score": 100
        },
        "marine_used": true,
        "count": 24,
        "hours": [
            {
                "time": "2026-11-29T06:00:00Z",
                "local_time": "2026-11-29T09:00:00+03:00",
                "score": 57,
                "rating": "fair",
                "rating_text": "Fair",
                "reasons": [
                    {
                        "code": "too_cold",
                        "text": "Too cold"
                    }
                ]
            },
            {
                "time": "2026-11-29T07:00:00Z",
                "local_time": "2026-11-29T10:00:00+03:00",
                "score": 67,
                "rating": "good",
                "rating_text": "Good",
                "reasons": [
                    {
                        "code": "too_cold",
                        "text": "Too cold"
                    }
                ]
            },
            {
                "time": "2026-11-29T08:00:00Z",
                "local_time": "2026-11-29T11:00:00+03:00",
                "score": 77,
                "rating": "good",
                "rating_text": "Good",
                "reasons": [
                    {
                        "code": "too_cold",
                        "text": "Too cold"
                    }
                ]
            },
            {
                "time": "2026-11-29T09:00:00Z",
                "local_time": "2026-11-29T12:00:00+03:00",
                "score": 85,
                "rating": "excellent",
                "rating_text": "Excellent",
                "reasons": [
                    {
                        "code": "high_uv",
                        "text": "High UV, protect your skin"
                    }
                ]
            },
            {
                "time": "2026-11-29T10:00:00Z",
                "local_time": "2026-11-29T13:00:00+03:00",
                "score": 91,
                "rating": "excellent",
                "rating_text": "Excellent",
                "reasons": [
                    {
                        "code": "ideal",
                        "text": "Conditions are ideal"
                    }
                ]
            },
            {
                "time": "2026-11-29T11:00:00Z",
                "local_time": "2026-11-29T14:00:00+03:00",
                "score": 100,
                "rating": "excellent",
                "rating_text": "Excellent",
                "reasons": [
                    {
                        "code": "ideal",
                        "text": "Conditions are ideal"
                    }
                ]
            },
            {
                "time": "2026-11-29T12:00:00Z",
                "local_time": "2026-11-29T15:00:00+03:00",
                "score": 100,
                "rating": "excellent",
                "rating_text": "Excellent",
                "reasons": [
                    {
                        "code": "ideal",
                        "text": "Conditions are ideal"
                    }
                ]
            },
            {
                "time": "2026-11-29T13:00:00Z",
                "local_time": "2026-11-29T16:00:00+03:00",
                "score": 100,
                "rating": "excellent",
                "rating_text": "Excellent",
                "reasons": [
                    {
                        "code": "ideal",
                        "text": "Conditions are ideal"
                    }
                ]
            },
            {
                "time": "2026-11-29T14:00:00Z",
                "local_time": "2026-11-29T17:00:00+03:00",
                "score": 100,
                "rating": "excellent",
                "rating_text": "Excellent",
                "reasons": [
                    {
                        "code": "ideal",
                        "text": "Conditions are ideal"
                    }
                ]
            },
            {
                "time": "2026-11-29T15:00:00Z",
                "local_time": "2026-11-29T18:00:00+03:00",
                "score": 45,
                "rating": "fair",
                "rating_text": "Fair",
                "reasons": [
                    {
                        "code": "night",
                        "text": "After dark"
                    }
                ]
            },
            {
                "time": "2026-11-29T16:00:00Z",
                "local_time": "2026-11-29T19:00:00+03:00",
                "score": 45,
                "rating": "fair",
                "rating_text": "Fair",
                "reasons": [
                    {
                        "code": "too_cold",
                        "text": "Too cold"
                    },
                    {
                        "code": "night",
                        "text": "After dark"
                    }
                ]
            },
            {
                "time": "2026-11-29T17:00:00Z",
                "local_time": "2026-11-29T20:00:00+03:00",
                "score": 45,
                "rating": "fair",
                "rating_text": "Fair",
                "reasons": [
                    {
                        "code": "too_cold",
                        "text": "Too cold"
                    },
                    {
                        "code": "night",
                        "text": "After dark"
                    }
                ]
            },
            {
                "time": "2026-11-29T18:00:00Z",
                "local_time": "2026-11-29T21:00:00+03:00",
                "score": 45,
                "rating": "fair",
                "rating_text": "Fair",
                "reasons": [
                    {
                        "code": "too_cold",
                        "text": "Too cold"
                    },
                    {
                        "code": "night",
                        "text": "After dark"
                    }
                ]
            },
            {
                "time": "2026-11-29T19:00:00Z",
                "local_time": "2026-11-29T22:00:00+03:00",
                "score": 45,
                "rating": "fair",
                "rating_text": "Fair",
                "reasons": [
                    {
                        "code": "too_cold",
                        "text": "Too cold"
                    },
                    {
                        "code": "night",
                        "text": "After dark"
                    }
                ]
            },
            {
                "time": "2026-11-29T20:00:00Z",
                "local_time": "2026-11-29T23:00:00+03:00",
                "score": 37,
                "rating": "poor",
                "rating_text": "Poor",
                "reasons": [
                    {
                        "code": "too_cold",
                        "text": "Too cold"
                    },
                    {
                        "code": "night",
                        "text": "After dark"
                    }
                ]
            },
            {
                "time": "2026-11-29T21:00:00Z",
                "local_time": "2026-11-30T00:00:00+03:00",
                "score": 32,
                "rating": "poor",
                "rating_text": "Poor",
                "reasons": [
                    {
                        "code": "too_cold",
                        "text": "Too cold"
                    },
                    {
                        "code": "night",
                        "text": "After dark"
                    }
                ]
            },
            {
                "time": "2026-11-29T22:00:00Z",
                "local_time": "2026-11-30T01:00:00+03:00",
                "score": 32,
                "rating": "poor",
                "rating_text": "Poor"
            }
        ]
    },
    "_note": "Response truncated for documentation purposes"
}
Activity Score — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42771/activity+score?city=jeddah&demo=true&activity=beach&hours=24' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Official active weather alerts for a point from the US National Weather Service (public domain). Coverage is the United States and territories only: elsewhere the response has covered=false and an empty list, never an error. The alert text (headline, description, instruction) is the official English text; severity is also given in Arabic and French. Nothing you send is stored or logged beyond a rounded-coordinate cache key (about 1 km) that holds public weather data, not customer data.
Endpoint ID: 42772
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42772/weather+alerts
INPUT PARAMETERS

Weather Alerts — Endpoint Features

Object Description
lat Optional Parameter of this endpoint
lng Optional Parameter of this endpoint
demo Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

lat
lng
demo
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "location": {
            "city": null,
            "lat": 29.76,
            "lng": -95.37,
            "grid_lat": 29.76,
            "grid_lng": -95.37,
            "elevation_m": null,
            "timezone": "America/Chicago",
            "timezone_source": "nearest_city:houston",
            "country": "US",
            "notes": []
        },
        "covered": true,
        "coverage": "United States and territories",
        "count": 1,
        "alerts": [
            {
                "id": "urn:oid:demo.alert.1",
                "event": "Heat Advisory",
                "headline": "Heat Advisory (demo sample, not a real alert)",
                "description": "Sample alert returned in demo mode. Hot conditions with heat index values up to 41 C are possible.",
                "instruction": "Drink plenty of fluids and limit time outdoors in the afternoon.",
                "severity": "moderate",
                "severity_text": "Moderate",
                "certainty": "likely",
                "urgency": "expected",
                "status": "Actual",
                "sender": "Demo sample",
                "area": "Demo area",
                "effective": "2026-11-29T04:17:05.084Z",
                "onset": "2026-11-29T06:17:05.084Z",
                "expires": "2026-11-29T16:17:05.084Z",
                "ends": "2026-11-29T16:17:05.084Z"
            }
        ],
        "source": {
            "id": "demo",
            "name": "Bundled sample data",
            "license": "Synthetic sample data, not a real forecast",
            "attribution": "Demo mode: synthetic sample data.",
            "url": null,
            "updated_at": null,
            "fetched_at": "2026-11-29T06:17:05.087Z",
            "cache": "demo",
            "stale": false,
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_5a540a0ae93f5bc1",
        "version": "v1"
    }
}
Weather Alerts — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42772/weather+alerts?lat=29.76&lng=-95.37&demo=true' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Sunrise, sunset, solar noon, civil, nautical and astronomical twilight and day length for a date (default today) at a city or coordinates, computed in-process with the same solar engine as the Calendar API. Polar day and polar night are reported. No upstream call.
Endpoint ID: 42773
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42773/sun+times
INPUT PARAMETERS

Sun Times — Endpoint Features

Object Description
city Optional Parameter of this endpoint
date Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

city
date
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "location": {
            "city": {
                "id": "riyadh",
                "name_en": "Riyadh",
                "name_ar": "الرياض",
                "country": "SA"
            },
            "lat": 24.7136,
            "lng": 46.6753,
            "grid_lat": 24.71,
            "grid_lng": 46.68,
            "elevation_m": null,
            "timezone": "Asia/Riyadh",
            "timezone_source": "city",
            "country": "SA",
            "notes": []
        },
        "date": "2026-11-26",
        "sunrise": {
            "time": "06:17",
            "local": "2026-11-26T06:17:01+03:00",
            "utc": "2026-11-26T03:17:01.387Z"
        },
        "sunset": {
            "time": "17:03",
            "local": "2026-11-26T17:03:52+03:00",
            "utc": "2026-11-26T14:03:52.893Z"
        },
        "solar_noon": {
            "time": "11:40",
            "local": "2026-11-26T11:40:32+03:00",
            "utc": "2026-11-26T08:40:32.480Z"
        },
        "civil_dawn": {
            "time": "05:52",
            "local": "2026-11-26T05:52:33+03:00",
            "utc": "2026-11-26T02:52:33.449Z"
        },
        "civil_dusk": {
            "time": "17:28",
            "local": "2026-11-26T17:28:21+03:00",
            "utc": "2026-11-26T14:28:21.046Z"
        },
        "nautical_dawn": {
            "time": "05:24",
            "local": "2026-11-26T05:24:36+03:00",
            "utc": "2026-11-26T02:24:36.215Z"
        },
        "nautical_dusk": {
            "time": "17:56",
            "local": "2026-11-26T17:56:18+03:00",
            "utc": "2026-11-26T14:56:18.537Z"
        },
        "astronomical_dawn": {
            "time": "04:57",
            "local": "2026-11-26T04:57:02+03:00",
            "utc": "2026-11-26T01:57:02.288Z"
        },
        "astronomical_dusk": {
            "time": "18:23",
            "local": "2026-11-26T18:23:52+03:00",
            "utc": "2026-11-26T15:23:52.722Z"
        },
        "day_length_minutes": 647,
        "polar": "none"
    },
    "meta": {
        "request_id": "req_6f6c27e4163ffced",
        "version": "v1"
    }
}
Sun Times — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42773/sun+times?city=riyadh&date=2026-11-26' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Every condition code the forecast routes can return (clearsky, fair, partlycloudy, cloudy, fog and all rain, sleet and snow variants with showers and thunder), with a broad category and texts in English, Arabic and French. Icons follow the MET Norway weather symbol set (code plus _day or _night).
Endpoint ID: 42774
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42774/condition+codes
INPUT PARAMETERS

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "count": 41,
        "codes": [
            {
                "code": "clearsky",
                "category": "clear",
                "thunder": false,
                "text": {
                    "en": "Clear sky",
                    "ar": "سماء صافية",
                    "fr": "Ciel dégagé"
                }
            },
            {
                "code": "fair",
                "category": "clear",
                "thunder": false,
                "text": {
                    "en": "Fair",
                    "ar": "صحو إلى حد كبير",
                    "fr": "Plutôt beau"
                }
            },
            {
                "code": "partlycloudy",
                "category": "partly_cloudy",
                "thunder": false,
                "text": {
                    "en": "Partly cloudy",
                    "ar": "غائم جزئيًا",
                    "fr": "Partiellement nuageux"
                }
            },
            {
                "code": "cloudy",
                "category": "cloudy",
                "thunder": false,
                "text": {
                    "en": "Cloudy",
                    "ar": "غائم",
                    "fr": "Nuageux"
                }
            },
            {
                "code": "fog",
                "category": "fog",
                "thunder": false,
                "text": {
                    "en": "Fog",
                    "ar": "ضباب",
                    "fr": "Brouillard"
                }
            },
            {
                "code": "lightrain",
                "category": "rain",
                "thunder": false,
                "text": {
                    "en": "Light rain",
                    "ar": "أمطار خفيفة",
                    "fr": "Pluie faible"
                }
            },
            {
                "code": "lightrainandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Light rain with thunder",
                    "ar": "أمطار خفيفة مع رعد",
                    "fr": "Pluie faible avec orage"
                }
            },
            {
                "code": "rain",
                "category": "rain",
                "thunder": false,
                "text": {
                    "en": "Rain",
                    "ar": "أمطار",
                    "fr": "Pluie"
                }
            },
            {
                "code": "rainandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Rain with thunder",
                    "ar": "أمطار مع رعد",
                    "fr": "Pluie avec orage"
                }
            },
            {
                "code": "heavyrain",
                "category": "rain",
                "thunder": false,
                "text": {
                    "en": "Heavy rain",
                    "ar": "أمطار غزيرة",
                    "fr": "Forte pluie"
                }
            },
            {
                "code": "heavyrainandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Heavy rain with thunder",
                    "ar": "أمطار غزيرة مع رعد",
                    "fr": "Forte pluie avec orage"
                }
            },
            {
                "code": "lightrainshowers",
                "category": "rain",
                "thunder": false,
                "text": {
                    "en": "Light rain showers",
                    "ar": "زخات مطر خفيفة",
                    "fr": "Averses faibles"
                }
            },
            {
                "code": "lightrainshowersandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Light rain showers with thunder",
                    "ar": "زخات مطر خفيفة مع رعد",
                    "fr": "Averses faibles avec orage"
                }
            },
            {
                "code": "rainshowers",
                "category": "rain",
                "thunder": false,
                "text": {
                    "en": "Rain showers",
                    "ar": "زخات مطر",
                    "fr": "Averses"
                }
            },
            {
                "code": "rainshowersandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Rain showers with thunder",
                    "ar": "زخات مطر مع رعد",
                    "fr": "Averses avec orage"
                }
            },
            {
                "code": "heavyrainshowers",
                "category": "rain",
                "thunder": false,
                "text": {
                    "en": "Heavy rain showers",
                    "ar": "زخات مطر غزيرة",
                    "fr": "Fortes averses"
                }
            },
            {
                "code": "heavyrainshowersandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Heavy rain showers with thunder",
                    "ar": "زخات مطر غزيرة مع رعد",
                    "fr": "Fortes averses avec orage"
                }
            },
            {
                "code": "lightsleet",
                "category": "sleet",
                "thunder": false,
                "text": {
                    "en": "Light sleet",
                    "ar": "مطر متجمد خفيف",
                    "fr": "Neige fondue faible"
                }
            },
            {
                "code": "lightsleetandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Light sleet with thunder",
                    "ar": "مطر متجمد خفيف مع رعد",
                    "fr": "Neige fondue faible avec orage"
                }
            },
            {
                "code": "sleet",
                "category": "sleet",
                "thunder": false,
                "text": {
                    "en": "Sleet",
                    "ar": "مطر متجمد",
                    "fr": "Neige fondue"
                }
            },
            {
                "code": "sleetandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Sleet with thunder",
                    "ar": "مطر متجمد مع رعد",
                    "fr": "Neige fondue avec orage"
                }
            },
            {
                "code": "heavysleet",
                "category": "sleet",
                "thunder": false,
                "text": {
                    "en": "Heavy sleet",
                    "ar": "مطر متجمد غزير",
                    "fr": "Forte neige fondue"
                }
            },
            {
                "code": "heavysleetandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Heavy sleet with thunder",
                    "ar": "مطر متجمد غزير مع رعد",
                    "fr": "Forte neige fondue avec orage"
                }
            },
            {
                "code": "lightsleetshowers",
                "category": "sleet",
                "thunder": false,
                "text": {
                    "en": "Light sleet showers",
                    "ar": "زخات مطر متجمد خفيفة",
                    "fr": "Averses faibles de neige fondue"
                }
            },
            {
                "code": "lightsleetshowersandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Light sleet showers with thunder",
                    "ar": "زخات مطر متجمد خفيفة مع رعد",
                    "fr": "Averses faibles de neige fondue avec orage"
                }
            },
            {
                "code": "sleetshowers",
                "category": "sleet",
                "thunder": false,
                "text": {
                    "en": "Sleet showers",
                    "ar": "زخات مطر متجمد",
                    "fr": "Averses de neige fondue"
                }
            },
            {
                "code": "sleetshowersandthunder",
                "category": "thunderstorm",
                "thunder": true,
                "text": {
                    "en": "Sleet showers with thunder",
                    "ar": "زخات مطر متجمد مع رعد",
                    "fr": "Averses de neige fondue avec orage"
                }
            },
            {
                "code": "heavysleetshowers",
                "category": "sleet",
                "thunder": false,
                "text": {
                    "en": "Heavy sleet showers",
                    "ar": "زخات مطر متجمد غزيرة"
                }
            }
        ]
    },
    "_note": "Response truncated for documentation purposes"
}
Condition Codes — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42774/condition+codes' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Earthquakes within a radius of a city or coordinates, filtered by minimum magnitude and look-back period, with distance from the point, depth, USGS PAGER alert level and tsunami flag. Data: USGS Earthquake Hazards Program (public domain), cached 1 to 10 minutes. Magnitudes of recent events can be revised. Nothing you send is stored or logged beyond a rounded-coordinate cache key (about 1 km) that holds public weather data, not customer data.
Endpoint ID: 42775
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42775/recent+earthquakes
INPUT PARAMETERS

Recent Earthquakes — Endpoint Features

Object Description
radius_km Optional Parameter of this endpoint
min_magnitude Optional Parameter of this endpoint
hours Optional Parameter of this endpoint
demo Optional Parameter of this endpoint
lat Optional Parameter of this endpoint
lng Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

radius_km
min_magnitude
hours
demo
lat
lng
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "location": {
            "city": null,
            "lat": 35.2,
            "lng": 25.1,
            "grid_lat": 35.2,
            "grid_lng": 25.1,
            "elevation_m": null,
            "timezone": "Etc/GMT-2",
            "timezone_source": "estimated_from_longitude",
            "country": null,
            "notes": [
                "timezone_estimated_from_longitude_send_timezone_for_dst"
            ]
        },
        "radius_km": 800,
        "min_magnitude": 3,
        "hours": 72,
        "count": 1,
        "earthquakes": [
            {
                "id": "demo0005",
                "magnitude": 4.9,
                "magnitude_type": "mww",
                "magnitude_class": "light",
                "title": "M 4.9 - Crete, Greece",
                "place": "Crete, Greece",
                "time": "2026-11-28T00:17:58.881Z",
                "updated": "2026-11-28T00:27:58.881Z",
                "lat": 35.2,
                "lng": 25.1,
                "depth_km": 22,
                "distance_km": 0,
                "url": "https://earthquake.usgs.gov/earthquakes/eventpage/demo0005",
                "detail_url": "https://earthquake.usgs.gov/fdsnws/event/1/query?eventid=demo0005&format=geojson",
                "felt": null,
                "mmi": null,
                "cdi": null,
                "pager_alert": null,
                "tsunami": false,
                "significance": 490,
                "status": "reviewed",
                "network": "demo"
            }
        ],
        "source": {
            "id": "demo",
            "name": "Bundled sample data",
            "license": "Synthetic sample data, not a real forecast",
            "attribution": "Demo mode: synthetic sample data.",
            "url": null,
            "updated_at": null,
            "fetched_at": "2026-11-29T06:17:58.881Z",
            "cache": "demo",
            "stale": false,
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_668323ecee061430",
        "version": "v1"
    }
}
Recent Earthquakes — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42775/recent+earthquakes?radius_km=800&min_magnitude=3&hours=72&demo=true&lat=35.2&lng=25.1' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
ISO codes, names in English and Arabic and the bounding box used by GET /earthquakes/by-country. The boxes are rough rectangles: they include parts of neighbouring countries and sea.
Endpoint ID: 42776
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42776/earthquake+countries
INPUT PARAMETERS

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "count": 58,
        "countries": [
            {
                "code": "SA",
                "name_en": "Saudi Arabia",
                "name_ar": "السعودية",
                "bbox": {
                    "min_lat": 16.3,
                    "min_lng": 34.5,
                    "max_lat": 32.2,
                    "max_lng": 55.7
                }
            },
            {
                "code": "AE",
                "name_en": "United Arab Emirates",
                "name_ar": "الإمارات",
                "bbox": {
                    "min_lat": 22.6,
                    "min_lng": 51.5,
                    "max_lat": 26.1,
                    "max_lng": 56.4
                }
            },
            {
                "code": "EG",
                "name_en": "Egypt",
                "name_ar": "مصر",
                "bbox": {
                    "min_lat": 22,
                    "min_lng": 24.7,
                    "max_lat": 31.7,
                    "max_lng": 36.9
                }
            },
            {
                "code": "QA",
                "name_en": "Qatar",
                "name_ar": "قطر",
                "bbox": {
                    "min_lat": 24.4,
                    "min_lng": 50.7,
                    "max_lat": 26.2,
                    "max_lng": 51.7
                }
            },
            {
                "code": "KW",
                "name_en": "Kuwait",
                "name_ar": "الكويت",
                "bbox": {
                    "min_lat": 28.5,
                    "min_lng": 46.5,
                    "max_lat": 30.1,
                    "max_lng": 48.5
                }
            },
            {
                "code": "BH",
                "name_en": "Bahrain",
                "name_ar": "البحرين",
                "bbox": {
                    "min_lat": 25.8,
                    "min_lng": 50.3,
                    "max_lat": 26.3,
                    "max_lng": 50.8
                }
            },
            {
                "code": "OM",
                "name_en": "Oman",
                "name_ar": "عُمان",
                "bbox": {
                    "min_lat": 16.6,
                    "min_lng": 52,
                    "max_lat": 26.4,
                    "max_lng": 59.9
                }
            },
            {
                "code": "YE",
                "name_en": "Yemen",
                "name_ar": "اليمن",
                "bbox": {
                    "min_lat": 12.1,
                    "min_lng": 42.5,
                    "max_lat": 19,
                    "max_lng": 54.5
                }
            },
            {
                "code": "IQ",
                "name_en": "Iraq",
                "name_ar": "العراق",
                "bbox": {
                    "min_lat": 29,
                    "min_lng": 38.8,
                    "max_lat": 37.4,
                    "max_lng": 48.6
                }
            },
            {
                "code": "SY",
                "name_en": "Syria",
                "name_ar": "سوريا",
                "bbox": {
                    "min_lat": 32.3,
                    "min_lng": 35.7,
                    "max_lat": 37.3,
                    "max_lng": 42.4
                }
            },
            {
                "code": "JO",
                "name_en": "Jordan",
                "name_ar": "الأردن",
                "bbox": {
                    "min_lat": 29.2,
                    "min_lng": 34.9,
                    "max_lat": 33.4,
                    "max_lng": 39.3
                }
            },
            {
                "code": "LB",
                "name_en": "Lebanon",
                "name_ar": "لبنان",
                "bbox": {
                    "min_lat": 33,
                    "min_lng": 35.1,
                    "max_lat": 34.7,
                    "max_lng": 36.6
                }
            },
            {
                "code": "PS",
                "name_en": "Palestine",
                "name_ar": "فلسطين",
                "bbox": {
                    "min_lat": 31.2,
                    "min_lng": 34.2,
                    "max_lat": 32.6,
                    "max_lng": 35.6
                }
            },
            {
                "code": "LY",
                "name_en": "Libya",
                "name_ar": "ليبيا",
                "bbox": {
                    "min_lat": 19.5,
                    "min_lng": 9.3,
                    "max_lat": 33.2,
                    "max_lng": 25.2
                }
            },
            {
                "code": "TN",
                "name_en": "Tunisia",
                "name_ar": "تونس",
                "bbox": {
                    "min_lat": 30.2,
                    "min_lng": 7.5,
                    "max_lat": 37.6,
                    "max_lng": 11.6
                }
            },
            {
                "code": "DZ",
                "name_en": "Algeria",
                "name_ar": "الجزائر",
                "bbox": {
                    "min_lat": 18.9,
                    "min_lng": -8.7,
                    "max_lat": 37.1,
                    "max_lng": 12
                }
            },
            {
                "code": "MA",
                "name_en": "Morocco",
                "name_ar": "المغرب",
                "bbox": {
                    "min_lat": 27.6,
                    "min_lng": -13.2,
                    "max_lat": 35.9,
                    "max_lng": -1
                }
            },
            {
                "code": "SD",
                "name_en": "Sudan",
                "name_ar": "السودان",
                "bbox": {
                    "min_lat": 8.7,
                    "min_lng": 21.8,
                    "max_lat": 22.2,
                    "max_lng": 38.6
                }
            },
            {
                "code": "SO",
                "name_en": "Somalia",
                "name_ar": "الصومال",
                "bbox": {
                    "min_lat": -1.7,
                    "min_lng": 40.9,
                    "max_lat": 12,
                    "max_lng": 51.4
                }
            },
            {
                "code": "DJ",
                "name_en": "Djibouti",
                "name_ar": "جيبوتي",
                "bbox": {
                    "min_lat": 10.9,
                    "min_lng": 41.8,
                    "max_lat": 12.7,
                    "max_lng": 43.4
                }
            },
            {
                "code": "KM",
                "name_en": "Comoros",
                "name_ar": "جزر القمر",
                "bbox": {
                    "min_lat": -12.4,
                    "min_lng": 43.2,
                    "max_lat": -11.4,
                    "max_lng": 44.5
                }
            },
            {
                "code": "MR",
                "name_en": "Mauritania",
                "name_ar": "موريتانيا",
                "bbox": {
                    "min_lat": 14.7,
                    "min_lng": -17.1,
                    "max_lat": 27.3,
                    "max_lng": -4.8
                }
            },
            {
                "code": "TR",
                "name_en": "Turkey",
                "name_ar": "تركيا",
                "bbox": {
                    "min_lat": 35.8,
                    "min_lng": 26,
                    "max_lat": 42.1,
                    "max_lng": 44.8
                }
            },
            {
                "code": "IR",
                "name_en": "Iran",
                "name_ar": "إيران",
                "bbox": {
                    "min_lat": 25.1,
                    "min_lng": 44,
                    "max_lat": 39.8,
                    "max_lng": 63.3
                }
            },
            {
                "code": "IL",
                "name_en": "Israel",
                "name_ar": "إسرائيل",
                "bbox": {
                    "min_lat": 29.5,
                    "min_lng": 34.2,
                    "max_lat": 33.3,
                    "max_lng": 35.9
                }
            },
            {
                "code": "CY",
                "name_en": "Cyprus",
                "name_ar": "قبرص",
                "bbox": {
                    "min_lat": 34.6,
                    "min_lng": 32.2,
                    "max_lat": 35.7,
                    "max_lng": 34.6
                }
            },
            {
                "code": "GR",
                "name_en": "Greece",
                "name_ar": "اليونان",
                "bbox": {
                    "min_lat": 34.8,
                    "min_lng": 19.4,
                    "max_lat": 41.8,
                    "max_lng": 28.3
                }
            },
            {
                "code": "IT",
                "name_en": "Italy",
                "name_ar": "إيطاليا",
                "bbox": {
                    "min_lat": 36.6,
                    "min_lng": 6.6,
                    "max_lat": 47.1,
                    "max_lng": 18.5
                }
            },
            {
                "code": "ES",
                "name_en": "Spain",
                "name_ar": "إسبانيا",
                "bbox": {
                    "min_lat": 36
                }
            }
        ]
    },
    "_note": "Response truncated for documentation purposes"
}
Earthquake Countries — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42776/earthquake+countries' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Earthquakes inside the bounding box of a country (about 60 countries, see GET /earthquakes/countries). The box is a rectangle, so events just across a border or at sea can appear; use the place text and coordinates to refine. Data: USGS Earthquake Hazards Program (public domain), cached 1 to 10 minutes. Magnitudes of recent events can be revised.
Endpoint ID: 42777
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42777/earthquakes+by+country
INPUT PARAMETERS

Earthquakes By Country — Endpoint Features

Object Description
country Required Parameter of this endpoint
min_magnitude Optional Parameter of this endpoint
hours Optional Parameter of this endpoint
demo Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

country
min_magnitude
hours
demo
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "country": {
            "code": "TR",
            "name_en": "Turkey",
            "name_ar": "تركيا"
        },
        "min_magnitude": 4,
        "hours": 168,
        "count": 1,
        "earthquakes": [
            {
                "id": "demo0001",
                "magnitude": 5.4,
                "magnitude_type": "mww",
                "magnitude_class": "moderate",
                "title": "M 5.4 - 25 km SE of Malatya, Turkey",
                "place": "25 km SE of Malatya, Turkey",
                "time": "2026-11-29T03:18:43.053Z",
                "updated": "2026-11-29T03:28:43.053Z",
                "lat": 38.2,
                "lng": 38.5,
                "depth_km": 10,
                "distance_km": null,
                "url": "https://earthquake.usgs.gov/earthquakes/eventpage/demo0001",
                "detail_url": "https://earthquake.usgs.gov/fdsnws/event/1/query?eventid=demo0001&format=geojson",
                "felt": 120,
                "mmi": 5.1,
                "cdi": null,
                "pager_alert": "green",
                "tsunami": false,
                "significance": 540,
                "status": "reviewed",
                "network": "demo"
            }
        ],
        "source": {
            "id": "demo",
            "name": "Bundled sample data",
            "license": "Synthetic sample data, not a real forecast",
            "attribution": "Demo mode: synthetic sample data.",
            "url": null,
            "updated_at": null,
            "fetched_at": "2026-11-29T06:18:43.053Z",
            "cache": "demo",
            "stale": false,
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_38d9a41be9fd84d3",
        "version": "v1"
    }
}
Earthquakes By Country — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42777/earthquakes+by+country?country=TR&min_magnitude=4&hours=168&demo=true' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
One call for should I worry here?: looks at earthquakes within a radius over the last hours and returns a level (none, info, watch, warning, danger) from magnitude and distance, raised by a USGS PAGER alert, with the strongest and nearest events and a message in your language. alert is true from watch upward. This is a screening heuristic, not an official warning: follow your national authority. Data: USGS Earthquake Hazards Program (public domain), cached 1 to 10 minutes. Magnitudes of recent events can be revised. Nothing you send is stored or logged beyond a rounded-coordinate cache key (about 1 km) that holds public weather data, not customer data. Returns a JSON response with a unified structure.
Endpoint ID: 42778
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42778/earthquake+alert+check
INPUT PARAMETERS

Earthquake Alert Check — Endpoint Features

Object Description
lat Optional Parameter of this endpoint
lng Optional Parameter of this endpoint
radius_km Optional Parameter of this endpoint
min_magnitude Optional Parameter of this endpoint
hours Optional Parameter of this endpoint
demo Optional Parameter of this endpoint

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

lat
lng
radius_km
min_magnitude
hours
demo
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "location": {
            "city": null,
            "lat": 26.2,
            "lng": 56.3,
            "grid_lat": 26.2,
            "grid_lng": 56.3,
            "elevation_m": null,
            "timezone": "Asia/Dubai",
            "timezone_source": "nearest_city:ras-al-khaimah",
            "country": "AE",
            "notes": []
        },
        "radius_km": 300,
        "min_magnitude": 4,
        "hours": 48,
        "alert": true,
        "level": "danger",
        "message": "Major earthquake very close; damage is possible. Follow official guidance.",
        "events_considered": 1,
        "tsunami_flagged": false,
        "strongest": {
            "id": "demo0004",
            "magnitude": 6.1,
            "magnitude_type": "mww",
            "magnitude_class": "strong",
            "title": "M 6.1 - 60 km SE of Bandar Abbas, Iran",
            "place": "60 km SE of Bandar Abbas, Iran",
            "time": "2026-11-28T10:19:01.568Z",
            "updated": "2026-11-28T10:29:01.568Z",
            "lat": 26.9,
            "lng": 56.2,
            "depth_km": 18,
            "distance_km": 78.5,
            "url": "https://earthquake.usgs.gov/earthquakes/eventpage/demo0004",
            "detail_url": "https://earthquake.usgs.gov/fdsnws/event/1/query?eventid=demo0004&format=geojson",
            "felt": 120,
            "mmi": 5.1,
            "cdi": null,
            "pager_alert": "yellow",
            "tsunami": false,
            "significance": 610,
            "status": "reviewed",
            "network": "demo",
            "level": "danger"
        },
        "nearest": {
            "id": "demo0004",
            "magnitude": 6.1,
            "magnitude_type": "mww",
            "magnitude_class": "strong",
            "title": "M 6.1 - 60 km SE of Bandar Abbas, Iran",
            "place": "60 km SE of Bandar Abbas, Iran",
            "time": "2026-11-28T10:19:01.568Z",
            "updated": "2026-11-28T10:29:01.568Z",
            "lat": 26.9,
            "lng": 56.2,
            "depth_km": 18,
            "distance_km": 78.5,
            "url": "https://earthquake.usgs.gov/earthquakes/eventpage/demo0004",
            "detail_url": "https://earthquake.usgs.gov/fdsnws/event/1/query?eventid=demo0004&format=geojson",
            "felt": 120,
            "mmi": 5.1,
            "cdi": null,
            "pager_alert": "yellow",
            "tsunami": false,
            "significance": 610,
            "status": "reviewed",
            "network": "demo"
        },
        "events": [
            {
                "id": "demo0004",
                "magnitude": 6.1,
                "magnitude_type": "mww",
                "magnitude_class": "strong",
                "title": "M 6.1 - 60 km SE of Bandar Abbas, Iran",
                "place": "60 km SE of Bandar Abbas, Iran",
                "time": "2026-11-28T10:19:01.568Z",
                "updated": "2026-11-28T10:29:01.568Z",
                "lat": 26.9,
                "lng": 56.2,
                "depth_km": 18,
                "distance_km": 78.5,
                "url": "https://earthquake.usgs.gov/earthquakes/eventpage/demo0004",
                "detail_url": "https://earthquake.usgs.gov/fdsnws/event/1/query?eventid=demo0004&format=geojson",
                "felt": 120,
                "mmi": 5.1,
                "cdi": null,
                "pager_alert": "yellow",
                "tsunami": false,
                "significance": 610,
                "status": "reviewed",
                "network": "demo",
                "level": "danger"
            }
        ],
        "source": {
            "id": "demo",
            "name": "Bundled sample data",
            "license": "Synthetic sample data, not a real forecast",
            "attribution": "Demo mode: synthetic sample data.",
            "url": null,
            "updated_at": null,
            "fetched_at": "2026-11-29T06:19:01.568Z",
            "cache": "demo",
            "stale": false,
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_4176820069ddfe4b",
        "version": "v1"
    }
}
Earthquake Alert Check — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42778/earthquake+alert+check?lat=26.2&lng=56.3&radius_km=300&min_magnitude=4&hours=48&demo=true' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
One earthquake by its USGS event id (for example us6000abcd, taken from the list routes): magnitude, depth, place, time, felt reports, intensity, PAGER alert and tsunami flag. 404 event_not_found when the id does not exist. Data: USGS Earthquake Hazards Program (public domain), cached 1 to 10 minutes. Magnitudes of recent events can be revised.
Endpoint ID: 42779
GET https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42779/earthquake+details
INPUT PARAMETERS

Earthquake Details — Endpoint Features

Object Description
demo Optional Parameter of this endpoint
id Required

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

demo
API EXAMPLE RESPONSE
JSON
{
    "data": {
        "earthquake": {
            "id": "demo0004",
            "magnitude": 6.1,
            "magnitude_type": "mww",
            "magnitude_class": "strong",
            "title": "M 6.1 - 60 km SE of Bandar Abbas, Iran",
            "place": "60 km SE of Bandar Abbas, Iran",
            "time": "2026-11-28T10:19:17.997Z",
            "updated": "2026-11-28T10:29:17.997Z",
            "lat": 26.9,
            "lng": 56.2,
            "depth_km": 18,
            "distance_km": null,
            "url": "https://earthquake.usgs.gov/earthquakes/eventpage/demo0004",
            "detail_url": "https://earthquake.usgs.gov/fdsnws/event/1/query?eventid=demo0004&format=geojson",
            "felt": 120,
            "mmi": 5.1,
            "cdi": null,
            "pager_alert": "yellow",
            "tsunami": false,
            "significance": 610,
            "status": "reviewed",
            "network": "demo"
        },
        "source": {
            "id": "demo",
            "name": "Bundled sample data",
            "license": "Synthetic sample data, not a real forecast",
            "attribution": "Demo mode: synthetic sample data.",
            "url": null,
            "updated_at": null,
            "fetched_at": "2026-11-29T06:19:17.997Z",
            "cache": "demo",
            "stale": false,
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_12227c1db5f0ac0b",
        "version": "v1"
    }
}
Earthquake Details — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15733/weather+uv+marine+and+earthquake+api/42779/earthquake+details?demo=true&id=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Weather UV Marine and Earthquake API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

Current conditions, hourly and daily forecasts, UV index, marine waves, computed heat index and feels-like, activity scoring (beach, fishing, outdoor work, drone, running), official US weather alerts

Weather UV Marine and Earthquake API FAQs

The API provides current weather conditions, hourly forecasts, and daily forecasts. It also includes specialized data such as UV index, marine wave information, computed heat index, and 'feels-like' temperatures.

Yes, the API offers activity scoring for various outdoor pursuits including beach activities, fishing, outdoor work, drone operation, and running. This helps users plan their activities based on weather suitability.

Yes, the API provides official US weather alerts, ensuring users are informed about significant weather events that may impact safety or plans.

The API offers marine wave data, which is crucial for activities like boating, surfing, and other water-based recreation. This data helps in assessing sea conditions.

The API computes and provides the 'feels-like' temperature and the heat index. These values take into account factors like humidity and wind chill, offering a more accurate representation of how the temperature will actually be perceived.

The core value proposition is providing comprehensive, real-time, and forecast weather data, including specialized indices and activity scores, enabling users to make informed decisions for a wide range of personal and professional activities.

While specific formats are not detailed here, APIs of this nature typically return data in structured formats like JSON or XML, making it easy to parse and integrate into applications. Specific data fields would include temperature, humidity, wind speed, UV index, wave height, alert descriptions, and activity scores.

Developers can integrate this API by making HTTP requests to the API endpoints to retrieve weather data. The returned data can then be processed and displayed within web applications, mobile apps, or used to trigger automated actions based on specific weather conditions or alerts.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs