curl --request GET \
--url https://production.yasmina.ai/api/v1/medical/products/networks \
--header 'Authorization: Bearer <token>'import requests
url = "https://production.yasmina.ai/api/v1/medical/products/networks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://production.yasmina.ai/api/v1/medical/products/networks', 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://production.yasmina.ai/api/v1/medical/products/networks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://production.yasmina.ai/api/v1/medical/products/networks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://production.yasmina.ai/api/v1/medical/products/networks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.yasmina.ai/api/v1/medical/products/networks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"insurance_provider": "tawuniya",
"category": "basic",
"network": {
"name": "Network 3",
"total": 907,
"facilities": {
"hospital": 137,
"pharmacy": 7,
"clinic": 591,
"optical": 39,
"other": 133
},
"provider_list_url": "https://api.yasmina.ai/api/v1/medical/products/networks?insurance_provider=tawuniya&category=basic"
},
"cities": [
"Abha",
"Dammam",
"Jeddah",
"Riyadh"
],
"providers": [
{
"code": "560806",
"name": "ALMAHALLA PULSE MEDICAL CENTER - ABHA",
"name_ar": "مجمع نبض المحالة الطبي العام - ابها",
"type": "hospital",
"region": "South",
"city": "Abha",
"phone": "172740805",
"status": "included"
}
]
}{
"code": "40101",
"message": "Unauthenticated"
}List a network's facilities
The hospitals, clinics, pharmacies and other facilities one tier of one provider gives access to, each with its status in that tier: included for direct access, referral when a referral is needed first. Filter by city to show one city at a time, or by search to match a facility’s English or Arabic name. This is the provider_list_url the Categories and Quote APIs return with every tier.
curl --request GET \
--url https://production.yasmina.ai/api/v1/medical/products/networks \
--header 'Authorization: Bearer <token>'import requests
url = "https://production.yasmina.ai/api/v1/medical/products/networks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://production.yasmina.ai/api/v1/medical/products/networks', 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://production.yasmina.ai/api/v1/medical/products/networks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://production.yasmina.ai/api/v1/medical/products/networks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://production.yasmina.ai/api/v1/medical/products/networks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.yasmina.ai/api/v1/medical/products/networks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"insurance_provider": "tawuniya",
"category": "basic",
"network": {
"name": "Network 3",
"total": 907,
"facilities": {
"hospital": 137,
"pharmacy": 7,
"clinic": 591,
"optical": 39,
"other": 133
},
"provider_list_url": "https://api.yasmina.ai/api/v1/medical/products/networks?insurance_provider=tawuniya&category=basic"
},
"cities": [
"Abha",
"Dammam",
"Jeddah",
"Riyadh"
],
"providers": [
{
"code": "560806",
"name": "ALMAHALLA PULSE MEDICAL CENTER - ABHA",
"name_ar": "مجمع نبض المحالة الطبي العام - ابها",
"type": "hospital",
"region": "South",
"city": "Abha",
"phone": "172740805",
"status": "included"
}
]
}{
"code": "40101",
"message": "Unauthenticated"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Whose network. Defaults to medgulf.
medgulf, walaa, alrajhi, tawuniya, malath Which tier's network.
basic, standard, premium, executive Only facilities in this city, as spelled in cities.
Only facilities whose name contains this text.
Response
Success
"tawuniya"
"basic"
The network of facilities a tier gives access to.
Hide child attributes
Hide child attributes
The provider's own name for this tier's network.
"Network 3"
How many facilities are in it, included or by referral.
907
The Networks API call that lists the facilities, or null when we hold no list for this provider yet.
"https://api.yasmina.ai/api/v1/medical/products/networks?insurance_provider=tawuniya&category=basic"
Every city with a facility in this tier, for a city filter.
["Abha", "Dammam", "Jeddah", "Riyadh"]
Hide child attributes
Hide child attributes
The provider's own code for the facility.
"560806"
"ALMAHALLA PULSE MEDICAL CENTER - ABHA"
"مجمع نبض المحالة الطبي العام - ابها"
hospital, pharmacy, clinic, optical, other "South"
"Abha"
"172740805"
included, referral