GET
https://www.vendeeglobeapi.com/api/vgdata?apikey={API_KEY}
fetch("https://www.vendeeglobeapi.com/api/vgdata?apikey={API_KEY}")
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
{
"latestdata": {
"data": [
{
"DTF": "20663.5 nm",
"DTL": "0.0 nm",
"Boat": "MACIF Santé Prévoyance",
"Rank": "1",
"Country": "FR",
"Time_FR": "10:30 FR",
"VMG_24h": "18.0 kts",
"Latitude": "11°29.70'S",
"Longitude": "32°31.34'W",
"Speed_24h": "19.3 kts",
"VMG_30min": "22.7 kts",
"CountryFlag": "https://purecatamphetamine.github.io/country-flag-icons/3x2/FR.svg",
"Heading_24h": "178°",
"Speed_30min": "22.9 kts",
"Distance_24h": "464.3 nm",
"Skipper_Boat": "Charlie Dalin",
"Heading_30min": "156°",
"Distance_30min": "11.4 nm",
"VMG_LastReport": "22.3 kts",
"Speed_LastReport": "23.0 kts",
"Heading_LastReport": "166°",
"Distance_LastReport": "92.1 nm"
},
// additional data here
{
"DTF": "21545.2 nm",
"DTL": "881.7 nm",
"Boat": "Singchain Team Haikou",
"Rank": "38",
"Country": "CN",
"Time_FR": "10:30 FR",
"VMG_24h": "10.8 kts",
"Latitude": "05°52.30'N",
"Longitude": "27°15.88'W",
"Speed_24h": "11.0 kts",
"VMG_30min": "8.5 kts",
"CountryFlag": "https://purecatamphetamine.github.io/country-flag-icons/3x2/CN.svg",
"Heading_24h": "181°",
"Speed_30min": "8.9 kts",
"Distance_24h": "262.8 nm",
"Skipper_Boat": "Jingkun Xu",
"Heading_30min": "186°",
"Distance_30min": "4.4 nm",
"VMG_LastReport": "6.9 kts",
"Speed_LastReport": "7.4 kts",
"Heading_LastReport": "190°",
"Distance_LastReport": "29.7 nm"
}
],
"lastUpdate": "11h00"
}
}