Kim Strandsbjerg Posted November 1, 2021 at 08:41 PM Posted November 1, 2021 at 08:41 PM Hi Does this address still work when fetching data to for example Aivlasoft EFB? Best regards Kim 962820 Link to comment Share on other sites More sharing options...
Martijn Rammeloo Posted November 1, 2021 at 08:44 PM Posted November 1, 2021 at 08:44 PM Check this subforum: Click... Link to comment Share on other sites More sharing options...
Kim Strandsbjerg Posted November 1, 2021 at 09:07 PM Author Posted November 1, 2021 at 09:07 PM HI Martijn Just to be sure, I have to use https://data.vatsim.net/v3/vatsim-data.json? I cant get https://status.vatsim.net/status.json to work. Link to comment Share on other sites More sharing options...
Tobias Dammers Posted November 2, 2021 at 11:51 AM Posted November 2, 2021 at 11:51 AM https://data.vatsim.net/v3/vatsim-data.json currently works, but there is no guarantee that the address will remain valid; it can change without prior notice at any point, and load balancing may be introduced at some point as well. The proper procedure is to query https://status.vatsim.net/status.json first, which will give you a JSON object that tells you which URLs to use for the datafeed API. At the time of writing, the JSON response you get looks like this: { "data": { "v3": [ "https://data.vatsim.net/v3/vatsim-data.json" ], "transceivers": [ "https://data.vatsim.net/v3/transceivers-data.json" ], "servers": [ "https://data.vatsim.net/v3/vatsim-servers.json" ] }, "user": [ "https://stats.vatsim.net/search_id.php" ], "metar": [ "http://metar.vatsim.net/metar.php" ] } All you need to know out of all that is the data.v3 element, which is a list of URLs to use for the datafeed API. Currently, that list has only one entry, so that's the URL you need to use, but your code should be prepared to handle lists with multiple entries, and pick one of them at random for load balancing purposes. 1 Link to comment Share on other sites More sharing options...
Kim Strandsbjerg Posted November 2, 2021 at 05:34 PM Author Posted November 2, 2021 at 05:34 PM OK. thanks for the explanation. I can´t seem to get them working though. Link to comment Share on other sites More sharing options...
Recommended Posts