cURL
curl --request POST \
--url https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy \
--header 'Content-Type: application/json' \
--data '
{
"end_date": "2023-11-07T05:31:56Z",
"parameters": [
"<string>"
],
"run_lag": 123,
"start_date": "2023-11-07T05:31:56Z",
"stations": [
"<string>"
],
"include_archives": true,
"include_observations": true,
"overrides": [
{
"datetime": "2023-11-07T05:31:56Z",
"clouds.total_cover": 123,
"surface.temperature": 123,
"surface.visibility": 123,
"surface.wind_direction": 123,
"surface.wind_speed": 123
}
],
"thresholds": {}
}
'import requests
url = "https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy"
payload = {
"end_date": "2023-11-07T05:31:56Z",
"parameters": ["<string>"],
"run_lag": 123,
"start_date": "2023-11-07T05:31:56Z",
"stations": ["<string>"],
"include_archives": True,
"include_observations": True,
"overrides": [
{
"datetime": "2023-11-07T05:31:56Z",
"clouds.total_cover": 123,
"surface.temperature": 123,
"surface.visibility": 123,
"surface.wind_direction": 123,
"surface.wind_speed": 123
}
],
"thresholds": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
end_date: '2023-11-07T05:31:56Z',
parameters: ['<string>'],
run_lag: 123,
start_date: '2023-11-07T05:31:56Z',
stations: ['<string>'],
include_archives: true,
include_observations: true,
overrides: [
{
datetime: '2023-11-07T05:31:56Z',
'clouds.total_cover': 123,
'surface.temperature': 123,
'surface.visibility': 123,
'surface.wind_direction': 123,
'surface.wind_speed': 123
}
],
thresholds: {}
})
};
fetch('https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'end_date' => '2023-11-07T05:31:56Z',
'parameters' => [
'<string>'
],
'run_lag' => 123,
'start_date' => '2023-11-07T05:31:56Z',
'stations' => [
'<string>'
],
'include_archives' => true,
'include_observations' => true,
'overrides' => [
[
'datetime' => '2023-11-07T05:31:56Z',
'clouds.total_cover' => 123,
'surface.temperature' => 123,
'surface.visibility' => 123,
'surface.wind_direction' => 123,
'surface.wind_speed' => 123
]
],
'thresholds' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy"
payload := strings.NewReader("{\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"parameters\": [\n \"<string>\"\n ],\n \"run_lag\": 123,\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"stations\": [\n \"<string>\"\n ],\n \"include_archives\": true,\n \"include_observations\": true,\n \"overrides\": [\n {\n \"datetime\": \"2023-11-07T05:31:56Z\",\n \"clouds.total_cover\": 123,\n \"surface.temperature\": 123,\n \"surface.visibility\": 123,\n \"surface.wind_direction\": 123,\n \"surface.wind_speed\": 123\n }\n ],\n \"thresholds\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy")
.header("Content-Type", "application/json")
.body("{\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"parameters\": [\n \"<string>\"\n ],\n \"run_lag\": 123,\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"stations\": [\n \"<string>\"\n ],\n \"include_archives\": true,\n \"include_observations\": true,\n \"overrides\": [\n {\n \"datetime\": \"2023-11-07T05:31:56Z\",\n \"clouds.total_cover\": 123,\n \"surface.temperature\": 123,\n \"surface.visibility\": 123,\n \"surface.wind_direction\": 123,\n \"surface.wind_speed\": 123\n }\n ],\n \"thresholds\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"parameters\": [\n \"<string>\"\n ],\n \"run_lag\": 123,\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"stations\": [\n \"<string>\"\n ],\n \"include_archives\": true,\n \"include_observations\": true,\n \"overrides\": [\n {\n \"datetime\": \"2023-11-07T05:31:56Z\",\n \"clouds.total_cover\": 123,\n \"surface.temperature\": 123,\n \"surface.visibility\": 123,\n \"surface.wind_direction\": 123,\n \"surface.wind_speed\": 123\n }\n ],\n \"thresholds\": {}\n}"
response = http.request(request)
puts response.read_body{
"build": "<string>",
"data": {},
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}Reports
Post apireportsforecast accuracy
POST
/
api
/
reports
/
forecast-accuracy
cURL
curl --request POST \
--url https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy \
--header 'Content-Type: application/json' \
--data '
{
"end_date": "2023-11-07T05:31:56Z",
"parameters": [
"<string>"
],
"run_lag": 123,
"start_date": "2023-11-07T05:31:56Z",
"stations": [
"<string>"
],
"include_archives": true,
"include_observations": true,
"overrides": [
{
"datetime": "2023-11-07T05:31:56Z",
"clouds.total_cover": 123,
"surface.temperature": 123,
"surface.visibility": 123,
"surface.wind_direction": 123,
"surface.wind_speed": 123
}
],
"thresholds": {}
}
'import requests
url = "https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy"
payload = {
"end_date": "2023-11-07T05:31:56Z",
"parameters": ["<string>"],
"run_lag": 123,
"start_date": "2023-11-07T05:31:56Z",
"stations": ["<string>"],
"include_archives": True,
"include_observations": True,
"overrides": [
{
"datetime": "2023-11-07T05:31:56Z",
"clouds.total_cover": 123,
"surface.temperature": 123,
"surface.visibility": 123,
"surface.wind_direction": 123,
"surface.wind_speed": 123
}
],
"thresholds": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
end_date: '2023-11-07T05:31:56Z',
parameters: ['<string>'],
run_lag: 123,
start_date: '2023-11-07T05:31:56Z',
stations: ['<string>'],
include_archives: true,
include_observations: true,
overrides: [
{
datetime: '2023-11-07T05:31:56Z',
'clouds.total_cover': 123,
'surface.temperature': 123,
'surface.visibility': 123,
'surface.wind_direction': 123,
'surface.wind_speed': 123
}
],
thresholds: {}
})
};
fetch('https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'end_date' => '2023-11-07T05:31:56Z',
'parameters' => [
'<string>'
],
'run_lag' => 123,
'start_date' => '2023-11-07T05:31:56Z',
'stations' => [
'<string>'
],
'include_archives' => true,
'include_observations' => true,
'overrides' => [
[
'datetime' => '2023-11-07T05:31:56Z',
'clouds.total_cover' => 123,
'surface.temperature' => 123,
'surface.visibility' => 123,
'surface.wind_direction' => 123,
'surface.wind_speed' => 123
]
],
'thresholds' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy"
payload := strings.NewReader("{\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"parameters\": [\n \"<string>\"\n ],\n \"run_lag\": 123,\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"stations\": [\n \"<string>\"\n ],\n \"include_archives\": true,\n \"include_observations\": true,\n \"overrides\": [\n {\n \"datetime\": \"2023-11-07T05:31:56Z\",\n \"clouds.total_cover\": 123,\n \"surface.temperature\": 123,\n \"surface.visibility\": 123,\n \"surface.wind_direction\": 123,\n \"surface.wind_speed\": 123\n }\n ],\n \"thresholds\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy")
.header("Content-Type", "application/json")
.body("{\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"parameters\": [\n \"<string>\"\n ],\n \"run_lag\": 123,\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"stations\": [\n \"<string>\"\n ],\n \"include_archives\": true,\n \"include_observations\": true,\n \"overrides\": [\n {\n \"datetime\": \"2023-11-07T05:31:56Z\",\n \"clouds.total_cover\": 123,\n \"surface.temperature\": 123,\n \"surface.visibility\": 123,\n \"surface.wind_direction\": 123,\n \"surface.wind_speed\": 123\n }\n ],\n \"thresholds\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sahabah-prod.devops.arabiaweather.com/api/reports/forecast-accuracy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"end_date\": \"2023-11-07T05:31:56Z\",\n \"parameters\": [\n \"<string>\"\n ],\n \"run_lag\": 123,\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"stations\": [\n \"<string>\"\n ],\n \"include_archives\": true,\n \"include_observations\": true,\n \"overrides\": [\n {\n \"datetime\": \"2023-11-07T05:31:56Z\",\n \"clouds.total_cover\": 123,\n \"surface.temperature\": 123,\n \"surface.visibility\": 123,\n \"surface.wind_direction\": 123,\n \"surface.wind_speed\": 123\n }\n ],\n \"thresholds\": {}\n}"
response = http.request(request)
puts response.read_body{
"build": "<string>",
"data": {},
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}Body
application/json
Optional overrides for specific hours. When provided, values here will replace the corresponding forecast parameters for matching hours in the archives before analysis.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I

