Jump to content
PLEASE READ - Webmaster Support Forum
This forum will be retired in the near future. Please direct all queries to our dedicated GitHub support page https://github.com/vatsimnetwork/developer-info/discussions 
Here you can find documentation on our services and we are continuing to migrate pertinent information into the Wiki pages https://github.com/vatsimnetwork/developer-info/wiki

Basic VATSIM data API


Luke Boland 1477859
 Share

Recommended Posts

Hi guys

 

I think that this data usage is OK by the rules. Please let me know if it's not.

 

I have made a system that downloads VATSIM data, caches it, and then makes it available in a completely configurable way. It requires no authentication, costs nothing to use, and is available to everyone. The idea is to allow people to easily get basic flight data with Twitch bots.

 

Flights can be searched using either cid or callsign.

 

The main page includes a query builder: https://vatsim.is-win.com

 

Here is an example of a Nightbot-compatible query:

$(urlfetch https://vatsim.is-win.com/flight_data.php?p=Flight%20%7Bcallsign%7D%3A%20%7Broute%7D&f=$(query))

You would use it with !command %callsign%, eg: !route afr76

That would return, in plain text:

Flight AFR76: ATRE3A ATREX UT225 VESAN UL613 SOVAT L613 SANDY UN601 LESTA UP6 RODOL UM65 TENSO L603 REMSI MIMKU SUNOT NATD AVUTI N716A TEALS GL YAT YXL GFK BIS GCC FFU J9 MLF J107 NORRA BLD HAKMN ANJLL4

 

Another example:

https://vatsim.is-win.com/flight_data.php?p=Flight%20%7Bcallsign%7D%3A%20%7Borigin%7D%20-%20%7Bdestination%7D%20%7C%7C%20%7Bplanned_altitude%7Dft%40%7Bplanned_cruise%7Dkts&id=1238470

currently returns:

Flight EJM713: FIMP - KDFW || [email protected]

 

This was written to help out a friend who streams VATSIM flights, and has been having problems with his flightbot crashing.

 

Questions/comments? Let me know! Support is available via my Discord - link is on the api index page.

 

Thanks!

Link to comment
Share on other sites

  • 1 year later...
 Share

×
×
  • Create New...