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.
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

Luke Boland 1477859
Posted
Posted

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 || 31000ft@498kts

 

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

Luke Boland 1477859
Posted
Posted

The API now includes copy/paste compatibility with 5 chatbots, and includes bot-specific copy/paste links for VATSIM Metar services.

 

Moobot is unsupported as you can't currently copy/paste a full API command into it.

Link to comment
Share on other sites

  • 1 year later...
Sukkyun Kang
Posted
Posted

Hello there. I am trying to add !route command to nightbot and it gives me ERROR: both callsign AND pattern MUST be specified any suggestions? I used the exactly same which is $(urlfetch https://vatsim.is-win.com/flight_data.php?p=Flight%20%7Bcallsign%7D%3A%20%7Broute%7D&f=$(query))

Link to comment
Share on other sites

 Share