The Fligt REST API (V3) is performance optimised and adds new functionality over the older V2 API, the REST API enables you to access profile, aiport, airline, landing and flight data in a simple, programmatic way using conventional HTTP requests.
All of the functionality that you are familiar with on the LRMLive website is also available through the API, allowing you to script and retrieve data for mobile applications or websites.
The API documentation will start with a general overview about the design and technology that has been implemented, followed by reference information about specific endpoints.
Any tool that is fluent in HTTP can communicate with the API simply by requesting the correct URI. Requests should be made using the HTTPS protocol so that traffic is encrypted.
For simple retrieval of information about your account, flights, aerodrome data and METAR reports, you should use the GET method. The information you request will be returned to you as a JSON object.
The attributes defined by the JSON object can be used to form additional requests. Any request using the GET method is read-only and will not affect any of the objects you are querying.
Along with the HTTP methods that the API responds to, it will also return standard HTTP statuses, including error codes.
In the event of a problem, the status will contain the error code, while the body of the response will usually contain additional information about the problem that was encountered.
In general, if the status returned is in the 200 range, it indicates that the request was fulfilled successfully and that no error was encountered.
Return codes in the 400 range typically indicate that there was an issue with the request that was sent. Among other things, this could mean that you did not authenticate correctly, that you are requesting an action that you do not have authorization for, that the object you are requesting does not exist, or that your request is malformed.
If you receive a status in the 500 range, this generally indicates a server-side problem. This means that we are having an issue on our end and cannot fulfill your request currently.
When a request is successful, a response body will typically be sent back in the form of a JSON object.
The value of these keys will generally be a JSON object for a request on a single object and an array of objects for a request on a collection of objects.
In addition to the main resource root, the response may also contain a meta object. This object contains information about the response itself.
The meta object contains a total key that is set to the total number of objects returned by the request. This has implications on the links object and pagination.
The meta object will only be displayed when it has a value. Currently, the meta object will have a value when a request is made on a collection (like droplets or domains).
To access the V3 API, you must specifiy an personal access token of which is a randomly generated API token, you can create or view your existing ones from the integrations page.
When making API requests, you should specify the token as a HTTP header, the HTTP header name should be X-Pilot-Token, the value should be the token string.
When attempting to access the API without a valid token, the following response object will be received:
{ "error": { "status_code": 401, "message": "Valid token was not provided." } }
Our latest (v3) API enables users, to instead having to specify the X-Pilot-Token as a HTTP request header, this can also now be set as a URL parameter like so: ?X-Pilot-Token={TOKEN_HERE}
. The preferred option however is to set it as a HTTP Header.
When an error is returned from the API, instead of having a "data" root, an "error" root will instead be returned with details of the error, the following response object, an example of the format will be received:
{ "error": true, "message": "Airport not found.", "details": { "icao": "AAAA" } }
Endpoints that respond with collections of data utilise some additional URL parameters for limiting results and moving through data-sets.
The limit parameter enables you to reduce or increase the number of collection items returned, the cursor parameter enables to you offset your results returned.
If not limit or cursor parameters are present in the request, the number of collection items are automatically set to 10 and the cursor at the beginning of the data set.
The following API endpoints and examples can be used to query data from the API...
The following endpoints relate to flight specific information.
GET /api/v3/flight
This endpoint enables developers to query and retrieve a collection of all flights.
https://fshub.io/api/v3/flight
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/flight"
{ "data": [ { "id": 1, "user": { "id": 1, "name": "Anonymous" }, "airline": null, "aircraft": { "name": "Carenado A36 Bonanza 60t" }, "fuel_used": 0, "distance": { "nm": 0, "km": 0 }, "max": { "alt": null, "spd": null }, "time": 0, "departure": null, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2015-03-31 23:50:35.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.891648, "lng": 0.244799 }, "hdg": { "mag": 225, "true": 223 }, "spd": { "tas": 0 }, "fuel": 0, "pitch": 0, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/1" }, { "rel": "pilot", "uri": "\/pilot\/1" }, { "rel": "departure-airport", "uri": "\/airport\/" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/1\/screenshot" } ] }, ... { "id": 10, "user": { "id": 1, "name": "Anonymous" }, "airline": null, "aircraft": { "name": "AgustaWestland EH101 11" }, "fuel_used": 0, "distance": { "nm": 0, "km": 0 }, "max": { "alt": null, "spd": null }, "time": 0, "departure": null, "arrival": { "icao": "LOWI", "iata": null, "name": "Innsbruck", "time": { "date": "2015-04-01 02:21:28.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 47.275854, "lng": 11.397171 }, "hdg": { "mag": 9, "true": 11 }, "spd": { "tas": 0 }, "fuel": 0, "pitch": 0, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/10" }, { "rel": "pilot", "uri": "\/pilot\/1" }, { "rel": "departure-airport", "uri": "\/airport\/" }, { "rel": "arrival-airport", "uri": "\/airport\/LOWI" }, { "rel": "screenshots", "uri": "\/flight\/10\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 10, "count": 10 } } }
GET /api/v3/flight/{id}
This endpoint enables developers to query and retrieve a specific flight report.
https://fshub.io/api/v3/flight/{id}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v2/flight/320525"
{ "data": { "id": 320525, "user": { "id": 693, "name": "Ryan R. van der Wal" }, "airline": null, "aircraft": { "name": "F1_C162_Skycatcher2" }, "fuel_used": 26, "distance": { "nm": 65, "km": 35 }, "max": { "alt": null, "spd": null }, "time": 2678, "departure": { "icao": "KCHD", "iata": null, "name": "Chandler Mun", "time": { "date": "2017-10-09 16:35:38.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 33.269119, "lng": -111.809452 }, "hdg": { "mag": 38, "true": 49 }, "spd": { "tas": 68 }, "fuel": 65, "pitch": -7, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "KSAD", "iata": null, "name": "Safford Regl", "time": { "date": "2017-10-09 19:07:52.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 32.856455, "lng": -109.639381 }, "hdg": { "mag": 125, "true": 135 }, "spd": { "tas": 48 }, "fuel": 39, "pitch": -4, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/320525" }, { "rel": "pilot", "uri": "\/pilot\/693" }, { "rel": "departure-airport", "uri": "\/airport\/KCHD" }, { "rel": "arrival-airport", "uri": "\/airport\/KSAD" }, { "rel": "screenshots", "uri": "\/flight\/320525\/screenshot" } ] } }
GET /api/v3/flight/{id}/screenshot
This endpoint enables developers to query and retrieve a collection of screenshot metadata for a specific flight report.
https://fshub.io/api/v3/flight/{id}/screenshot
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/flight/320525/screenshot"
{ "data": [ { "id": 940, "name": "69f3261ee47611d30cc2.jpeg", "desc": null, "urls": { "fullsize": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/69f3261ee47611d30cc2.jpeg", "thumnail": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/tn_200_69f3261ee47611d30cc2.jpeg" }, "created_at": { "date": "2017-10-09 19:19:16.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "pilot", "uri": "\/pilot\/693" } ] }, { "id": 941, "name": "35137c2f04d7f159e415.jpeg", "desc": null, "urls": { "fullsize": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/35137c2f04d7f159e415.jpeg", "thumnail": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/tn_200_35137c2f04d7f159e415.jpeg" }, "created_at": { "date": "2017-10-09 19:19:20.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "pilot", "uri": "\/pilot\/693" } ] }, { "id": 942, "name": "b0d23847c818273074e5.jpeg", "desc": null, "urls": { "fullsize": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/b0d23847c818273074e5.jpeg", "thumnail": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/tn_200_b0d23847c818273074e5.jpeg" }, "created_at": { "date": "2017-10-09 19:19:20.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "pilot", "uri": "\/pilot\/693" } ] }, { "id": 943, "name": "77ac07ad26c3f4c44d6a.jpeg", "desc": null, "urls": { "fullsize": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/77ac07ad26c3f4c44d6a.jpeg", "thumnail": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/tn_200_77ac07ad26c3f4c44d6a.jpeg" }, "created_at": { "date": "2017-10-09 19:19:20.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "pilot", "uri": "\/pilot\/693" } ] }, { "id": 944, "name": "3fa6c4d98be662f685f5.jpeg", "desc": null, "urls": { "fullsize": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/3fa6c4d98be662f685f5.jpeg", "thumnail": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/tn_200_3fa6c4d98be662f685f5.jpeg" }, "created_at": { "date": "2017-10-09 19:20:26.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "pilot", "uri": "\/pilot\/693" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 944, "count": 5 } } }
The following endpoints relate to pilot specific information.
GET /api/v3/pilot
This endpoint enables developers to query and retrieve a collection of pilots.
https://fshub.io/api/v3/pilot
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/pilot"
{ "data": [ { "id": 2, "name": "Bobby Allen", "bio": "Developer of LRMLive and the LRM Client. Airbus A320 and GA virtual pilot!", "handles": { "facebook": "", "twitter": "@allebb87", "website": null, "vatsim": "1167426", "ivao": "458562" }, "base": "EGSS", "locale": "LERS", "gps": { "lat": 41.149123, "lng": 1.173329 }, "timezone": "Europe\/London", "country": "GB", "is_online": true, "online_at": { "date": "2017-12-19 11:09:42.693129", "timezone_type": 3, "timezone": "UTC" }, "created_at": { "date": "2016-10-09 15:41:46.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "self", "uri": "\/pilot\/2" }, { "rel": "flights", "uri": "\/pilot\/2\/flight" }, { "rel": "screenshots", "uri": "\/pilot\/2\/screenshot" } ] }, { "id": 3, "name": "Greg Zytka", "bio": "", "handles": { "facebook": "", "twitter": "", "website": null, "vatsim": "", "ivao": "" }, "base": "KCLT", "locale": "KCLT", "gps": { "lat": 0, "lng": 0 }, "timezone": "America\/New_York", "country": "US", "is_online": false, "online_at": { "date": "2016-10-10 00:26:09.000000", "timezone_type": 3, "timezone": "UTC" }, "created_at": { "date": "2016-10-10 00:26:09.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "self", "uri": "\/pilot\/3" }, { "rel": "flights", "uri": "\/pilot\/3\/flight" }, { "rel": "screenshots", "uri": "\/pilot\/3\/screenshot" } ] }, ... { "id": 10, "name": "Salim Altintabak", "bio": null, "handles": { "facebook": null, "twitter": null, "website": null, "vatsim": null, "ivao": null }, "base": "EHLW", "locale": "EHLW", "gps": { "lat": 0, "lng": 0 }, "timezone": "Europe\/Amsterdam", "country": "NL", "is_online": false, "online_at": { "date": "2016-10-12 02:07:01.000000", "timezone_type": 3, "timezone": "UTC" }, "created_at": { "date": "2016-10-12 02:07:01.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "self", "uri": "\/pilot\/10" }, { "rel": "flights", "uri": "\/pilot\/10\/flight" }, { "rel": "screenshots", "uri": "\/pilot\/10\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 10, "count": 10 } } }
GET /api/v3/pilot/{id}
This endpoint enables developers to query and retrieve a specific pilot.
https://fshub.io/api/v3/pilot/{id}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/pilot/2"
{ "data": { "id": 2, "name": "Bobby Allen", "bio": "Developer of LRMLive and the LRM Client. Airbus A320 and GA virtual pilot!", "handles": { "facebook": "", "twitter": "@allebb87", "website": null, "vatsim": "1167426", "ivao": "458562" }, "base": "EGSS", "locale": "LERS", "gps": { "lat": 41.149123, "lng": 1.173329 }, "timezone": "Europe\/London", "country": "GB", "is_online": true, "online_at": { "date": "2017-12-19 11:09:42.693129", "timezone_type": 3, "timezone": "UTC" }, "created_at": { "date": "2016-10-09 15:41:46.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "self", "uri": "\/pilot\/2" }, { "rel": "flights", "uri": "\/pilot\/2\/flight" }, { "rel": "screenshots", "uri": "\/pilot\/2\/screenshot" } ] } }
GET /api/v3/pilot/{id}/flight
This endpoint enables developers to query and retrieve a collection of flights for a specific pilot.
https://fshub.io/api/v3/pilot/{id}/flight
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/pilot/2/flight"
{ "data": [ { "id": 350826, "user": { "id": 2, "name": "Bobby Allen" }, "airline": null, "aircraft": { "name": "CARENADO PC12 1" }, "fuel_used": 9, "landing_rate": -73, "distance": { "nm": 5, "km": 10 }, "max": { "alt": 2509, "spd": 155 }, "time": 149, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-12-08 11:05:58.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.884814, "lng": 0.234549 }, "hdg": { "mag": 225, "true": 223 }, "spd": { "tas": 96 }, "fuel": 1189, "pitch": -5, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-12-08 11:08:28.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.877598, "lng": 0.22353 }, "hdg": { "mag": 45, "true": 43 }, "spd": { "tas": 74 }, "fuel": 1180, "pitch": -1, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/350826" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/350826\/screenshot" } ] }, { "id": 350827, "user": { "id": 2, "name": "Bobby Allen" }, "airline": { "id": 1, "name": "Testing Ero Travel", "abbr": "TET", "owner": { "id": 2, "name": "Bobby Allen", "bio": "Developer of LRMLive and the LRM Client. Airbus A320 and GA virtual pilot!", "handles": { "facebook": "", "twitter": "@allebb87", "website": null, "vatsim": "1167426", "ivao": "458562" }, "base": "EGSS", "locale": "LERS", "gps": { "lat": 41.149123, "lng": 1.173329 }, "timezone": "Europe\/London", "country": "GB", "is_online": false, "online_at": { "date": "2017-12-19 11:09:42.693129", "timezone_type": 3, "timezone": "UTC" }, "created_at": { "date": "2016-10-09 15:41:46.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "self", "uri": "\/pilot\/2" }, { "rel": "flights", "uri": "\/pilot\/2\/flight" }, { "rel": "screenshots", "uri": "\/pilot\/2\/screenshot" } ] }, "handles": { "facebook": null, "twitter": null, "website": null }, "links": [ { "rel": "self", "uri": "\/airline\/1" }, { "rel": "pilots", "uri": "\/airline\/1\/pilot" }, { "rel": "flights", "uri": "\/airline\/1\/flight" }, { "rel": "screenshots", "uri": "\/airline\/1\/screenshot" } ] }, "aircraft": { "name": "CARENADO PC12 1" }, "fuel_used": 8, "landing_rate": -145, "distance": { "nm": 4, "km": 7 }, "max": { "alt": 1128, "spd": 171 }, "time": 122, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-12-08 11:11:38.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.884085, "lng": 0.233168 }, "hdg": { "mag": 45, "true": 43 }, "spd": { "tas": 87 }, "fuel": 1177, "pitch": -1, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-12-08 11:13:41.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.893435, "lng": 0.247334 }, "hdg": { "mag": 226, "true": 224 }, "spd": { "tas": 79 }, "fuel": 1169, "pitch": 0, "bank": 1, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/350827" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/350827\/screenshot" } ] }, ... { "id": 350835, "user": { "id": 2, "name": "Bobby Allen" }, "airline": { "id": 1, "name": "Testing Ero Travel", "abbr": "TET", "owner": { "id": 2, "name": "Bobby Allen", "bio": "Developer of LRMLive and the LRM Client. Airbus A320 and GA virtual pilot!", "handles": { "facebook": "", "twitter": "@allebb87", "website": null, "vatsim": "1167426", "ivao": "458562" }, "base": "EGSS", "locale": "LERS", "gps": { "lat": 41.149123, "lng": 1.173329 }, "timezone": "Europe\/London", "country": "GB", "is_online": false, "online_at": { "date": "2017-12-19 11:09:42.693129", "timezone_type": 3, "timezone": "UTC" }, "created_at": { "date": "2016-10-09 15:41:46.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "self", "uri": "\/pilot\/2" }, { "rel": "flights", "uri": "\/pilot\/2\/flight" }, { "rel": "screenshots", "uri": "\/pilot\/2\/screenshot" } ] }, "handles": { "facebook": null, "twitter": null, "website": null }, "links": [ { "rel": "self", "uri": "\/airline\/1" }, { "rel": "pilots", "uri": "\/airline\/1\/pilot" }, { "rel": "flights", "uri": "\/airline\/1\/flight" }, { "rel": "screenshots", "uri": "\/airline\/1\/screenshot" } ] }, "aircraft": { "name": "CARENADO PC12 1" }, "fuel_used": 21, "landing_rate": -161, "distance": { "nm": 17, "km": 32 }, "max": { "alt": 2000, "spd": 247 }, "time": 359, "departure": { "icao": "LERS", "iata": null, "name": "Reus", "time": { "date": "2017-12-13 20:17:38.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 41.147422, "lng": 1.167273 }, "hdg": { "mag": 69, "true": 69 }, "spd": { "tas": 95 }, "fuel": 1229, "pitch": -7, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "LERS", "iata": null, "name": "Reus", "time": { "date": "2017-12-13 20:23:38.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 41.145281, "lng": 1.159893 }, "hdg": { "mag": 69, "true": 69 }, "spd": { "tas": 87 }, "fuel": 1208, "pitch": 3, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/350835" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/LERS" }, { "rel": "arrival-airport", "uri": "\/airport\/LERS" }, { "rel": "screenshots", "uri": "\/flight\/350835\/screenshot" } ] } ], "meta": { "cursor": { "current": 350700, "prev": 0, "next": 350835, "count": 10 } } }
GET /api/v3/pilot/{id}/flight/departure/{from-icao}
This endpoint enables developers to query and retrieve a collection of the pilot flights from a specific airport.
https://fshub.io/api/v3/pilot/{id}/flight/departure/{from-icao}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "/api/v3/pilot/2/flight/departure/EGSS"
{ "data": [ { "id": 170092, "user": { "id": 2, "name": "Bobby Allen" }, "airline": null, "aircraft": { "name": "Carenado A36 Bonanza Str" }, "fuel_used": 4, "distance": { "nm": 16, "km": 8 }, "max": { "alt": null, "spd": null }, "time": 364, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2016-10-11 22:24:47.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.878057, "lng": 0.224594 }, "hdg": { "mag": 220, "true": 218 }, "spd": { "tas": 65 }, "fuel": 217, "pitch": -9, "bank": 0, "wind": { "spd": 7, "dir": 60 } }, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2016-10-11 22:30:52.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.891385, "lng": 0.244337 }, "hdg": { "mag": 224, "true": 222 }, "spd": { "tas": 58 }, "fuel": 213, "pitch": -4, "bank": 0, "wind": { "spd": 7, "dir": 60 } }, "links": [ { "rel": "self", "uri": "\/flight\/170092" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/170092\/screenshot" } ] }, ... { "id": 176547, "user": { "id": 2, "name": "Bobby Allen" }, "airline": null, "aircraft": { "name": "Airbus A320 SL easyJet G" }, "fuel_used": 3091, "distance": { "nm": 647, "km": 349 }, "max": { "alt": null, "spd": null }, "time": 3920, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2016-10-24 22:11:34.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.885734, "lng": 0.235901 }, "hdg": { "mag": 45, "true": 43 }, "spd": { "tas": 152 }, "fuel": 7591, "pitch": -9, "bank": 0, "wind": { "spd": 6, "dir": 40 } }, "arrival": { "icao": "EGPF", "iata": null, "name": "Glasgow", "time": { "date": "2016-10-24 23:16:55.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 55.86744, "lng": -4.441455 }, "hdg": { "mag": 52, "true": 48 }, "spd": { "tas": 121 }, "fuel": 4500, "pitch": -6, "bank": 0, "wind": { "spd": 6, "dir": 70 } }, "links": [ { "rel": "self", "uri": "\/flight\/176547" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/EGPF" }, { "rel": "screenshots", "uri": "\/flight\/176547\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 176547, "count": 10 } } }
GET /api/v3/pilot/{id}/flight/arrival/{to-icao}
This endpoint enables developers to query and retrieve a collection of the pilot flights to a specific airport.
https://fshub.io/api/v3/pilot/{id}/flight/arrival/{to-icao}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/pilot/2/flight/arrival/EGSS"
{ "data": [ { "id": 169324, "user": { "id": 2, "name": "Bobby Allen" }, "airline": null, "aircraft": { "name": "Airbus A320 IAE British " }, "fuel_used": 3717, "distance": { "nm": 910, "km": 491 }, "max": { "alt": null, "spd": null }, "time": 5718, "departure": { "icao": "LSGG", "iata": null, "name": "Geneva", "time": { "date": "2016-10-09 23:14:20.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 46.237592, "lng": 6.108025 }, "hdg": { "mag": 43, "true": 44 }, "spd": { "tas": 154 }, "fuel": 6336, "pitch": -9, "bank": 0, "wind": { "spd": 6, "dir": 9 } }, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2016-10-10 00:49:39.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.884976, "lng": 0.23501 }, "hdg": { "mag": 44, "true": 42 }, "spd": { "tas": 103 }, "fuel": 2619, "pitch": -7, "bank": 0, "wind": { "spd": 5, "dir": 20 } }, "links": [ { "rel": "self", "uri": "\/flight\/169324" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/LSGG" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/169324\/screenshot" } ] }, ... { "id": 172255, "user": { "id": 2, "name": "Bobby Allen" }, "airline": null, "aircraft": { "name": "Carenado A36 Bonanza 60t" }, "fuel_used": 4, "distance": { "nm": 19, "km": 10 }, "max": { "alt": null, "spd": null }, "time": 395, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2016-10-16 19:16:28.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.889802, "lng": 0.242187 }, "hdg": { "mag": 225, "true": 223 }, "spd": { "tas": 80 }, "fuel": 217, "pitch": -2, "bank": -1, "wind": { "spd": 12, "dir": 190 } }, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2016-10-16 19:23:04.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.879305, "lng": 0.226345 }, "hdg": { "mag": 222, "true": 220 }, "spd": { "tas": 51 }, "fuel": 213, "pitch": -7, "bank": 1, "wind": { "spd": 12, "dir": 190 } }, "links": [ { "rel": "self", "uri": "\/flight\/172255" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/172255\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 172255, "count": 10 } } }
GET /api/v3/pilot/{id}/flight/departure/{from-icao}/arrival/{to-icao}
This endpoint enables developers to query and retrieve a collection of pilot flights to and from a specific airport (a route).
https://fshub.io/api/v3/pilot/{id}/flight/departure/{from-icao}/arrival/{to-icao}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/pilot/2/flight/departure/EGSS/arrival/LOWI"
{ "data": [ { "id": 170150, "user": { "id": 2, "name": "Bobby Allen" }, "airline": null, "aircraft": { "name": "Airbus A319 Thomson Airw" }, "fuel_used": 3985, "distance": { "nm": 1080, "km": 583 }, "max": { "alt": null, "spd": null }, "time": 6086, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2016-10-11 22:52:41.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.885364, "lng": 0.235379 }, "hdg": { "mag": 46, "true": 44 }, "spd": { "tas": 150 }, "fuel": 7364, "pitch": -7, "bank": 0, "wind": { "spd": 6, "dir": 60 } }, "arrival": { "icao": "LOWI", "iata": null, "name": "Innsbruck", "time": { "date": "2016-10-12 00:34:08.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 47.26077, "lng": 11.34844 }, "hdg": { "mag": 261, "true": 263 }, "spd": { "tas": 104 }, "fuel": 3379, "pitch": -6, "bank": 0, "wind": { "spd": 3, "dir": 29 } }, "links": [ { "rel": "self", "uri": "\/flight\/170150" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/LOWI" }, { "rel": "screenshots", "uri": "\/flight\/170150\/screenshot" } ] }, .. { "id": 358280, "user": { "id": 2, "name": "Bobby Allen" }, "airline": null, "aircraft": { "name": "PMDG 737-800NGX THOMSON " }, "fuel_used": 4588, "distance": { "nm": 597, "km": 1105 }, "max": { "alt": 28000, "spd": 418 }, "time": 5573, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-11-25 19:06:10.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.882174, "lng": 0.230576 }, "hdg": { "mag": 225, "true": 223 }, "spd": { "tas": 181 }, "fuel": 20609, "pitch": -8, "bank": 0, "wind": { "spd": 6, "dir": 240 } }, "arrival": { "icao": "LOWI", "iata": null, "name": "Innsbruck", "time": { "date": "2017-11-25 20:39:04.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 47.260139, "lng": 11.342855 }, "hdg": { "mag": 79, "true": 81 }, "spd": { "tas": 129 }, "fuel": 16021, "pitch": -8, "bank": -1, "wind": { "spd": 3, "dir": 266 } }, "links": [ { "rel": "self", "uri": "\/flight\/358280" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/LOWI" }, { "rel": "screenshots", "uri": "\/flight\/358280\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 358280, "count": 3 } } }
GET /api/v3/pilot/{id}/screenshot
This endpoint enables developers to query and retrieve all pilot uploaded screenshots.
https://fshub.io/api/v3/pilot/{id}/screenshot
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/pilot/2/screenshot"
{ "data": [ { "id": 159, "name": "b92fc7c7a58a2c220f83.jpg", "desc": null, "urls": { "fullsize": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/b92fc7c7a58a2c220f83.jpg", "thumnail": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/tn_200_b92fc7c7a58a2c220f83.jpg" }, "created_at": { "date": "2016-10-13 14:55:18.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "pilot", "uri": "\/pilot\/2" } ] }, ... { "id": 168, "name": "07ec55f96fa02ad7cc62.jpg", "desc": null, "urls": { "fullsize": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/07ec55f96fa02ad7cc62.jpg", "thumnail": "https:\/\/fshub.ams3.digitaloceanspaces.com\/uploads\/tn_200_07ec55f96fa02ad7cc62.jpg" }, "created_at": { "date": "2016-10-13 15:16:00.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "pilot", "uri": "\/pilot\/2" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 168, "count": 10 } } }
The following endpoints relate to virtual airline specific information.
GET /api/v3/airline
This endpoint enables developers to query and retrieve all registered virtual airlines on the FSHub platform.
https://fshub.io/api/v3/airline
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airline"
GET /api/v3/airline/{id}
This endpoint enables developers to query and retrieve a specific airline.
https://fshub.io/api/v3/airline/{id}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airline/3"
{ "data": { "id": 3, "name": "JetSetGo!", "abbr": "JSG", "owner": { "id": 2, "name": "Bobby Allen", "bio": "Developer of LRMLive and the LRM Client. Airbus A320 and GA virtual pilot!", "handles": { "facebook": "", "twitter": "@allebb87", "website": null, "vatsim": "1167426", "ivao": "458562" }, "base": "EGSS", "locale": "EGSS", "timezone": "Europe\/London", "country": "GB", "online_at": { "date": "2017-11-27 10:55:20.359333", "timezone_type": 3, "timezone": "UTC" }, "created_at": { "date": "2016-10-09 15:41:46.000000", "timezone_type": 3, "timezone": "UTC" }, "links": [ { "rel": "self", "uri": "\/pilot\/2" }, { "rel": "flights", "uri": "\/pilot\/2\/flight" }, { "rel": "screenshots", "uri": "\/pilot\/2\/screenshot" } ] }, "handles": { "facebook": null, "twitter": null, "website": "http:\/\/fshub.io" }, "links": [ { "rel": "self", "uri": "\/airline\/3" }, { "rel": "pilots", "uri": "\/airline\/3\/pilot" }, { "rel": "flights", "uri": "\/airline\/3\/flight" }, { "rel": "screenshots", "uri": "\/airline\/3\/screenshot" } ] } }
GET /api/v3/airline/{id}/pilot
This endpoint enables developers to query and retrieve a collection of pilots for a given airline.
https://fshub.io/api/v3/airline/{id}/pilot
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airline/3/pilot"
{ "data": [ { "id": 2, "name": "Bobby Allen", "base": "EGSS", "locate": "EGSS", "gps": { "lat": 51.891512, "lng": 0.254655 }, "is_online": true, "online_at": { "date": "2017-11-27 10:58:38.927658", "timezone_type": 3, "timezone": "UTC" } } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 2, "count": 1 } } }
GET /api/v3/airline/{id}/flight
This endpoint enables developers to query and retrieve a collection of flights for a specific airline.
https://fshub.io/api/v3/airline/{id}/flight
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airline/3/flight"
{ "data": [ { "id": 356263, "user": { "id": 2, "name": "Bobby Allen" }, "aircraft": { "name": "CARENADO PC12 1" }, "fuel_used": 13, "distance": { "nm": 8, "km": 14 }, "max": { "alt": 3086, "spd": 186 }, "time": 188, "departure": { "icao": "LFBO", "iata": null, "name": "Blagnac", "time": { "date": "2017-11-23 16:50:28.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 43.632094, "lng": 1.358557 }, "hdg": { "mag": 324, "true": 323 }, "spd": { "tas": 103 }, "fuel": 1212, "pitch": -4, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "LFBO", "iata": null, "name": "Blagnac", "time": { "date": "2017-11-23 16:53:37.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 43.621995, "lng": 1.368971 }, "hdg": { "mag": 324, "true": 323 }, "spd": { "tas": 89 }, "fuel": 1199, "pitch": 5, "bank": -1, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/356263" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/LFBO" }, { "rel": "arrival-airport", "uri": "\/airport\/LFBO" }, { "rel": "screenshots", "uri": "\/flight\/356263\/screenshot" } ] }, { "id": 356940, "user": { "id": 2, "name": "Bobby Allen" }, "aircraft": { "name": "CARENADO PC12 1" }, "fuel_used": 6, "distance": { "nm": 5, "km": 9 }, "max": { "alt": 1149, "spd": 150 }, "time": 133, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-11-24 17:02:17.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.885189, "lng": 0.234981 }, "hdg": { "mag": 225, "true": 223 }, "spd": { "tas": 98 }, "fuel": 1219, "pitch": -8, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-11-24 17:04:31.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.879016, "lng": 0.225946 }, "hdg": { "mag": 45, "true": 43 }, "spd": { "tas": 98 }, "fuel": 1213, "pitch": -2, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/356940" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/356940\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 356940, "count": 2 } } }
GET /api/v3/airline/{id}/arrival/{icao}
This endpoint enables developers to query and retrieve a collection of airline arrivals to a specific airport
https://fshub.io/api/v3/airline/{id}/arrival/{icao}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airline/3/arrival/EGSS"
{ "data": [ { "id": 356940, "user": { "id": 2, "name": "Bobby Allen" }, "aircraft": { "name": "CARENADO PC12 1" }, "fuel_used": 6, "distance": { "nm": 5, "km": 9 }, "max": { "alt": 1149, "spd": 150 }, "time": 133, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-11-24 17:02:17.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.885189, "lng": 0.234981 }, "hdg": { "mag": 225, "true": 223 }, "spd": { "tas": 98 }, "fuel": 1219, "pitch": -8, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-11-24 17:04:31.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.879016, "lng": 0.225946 }, "hdg": { "mag": 45, "true": 43 }, "spd": { "tas": 98 }, "fuel": 1213, "pitch": -2, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/356940" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/356940\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 356940, "count": 1 } } }
GET /api/v3/airline/{id}/departure/{icao}
This endpoint enables developers to query and retrieve a collection of airline departures from a specific airport
https://fshub.io/api/v3/airline/{id}/departure/{icao}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airline/3/departure/LFBO"
{ "data": [ { "id": 356263, "user": { "id": 2, "name": "Bobby Allen" }, "aircraft": { "name": "CARENADO PC12 1" }, "fuel_used": 13, "distance": { "nm": 8, "km": 14 }, "max": { "alt": 3086, "spd": 186 }, "time": 188, "departure": { "icao": "LFBO", "iata": null, "name": "Blagnac", "time": { "date": "2017-11-23 16:50:28.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 43.632094, "lng": 1.358557 }, "hdg": { "mag": 324, "true": 323 }, "spd": { "tas": 103 }, "fuel": 1212, "pitch": -4, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "LFBO", "iata": null, "name": "Blagnac", "time": { "date": "2017-11-23 16:53:37.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 43.621995, "lng": 1.368971 }, "hdg": { "mag": 324, "true": 323 }, "spd": { "tas": 89 }, "fuel": 1199, "pitch": 5, "bank": -1, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/356263" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/LFBO" }, { "rel": "arrival-airport", "uri": "\/airport\/LFBO" }, { "rel": "screenshots", "uri": "\/flight\/356263\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 356263, "count": 1 } } }
GET /api/v3/airline/{id}/departure/{from-icao}/arrival/{to-icao}
This endpoint enables developers to query and retrieve a collection of flights for a given airline to and from specific airports.
https://fshub.io/api/v3/airline/{id}/departure/{from-icao}/arrival/{to-icao}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airline/3/departure/EGSS/arrival/LFBO"
{ "data": [ { "id": 356940, "user": { "id": 2, "name": "Bobby Allen" }, "aircraft": { "name": "CARENADO PC12 1" }, "fuel_used": 6, "distance": { "nm": 498, "km": 823 }, "max": { "alt": 9149, "spd": 150 }, "time": 4133, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-11-24 17:02:17.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.885189, "lng": 0.234981 }, "hdg": { "mag": 225, "true": 223 }, "spd": { "tas": 98 }, "fuel": 1219, "pitch": -8, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "LFBO", "iata": null, "name": "Blagnac", "time": { "date": "2017-11-23 16:53:37.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 43.621995, "lng": 1.368971 }, "hdg": { "mag": 324, "true": 323 }, "spd": { "tas": 89 }, "fuel": 1199, "pitch": 5, "bank": -1, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/356940" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/LFBO" }, { "rel": "screenshots", "uri": "\/flight\/356940\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 356940, "count": 1 } } }
GET /api/v3/airline/{id}/screenshot
This endpoint enables developers to query and retrieve a collection of screenshots for a given airline.
https://fshub.io/api/v3/airline/{id}/screenshot
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airline/3/screenshot"
The following endpoints relate to airport specific information.
GET /api/v3/airport/{icao}
This endpoint enables developers to query and retrieve airport specific information including the location, frequencies and runway information.
https://fshub.io/api/v3/airport/{icao}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airport/EGSS"
{ "data": { "icao": "EGSS", "iata": "STN", "name": "Stansted", "locale": { "city": "London", "state": null, "county": "United Kingdom" }, "geo": { "lat": 51.884998, "lng": 0.235 }, "alt": 348, "mag_var": -3, "frequencies": { "atis": "127.170", "cd": null, "gnd": "121.720", "tower": "123.800", "unicom": null, "multicom": null, "app": "120.620", "dep": "126.950" }, "runways": [ { "name": "05", "tpye": "Asphalt", "length": 9984, "hdg": 46, "geo": { "lat": 51.875076, "lng": 0.219898 }, "ils": { "id": "ISED", "frequency": "110.500", "hdg": 46, "slope": 3 } }, { "name": "23", "tpye": "Asphalt", "length": 9984, "hdg": 226, "geo": { "lat": 51.895157, "lng": 0.250072 }, "ils": { "id": "ISX", "frequency": "110.500", "hdg": 226, "slope": 3 } } ], "links": [ { "rel": "self", "uri": "\/airport\/EGSS" }, { "rel": "arrivals", "uri": "\/airport\/EGSS\/arrivals" }, { "rel": "departures", "uri": "\/airport\/EGSS\/departures" }, { "rel": "screenshots", "uri": "\/airport\/EGSS\/screenshots" } ] } }
GET /api/v3/airport/{icao}/arrival
This endpoint enables developers to query and retrieve arrivals to the specific airport.
https://fshub.io/api/v3/airport/{icao}/arrival
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airport/EGSS/arrival"
{ "data": [ { "id": 311255, "user": { "id": 2, "name": "Bobby Allen" }, "aircraft": { "name": "CARENADO PC12 5" }, "fuel_used": 25, "distance": { "nm": 39, "km": 21 }, "max": { "alt": null, "spd": null }, "time": 649, "departure": { "icao": "EGSX", "iata": null, "name": "North Weald", "time": { "date": "2017-09-28 14:04:23.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.719092, "lng": 0.151399 }, "hdg": { "mag": 21, "true": 19 }, "spd": { "tas": 87 }, "fuel": 1232, "pitch": -3, "bank": 1, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-09-28 14:15:19.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.890969, "lng": 0.243634 }, "hdg": { "mag": 226, "true": 224 }, "spd": { "tas": 73 }, "fuel": 1207, "pitch": -1, "bank": 1, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/311255" }, { "rel": "pilot", "uri": "\/pilot\/2" }, { "rel": "departure-airport", "uri": "\/airport\/EGSX" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/311255\/screenshot" } ] }, ... { "id": 313402, "user": { "id": 1, "name": "Anonymous" }, "aircraft": { "name": "Boeing 737-8ASNGX Ryanai" }, "fuel_used": 0, "distance": { "nm": 634, "km": 342 }, "max": { "alt": null, "spd": null }, "time": 236, "departure": null, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-10-01 20:59:50.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.880041, "lng": 0.22734 }, "hdg": { "mag": 44, "true": 42 }, "spd": { "tas": 144 }, "fuel": 19862, "pitch": -3, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/313402" }, { "rel": "pilot", "uri": "\/pilot\/1" }, { "rel": "departure-airport", "uri": "\/airport\/" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/313402\/screenshot" } ] } ], "meta": { "cursor": { "current": 310000, "prev": 0, "next": 313402, "count": 10 } } }
GET /api/v3/airport/{icao}/departure
This endpoint enables developers to query and retrieve departures from the specific airport.
https://fshub.io/api/v3/airport/{icao}/departure
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airport/EGSS/departure"
{ "data": [ { "id": 311331, "user": { "id": 1, "name": "Anonymous" }, "aircraft": { "name": "Boeing 737-8K5NGX Thomso" }, "fuel_used": 1787, "distance": { "nm": 351, "km": 189 }, "max": { "alt": null, "spd": null }, "time": 2190, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-09-28 17:02:39.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.882945, "lng": 0.231646 }, "hdg": { "mag": 225, "true": 223 }, "spd": { "tas": 154 }, "fuel": 5200, "pitch": -9, "bank": 0, "wind": { "spd": 7, "dir": 220 } }, "arrival": { "icao": "EHAM", "iata": null, "name": "Schiphol", "time": { "date": "2017-09-28 17:39:12.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 52.349708, "lng": 4.711257 }, "hdg": { "mag": 183, "true": 183 }, "spd": { "tas": 128 }, "fuel": 3413, "pitch": -8, "bank": 0, "wind": { "spd": 7, "dir": 240 } }, "links": [ { "rel": "self", "uri": "\/flight\/311331" }, { "rel": "pilot", "uri": "\/pilot\/1" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/EHAM" }, { "rel": "screenshots", "uri": "\/flight\/311331\/screenshot" } ] }, ... { "id": 313798, "user": { "id": 1, "name": "Anonymous" }, "aircraft": { "name": "Boeing 737-8ASNGX Ryanai" }, "fuel_used": -15, "distance": { "nm": 6, "km": 3 }, "max": { "alt": null, "spd": null }, "time": 31, "departure": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-10-02 18:06:17.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.849962, "lng": 0.181876 }, "hdg": { "mag": 45, "true": 43 }, "spd": { "tas": 181 }, "fuel": 19857, "pitch": -1, "bank": 1, "wind": { "spd": 1, "dir": 25 } }, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-10-02 18:45:39.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.882933, "lng": 0.231603 }, "hdg": { "mag": 45, "true": 43 }, "spd": { "tas": 121 }, "fuel": 19872, "pitch": 1, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/313798" }, { "rel": "pilot", "uri": "\/pilot\/1" }, { "rel": "departure-airport", "uri": "\/airport\/EGSS" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/313798\/screenshot" } ] } ], "meta": { "cursor": { "current": 310000, "prev": 0, "next": 313798, "count": 10 } } }
GET /api/v3/airport/{icao}/arrival/{from-icao}
This endpoint enables developers to query and retrieve arrivals to a specific airport, from a specific airport.
https://fshub.io/api/v3/airport/{icao}/arrival/{from-icao}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airport/EGSS/arrival/KJFK"
{ "data": [ { "id": 307262, "user": { "id": 1, "name": "Anonymous" }, "aircraft": { "name": "PMDG 747-4R7F Cargolux (" }, "fuel_used": 68628, "distance": { "nm": 5720, "km": 3089 }, "max": { "alt": null, "spd": null }, "time": 22019, "departure": { "icao": "KJFK", "iata": null, "name": "Kennedy Intl", "time": { "date": "2017-05-26 11:54:31.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 40.640729, "lng": -73.799851 }, "hdg": { "mag": 314, "true": 301 }, "spd": { "tas": 175 }, "fuel": 90438, "pitch": -8, "bank": 0, "wind": { "spd": 7, "dir": 350 } }, "arrival": { "icao": "EGSS", "iata": null, "name": "Stansted", "time": { "date": "2017-05-26 18:01:32.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 51.87776, "lng": 0.223963 }, "hdg": { "mag": 43, "true": 43 }, "spd": { "tas": 155 }, "fuel": 21810, "pitch": -3, "bank": 0, "wind": { "spd": 14, "dir": 120 } }, "links": [ { "rel": "self", "uri": "\/flight\/307262" }, { "rel": "pilot", "uri": "\/pilot\/1" }, { "rel": "departure-airport", "uri": "\/airport\/KJFK" }, { "rel": "arrival-airport", "uri": "\/airport\/EGSS" }, { "rel": "screenshots", "uri": "\/flight\/307262\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 307262, "count": 1 } } }
GET /api/v3/airport/{icao}/departure/
This endpoint enables developers to query and retrieve departures from the specific airport, to a specific airport.
https://fshub.io/api/v3/airport/{icao}/departure/{to-icao}
Content-Type: application/json X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT
curl -X GET -H "Content-Type: application/json" -H "X-Pilot-Token: HbS0fI8bJ0rdZxJYIYGqQrqAOMmY1iU0IwyvAczM0kMmlSDWqVVQDB1tzOPYYYlT" "https://fshub.io/api/v3/airport/EGPF/departure/EGPG"
{ "data": [ { "id": 274998, "user": { "id": 412, "name": "Jim Hamilton" }, "aircraft": { "name": "Carenado B1900D United E" }, "fuel_used": 40, "distance": { "nm": 35, "km": 19 }, "max": { "alt": null, "spd": null }, "time": 507, "departure": { "icao": "EGPF", "iata": null, "name": "Glasgow", "time": { "date": "2017-04-11 22:26:35.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 55.869771, "lng": -4.437362 }, "hdg": { "mag": 50, "true": 46 }, "spd": { "tas": 138 }, "fuel": 2046, "pitch": -4, "bank": 0, "wind": { "spd": 0, "dir": 360 } }, "arrival": { "icao": "EGPG", "iata": null, "name": "Cumbernauld", "time": { "date": "2017-04-11 22:35:03.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 55.974631, "lng": -3.975411 }, "hdg": { "mag": 76, "true": 72 }, "spd": { "tas": 80 }, "fuel": 2006, "pitch": -9, "bank": 0, "wind": { "spd": 1, "dir": 355 } }, "links": [ { "rel": "self", "uri": "\/flight\/274998" }, { "rel": "pilot", "uri": "\/pilot\/412" }, { "rel": "departure-airport", "uri": "\/airport\/EGPF" }, { "rel": "arrival-airport", "uri": "\/airport\/EGPG" }, { "rel": "screenshots", "uri": "\/flight\/274998\/screenshot" } ] }, { "id": 288814, "user": { "id": 412, "name": "Jim Hamilton" }, "aircraft": { "name": "F1_C162_Skycatcher2" }, "fuel_used": 0, "distance": { "nm": 33, "km": 18 }, "max": { "alt": null, "spd": null }, "time": 729, "departure": { "icao": "EGPF", "iata": null, "name": "Glasgow", "time": { "date": "2017-04-30 15:55:41.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 55.866317, "lng": -4.44375 }, "hdg": { "mag": 50, "true": 46 }, "spd": { "tas": 68 }, "fuel": 2053, "pitch": -8, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "arrival": { "icao": "EGPG", "iata": null, "name": "Cumbernauld", "time": { "date": "2017-04-30 16:07:51.000000", "timezone_type": 3, "timezone": "UTC" }, "geo": { "lat": 55.97454, "lng": -3.976027 }, "hdg": { "mag": 76, "true": 72 }, "spd": { "tas": 42 }, "fuel": 2053, "pitch": -8, "bank": 0, "wind": { "spd": 0, "dir": 0 } }, "links": [ { "rel": "self", "uri": "\/flight\/288814" }, { "rel": "pilot", "uri": "\/pilot\/412" }, { "rel": "departure-airport", "uri": "\/airport\/EGPF" }, { "rel": "arrival-airport", "uri": "\/airport\/EGPG" }, { "rel": "screenshots", "uri": "\/flight\/288814\/screenshot" } ] } ], "meta": { "cursor": { "current": 0, "prev": 0, "next": 288814, "count": 2 } } }