Lufthansa Open Deprecated

FREE
By lihcode
Updated 4 months ago
-/10
Popularity Score
-
Latency
-
Success Rate

Lufthansa Open Deprecated API Documentation

Lufthansa Open API is the Open Data platform of Lufthansa group together with Lufthansa Innovation Hub! Lufthansa Groups data offering spans from industry wide reference data over Lufthansa Group airlines till Lufthansa Cargo shipping information. Make sure to follow, as we are continuously expanding the offering! Plus the API is free off charge!

View API Details
Reference Data
GETCountry Code
GETCitycode
GETAirports
GETNearest Aiports
GETAirline Code
GETAircraft
Offers
GETSeatmap
GETLounges
Operations
GETFlightstatus
GETCountry Code

List all countries or one specific country. It is possible to request the response in a specific language.

Authorization:

OAuth2 Authenication

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationOAUTH2
REQUIREDOAuth2 Authenication
Required Parameters
countrycodeSTRING
REQUIRED
Optional Parameters
OffsetSTRING
OPTIONALNumber of records skipped. Defaults to 0
limitSTRING
OPTIONALNumber of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
Code Snippet
unirest.get("https://rlanegger-lufthansa-open-v1.p.rapidapi.com/v1/references/countries/{countrycode}?Offset=0&limit=20")
.header("X-RapidAPI-Host", "rlanegger-lufthansa-open-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Authorization", "")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://rlanegger-lufthansa-open-v1.p.rapidapi.com/v1/references/countries/{countrycode}
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://rlanegger-lufthansa-open-v1.p.rapidapi.com/v1/references/countries/{countrycode}?Offset=0&limit=20")
.header("X-RapidAPI-Host", "rlanegger-lufthansa-open-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Authorization", "")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication