cURL
curl --request POST \
--url https://sahabah-prod.devops.arabiaweather.com/api/aviation/taf/parse \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"taf_code": "TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z"
}
'import requests
url = "https://sahabah-prod.devops.arabiaweather.com/api/aviation/taf/parse"
payload = { "taf_code": "TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z" }
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
taf_code: 'TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z'
})
};
fetch('https://sahabah-prod.devops.arabiaweather.com/api/aviation/taf/parse', 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/aviation/taf/parse",
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([
'taf_code' => 'TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$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/aviation/taf/parse"
payload := strings.NewReader("{\n \"taf_code\": \"TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
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/aviation/taf/parse")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"taf_code\": \"TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sahabah-prod.devops.arabiaweather.com/api/aviation/taf/parse")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taf_code\": \"TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z\"\n}"
response = http.request(request)
puts response.read_body{
"build": "<string>",
"data": {
"ast": {
"change_groups": [
{
"change_type": "From",
"conditions": {
"sky_conditions": [
{
"cover": "Few",
"cloud_type": "Cumulonimbus",
"height": 1
}
],
"temperature_extremes": [
{
"day": 1,
"hour": 1,
"temp_type": "Maximum",
"temperature": 123
}
],
"visibility": "Cavok",
"weather": [
{
"phenomena": [
"Drizzle"
],
"descriptor": "Shallow",
"intensity": "Light"
}
],
"wind": {
"direction": {
"Fixed": 1
},
"is_calm": true,
"is_high_speed": true,
"is_variable": true,
"speed": 1,
"unit": "KT",
"gust_speed": 1,
"variation": {
"from": 1,
"to": 1
}
},
"wind_shear": {
"direction": 1,
"height": {
"unit": "Feet",
"value": 1
},
"speed": 1,
"unit": "KT"
}
},
"time": {
"Precise": {
"day": 1,
"hour": 1,
"minute": 1
}
}
}
],
"issue_time": {
"day": 1,
"hour": 1,
"minute": 1
},
"main": {
"sky_conditions": [
{
"cover": "Few",
"cloud_type": "Cumulonimbus",
"height": 1
}
],
"temperature_extremes": [
{
"day": 1,
"hour": 1,
"temp_type": "Maximum",
"temperature": 123
}
],
"weather": [
{
"phenomena": [
"Drizzle"
],
"descriptor": "Shallow",
"intensity": "Light"
}
],
"wind": {
"direction": {
"Fixed": 1
},
"is_calm": true,
"is_high_speed": true,
"is_variable": true,
"speed": 1,
"unit": "KT",
"gust_speed": 1,
"variation": {
"from": 1,
"to": 1
}
},
"visibility": "Cavok",
"wind_shear": {
"direction": 1,
"height": {
"unit": "Feet",
"value": 1
},
"speed": 1,
"unit": "KT"
}
},
"report_type": "Metar",
"station": "<string>",
"validity_period": {
"end_day": 1,
"end_hour": 1,
"start_day": 1,
"start_hour": 1
},
"remarks": {
"content": "<string>"
}
}
},
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"build": "<string>",
"detail": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"type": "<string>",
"data": {
"count": 1,
"parsing_errors": [
{
"expected": [
"<string>"
],
"reason": {
"type": "uncategorized"
},
"span": {
"end": 1,
"start": 1
},
"found": "<string>"
}
]
}
}Aviation
Post apiaviationtafparse
POST
/
api
/
aviation
/
taf
/
parse
cURL
curl --request POST \
--url https://sahabah-prod.devops.arabiaweather.com/api/aviation/taf/parse \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"taf_code": "TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z"
}
'import requests
url = "https://sahabah-prod.devops.arabiaweather.com/api/aviation/taf/parse"
payload = { "taf_code": "TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z" }
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
taf_code: 'TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z'
})
};
fetch('https://sahabah-prod.devops.arabiaweather.com/api/aviation/taf/parse', 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/aviation/taf/parse",
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([
'taf_code' => 'TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$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/aviation/taf/parse"
payload := strings.NewReader("{\n \"taf_code\": \"TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
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/aviation/taf/parse")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"taf_code\": \"TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sahabah-prod.devops.arabiaweather.com/api/aviation/taf/parse")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taf_code\": \"TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z\"\n}"
response = http.request(request)
puts response.read_body{
"build": "<string>",
"data": {
"ast": {
"change_groups": [
{
"change_type": "From",
"conditions": {
"sky_conditions": [
{
"cover": "Few",
"cloud_type": "Cumulonimbus",
"height": 1
}
],
"temperature_extremes": [
{
"day": 1,
"hour": 1,
"temp_type": "Maximum",
"temperature": 123
}
],
"visibility": "Cavok",
"weather": [
{
"phenomena": [
"Drizzle"
],
"descriptor": "Shallow",
"intensity": "Light"
}
],
"wind": {
"direction": {
"Fixed": 1
},
"is_calm": true,
"is_high_speed": true,
"is_variable": true,
"speed": 1,
"unit": "KT",
"gust_speed": 1,
"variation": {
"from": 1,
"to": 1
}
},
"wind_shear": {
"direction": 1,
"height": {
"unit": "Feet",
"value": 1
},
"speed": 1,
"unit": "KT"
}
},
"time": {
"Precise": {
"day": 1,
"hour": 1,
"minute": 1
}
}
}
],
"issue_time": {
"day": 1,
"hour": 1,
"minute": 1
},
"main": {
"sky_conditions": [
{
"cover": "Few",
"cloud_type": "Cumulonimbus",
"height": 1
}
],
"temperature_extremes": [
{
"day": 1,
"hour": 1,
"temp_type": "Maximum",
"temperature": 123
}
],
"weather": [
{
"phenomena": [
"Drizzle"
],
"descriptor": "Shallow",
"intensity": "Light"
}
],
"wind": {
"direction": {
"Fixed": 1
},
"is_calm": true,
"is_high_speed": true,
"is_variable": true,
"speed": 1,
"unit": "KT",
"gust_speed": 1,
"variation": {
"from": 1,
"to": 1
}
},
"visibility": "Cavok",
"wind_shear": {
"direction": 1,
"height": {
"unit": "Feet",
"value": 1
},
"speed": 1,
"unit": "KT"
}
},
"report_type": "Metar",
"station": "<string>",
"validity_period": {
"end_day": 1,
"end_hour": 1,
"start_day": 1,
"start_hour": 1
},
"remarks": {
"content": "<string>"
}
}
},
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"build": "<string>",
"detail": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"type": "<string>",
"data": {
"count": 1,
"parsing_errors": [
{
"expected": [
"<string>"
],
"reason": {
"type": "uncategorized"
},
"span": {
"end": 1,
"start": 1
},
"found": "<string>"
}
]
}
}Headers
API key for authentication
Body
application/json
Example:
"TAF EGLL 150500Z 1506/1606 27010KT 8000 SCT030 TX20/1514Z TN10/1603Z TEMPO 1506/1509 25015G25KT 3000 SHRA BKN005 OVC010 PROB30 1518/1521 1500 +TSRA BKN003CB RMK NO THUNDERSTORMS EXPECTED AFTER 22Z"
⌘I

