{
"latitude": -6.2088,
"longitude": 106.8456,
"time": "2026-11-27T11:00:00Z",
"temperature_c": 25.8,
"wind_speed_ms": 2.9,
"wind_from_direction_deg": 153.6,
"relative_humidity_pct": 93.4,
"air_pressure_hpa": 1012.1,
"cloud_area_fraction_pct": 89.1,
"symbol_code": "rain",
"precipitation_next_1h_mm": 0.7,
"precipitation_next_6h_mm": 2.4,
"forecast_updated_at": "2026-11-27T09:20:27Z",
"attribution": "Data from MET Norway",
"source": "MET Norway Locationforecast 2.0 (live; cache sampai Expires upstream)"
}
curl --location --request GET 'https://zylalabs.com/api/15709/global+weather+forecast+api/42657/get+current+weather?lat=-6.2088&lon=106.8456' --header 'Authorization: Bearer YOUR_API_KEY'
{
"nama": "Global Weather Forecast API",
"versi": "1.0.0",
"deskripsi": "Cuaca saat ini + prakiraan per jam s.d. 9 hari ke depan untuk koordinat mana pun di dunia.",
"endpoints": [
"GET /weather/current?lat=-6.2088&lon=106.8456",
"GET /weather/forecast?lat=-6.2088&lon=106.8456&days=3",
"GET /openapi.json"
],
"sumber": "MET Norway Locationforecast 2.0 — api.met.no (gratis, tanpa key; lisensi CC BY 4.0, komersial diizinkan; atribusi 'Data from MET Norway')",
"harga": "Ditagih via Zyla API Hub (langganan di Zyla; plan Zyla: BASIC $24,99/500 req, PRO $49,99/10.000 req, PRO PLUS $99,99/50.000 req); akses lewat gateway Zyla (X-Zyla-Proxy-Secret)",
"auth": "X-Zyla-Proxy-Secret (gateway Zyla)"
}
curl --location --request GET 'https://zylalabs.com/api/15709/global+weather+forecast+api/42658/get+api+info' --header 'Authorization: Bearer YOUR_API_KEY'
{
"latitude": -6.2088,
"longitude": 106.8456,
"days_requested": 3,
"days_returned": 3,
"days": [
{
"date": "2026-11-27",
"temp_min_c": 25,
"temp_max_c": 28.4,
"precipitation_mm": 11.7,
"symbol_code": "rain",
"hours": [
{
"time": "2026-11-27T10:00:00Z",
"temperature_c": 28.4,
"wind_speed_ms": 1.9,
"wind_from_direction_deg": 25.8,
"relative_humidity_pct": 81.9,
"air_pressure_hpa": 1010.7,
"cloud_area_fraction_pct": 100,
"symbol_code": "heavyrain",
"precipitation_next_1h_mm": 9.2
},
{
"time": "2026-11-27T11:00:00Z",
"temperature_c": 25.8,
"wind_speed_ms": 2.9,
"wind_from_direction_deg": 153.6,
"relative_humidity_pct": 93.4,
"air_pressure_hpa": 1012.1,
"cloud_area_fraction_pct": 89.1,
"symbol_code": "rain",
"precipitation_next_1h_mm": 0.7
},
{
"time": "2026-11-27T12:00:00Z",
"temperature_c": 25.4,
"wind_speed_ms": 3.1,
"wind_from_direction_deg": 121.6,
"relative_humidity_pct": 95.8,
"air_pressure_hpa": 1012.7,
"cloud_area_fraction_pct": 89.8,
"symbol_code": "partlycloudy_night",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-27T13:00:00Z",
"temperature_c": 25.9,
"wind_speed_ms": 2.5,
"wind_from_direction_deg": 176.9,
"relative_humidity_pct": 93.5,
"air_pressure_hpa": 1013.4,
"cloud_area_fraction_pct": 85.2,
"symbol_code": "partlycloudy_night",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-27T14:00:00Z",
"temperature_c": 26.2,
"wind_speed_ms": 1.7,
"wind_from_direction_deg": 251.5,
"relative_humidity_pct": 92.3,
"air_pressure_hpa": 1014.2,
"cloud_area_fraction_pct": 90.6,
"symbol_code": "rain",
"precipitation_next_1h_mm": 0.5
},
{
"time": "2026-11-27T15:00:00Z",
"temperature_c": 25.9,
"wind_speed_ms": 1.6,
"wind_from_direction_deg": 201.2,
"relative_humidity_pct": 93,
"air_pressure_hpa": 1014.6,
"cloud_area_fraction_pct": 95.3,
"symbol_code": "rain",
"precipitation_next_1h_mm": 0.7
},
{
"time": "2026-11-27T16:00:00Z",
"temperature_c": 25.4,
"wind_speed_ms": 1.7,
"wind_from_direction_deg": 186.1,
"relative_humidity_pct": 95.4,
"air_pressure_hpa": 1014.4,
"cloud_area_fraction_pct": 92.2,
"symbol_code": "rain",
"precipitation_next_1h_mm": 0.6
},
{
"time": "2026-11-27T17:00:00Z",
"temperature_c": 25.3,
"wind_speed_ms": 1.8,
"wind_from_direction_deg": 125.4,
"relative_humidity_pct": 95.8,
"air_pressure_hpa": 1013.6,
"cloud_area_fraction_pct": 96.9,
"symbol_code": "partlycloudy_night",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-27T18:00:00Z",
"temperature_c": 25.1,
"wind_speed_ms": 1.8,
"wind_from_direction_deg": 202.6,
"relative_humidity_pct": 96,
"air_pressure_hpa": 1012.9,
"cloud_area_fraction_pct": 98.4,
"symbol_code": "cloudy",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-27T19:00:00Z",
"temperature_c": 25.2,
"wind_speed_ms": 0.8,
"wind_from_direction_deg": 247.8,
"relative_humidity_pct": 95.5,
"air_pressure_hpa": 1012.5,
"cloud_area_fraction_pct": 98.4,
"symbol_code": "partlycloudy_night",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-27T20:00:00Z",
"temperature_c": 25,
"wind_speed_ms": 0.8,
"wind_from_direction_deg": 278,
"relative_humidity_pct": 96.4,
"air_pressure_hpa": 1012.5,
"cloud_area_fraction_pct": 100,
"symbol_code": "cloudy",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-27T21:00:00Z",
"temperature_c": 25.1,
"wind_speed_ms": 1,
"wind_from_direction_deg": 317.4,
"relative_humidity_pct": 96,
"air_pressure_hpa": 1012.3,
"cloud_area_fraction_pct": 100,
"symbol_code": "cloudy",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-27T22:00:00Z",
"temperature_c": 25.3,
"wind_speed_ms": 0.7,
"wind_from_direction_deg": 281.8,
"relative_humidity_pct": 95.1,
"air_pressure_hpa": 1012.4,
"cloud_area_fraction_pct": 99.2,
"symbol_code": "partlycloudy_day",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-27T23:00:00Z",
"temperature_c": 25.5,
"wind_speed_ms": 1.7,
"wind_from_direction_deg": 173.1,
"relative_humidity_pct": 93.6,
"air_pressure_hpa": 1013,
"cloud_area_fraction_pct": 95.3,
"symbol_code": "partlycloudy_day",
"precipitation_next_1h_mm": 0
}
]
},
{
"date": "2026-11-28",
"temp_min_c": 23.9,
"temp_max_c": 30.4,
"precipitation_mm": 16.3,
"symbol_code": "heavyrain",
"hours": [
{
"time": "2026-11-28T00:00:00Z",
"temperature_c": 26,
"wind_speed_ms": 2.1,
"wind_from_direction_deg": 166.6,
"relative_humidity_pct": 91.6,
"air_pressure_hpa": 1013.8,
"cloud_area_fraction_pct": 96.9,
"symbol_code": "partlycloudy_day",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-28T01:00:00Z",
"temperature_c": 27.2,
"wind_speed_ms": 2.8,
"wind_from_direction_deg": 123.5,
"relative_humidity_pct": 85.8,
"air_pressure_hpa": 1014.4,
"cloud_area_fraction_pct": 94.5,
"symbol_code": "partlycloudy_day",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-28T02:00:00Z",
"temperature_c": 28.7,
"wind_speed_ms": 2.2,
"wind_from_direction_deg": 116.5,
"relative_humidity_pct": 78.1,
"air_pressure_hpa": 1014.9,
"cloud_area_fraction_pct": 82.8,
"symbol_code": "partlycloudy_day",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-28T03:00:00Z",
"temperature_c": 29.8,
"wind_speed_ms": 1.9,
"wind_from_direction_deg": 72.2,
"relative_humidity_pct": 73.9,
"air_pressure_hpa": 1014.3,
"cloud_area_fraction_pct": 73.4,
"symbol_code": "partlycloudy_day",
"precipitation_next_1h_mm": 0
},
{
"time": "2026-11-28T04:00:00Z",
"temperature_c": 30.4,
"wind_speed_ms": 2.6,
"wind_from_direction_deg": 31.3,
"relative_humidity_pct": 71.9,
"air_pressure_hpa": 1013.3
}
]
}
],
"_note": "Response truncated for documentation purposes"
}
curl --location --request GET 'https://zylalabs.com/api/15709/global+weather+forecast+api/42659/get+weather+forecast?lat=-6.2088&lon=106.8456&days=3' --header 'Authorization: Bearer YOUR_API_KEY'
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 Global Weather Forecast API simply include your bearer token in the Authorization header.
| 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.
Current weather + forecast up to 9 days, MET Norway data (CC BY 4.0, commercial use allowed)
The current weather endpoint returns conditions for the requested coordinates, including temperature, wind, precipitation, and cloud cover.
The forecast endpoint provides both hourly and daily forecast data for the requested location, covering up to nine days ahead.
Use `lat` and `lon` to specify the location. The forecast endpoint also accepts `days` to set the forecast length, such as `days=3`; forecasts can cover up to nine days.
The API uses MET Norway’s Locationforecast data and accepts latitude and longitude coordinates for locations around the world. Data availability may vary by location.
Weather data comes from MET Norway Locationforecast 2.0. When using the data, include the attribution “Data from MET Norway.”
Call the API Info endpoint to retrieve general API details, including its endpoint list and data source.
Check that the latitude and longitude are valid and that the requested forecast length is within the supported range. Handle unavailable fields as missing rather than assuming they have a value.
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.
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.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund