curl --request POST \
--url http://pinpoint.devops.arabiaweather.com/forecast \
--header 'Content-Type: application/json' \
--data '
{
"parameters": [
"<string>"
],
"daily_parameters": [
"<string>"
],
"locations": [
{
"id": "<string>",
"lat": 123,
"lng": 123
}
],
"cache": true,
"start": "now",
"interval": 24,
"daily": true,
"segments": "false",
"hourly": true,
"overrides": true,
"nowcast": false,
"step": 1,
"timezone": "<string>",
"model": "default",
"hijri": false,
"info": false
}
'{
"locations": [
{
"id": "<string>",
"info": {
"name": {
"en": "<string>",
"ar": "<string>"
},
"lat": 123,
"lng": 123,
"timezone": "<string>",
"elevation": 123,
"countryCode": "<string>",
"regionId": "<string>"
},
"hourly": [
{
"time": 123,
"period_of_day": "morning",
"is_day": true,
"local_time": "2023-11-07T05:31:56Z",
"data": {}
}
],
"daily": [
{
"date": "2023-12-25",
"day_time": {},
"night_time": {},
"hijri": {}
}
],
"segments": [
{}
]
}
]
}POST version of the forecast endpoint, allowing for more customization
curl --request POST \
--url http://pinpoint.devops.arabiaweather.com/forecast \
--header 'Content-Type: application/json' \
--data '
{
"parameters": [
"<string>"
],
"daily_parameters": [
"<string>"
],
"locations": [
{
"id": "<string>",
"lat": 123,
"lng": 123
}
],
"cache": true,
"start": "now",
"interval": 24,
"daily": true,
"segments": "false",
"hourly": true,
"overrides": true,
"nowcast": false,
"step": 1,
"timezone": "<string>",
"model": "default",
"hijri": false,
"info": false
}
'{
"locations": [
{
"id": "<string>",
"info": {
"name": {
"en": "<string>",
"ar": "<string>"
},
"lat": 123,
"lng": 123,
"timezone": "<string>",
"elevation": 123,
"countryCode": "<string>",
"regionId": "<string>"
},
"hourly": [
{
"time": 123,
"period_of_day": "morning",
"is_day": true,
"local_time": "2023-11-07T05:31:56Z",
"data": {}
}
],
"daily": [
{
"date": "2023-12-25",
"day_time": {},
"night_time": {},
"hijri": {}
}
],
"segments": [
{}
]
}
]
}List of weather parameters to include
List of daily-only weather parameters to include
List of locations to get forecasts for
Show child attributes
Whether to use the current cache if available (default: true). Setting cache=false will invalidate the cache and return fresh data.
Start time for the forecast
Forecast interval in hours
Whether to include daily forecast overview
Segmented overview mode
true, false, day, 3hrs, 6hrs Whether to include hourly forecasts
Whether to apply overrides to the forecast data
Whether to include nowcast data
Time step in hours
Timezone to use for the forecast
Weather model to use
Whether to include Hijri date information
Whether to include location information
Weather forecast data
Show child attributes