Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

http://status.vatsim.net/status.txt


Kim Strandsbjerg
 Share

Recommended Posts

Kim Strandsbjerg
Posted
Posted

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

Martijn Rammeloo
Posted
Posted

Check this subforum: Click...

Link to comment
Share on other sites

Tobias Dammers
Posted
Posted

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.

  • Thanks 1
23.png
Link to comment
Share on other sites

Kim Strandsbjerg
Posted
Posted

OK. thanks for the explanation. 

I can´t seem to get them working though.

Link to comment
Share on other sites

 Share