LH Public API
LH Public API endpoints from Lufthansa
Logistics & shipping#openapi#transport
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
LH Public API endpoints from Lufthansa
Endpoints 15
Cargo
- GETRetrieve all flights
/cargo/getRoute/:origin-:destination/:fromDate/:productCodeRetrieve a list of all possible flights (both direct and connecting) between two airports on a given date. Routes are available for today and up to days in… - GETShipment Tracking
/cargo/shipmentTracking/:aWBPrefix-:aWBNumberWith this tracking service you can easily retrieve your shipment or flight status information.
Offers
- GETLounges
/offers/lounges/:location?cabinClass=string&tierCode=string&lang=stringLounge information - GETSeat Maps
/offers/seatmaps/:flightNumber/:origin/:destination/:date/:cabinClassCabin layout and seat characteristics.
Operations
- GETFlight Status at Arrival Airport
/operations/flightstatus/arrivals/:airportCode/:fromDateTime?limit=string&offset=stringStatus of all arrivals at a given airport up to 4 hours from the provided date time. - GETFlight Status at Departure Airport
/operations/flightstatus/departures/:airportCode/:fromDateTime?limit=string&offset=stringStatus of all departures from a given airport up to 4 hours from the provided date time. - GETFlight Status by Route
/operations/flightstatus/route/:origin/:destination/:date?limit=string&offset=stringStatus of flights between a given origin and destination on a given date. - GETFlight Status
/operations/flightstatus/:flightNumber/:date?limit=string&offset=stringStatus of a particular flight (boarding, delayed, etc.). - GETFlight Schedules
/operations/schedules/:origin/:destination/:fromDateTime?directFlights=true&limit=string&offset=stringScheduled flights between given airports on a given date.
Reference Data
- GETAircraft
/references/aircraft/:aircraftCode?limit=20&offset=0List all aircraft types or one specific aircraft type. - GETAirlines
/references/airlines/:airlineCode?limit=20&offset=0List all airlines or one specific airline. - GETNearest Airports
/references/airports/nearest/:latitude,:longitude?lang=stringList the 5 closest airports to the given latitude and longitude, irrespective of the radius of the reference point. - GETAirports
/references/airports/:airportCode?lang=string&limit=20&offset=0&LHoperated=trueList all airports or one specific airport. All airports response is very large. It is possible to request the response in a specific language. - GETCities
/references/cities/:cityCode?lang=string&limit=20&offset=0List all cities or one specific city. It is possible to request the response in a specific language. - GETCountries
/references/countries/:countryCode?lang=string&limit=20&offset=0List all countries or one specific country. It is possible to request the response in a specific language.
API details
- Base URL
https://api.lufthansa.com/v1- Authentication
- OAuth 2.0 (authorization code flow) with 1 scope
- Operations
- 15 operations on 15 pathsGET 15
- Main resources
- Reference Data 6Operations 5Cargo 2Offers 2
- Response formats
application/json- Description format
- OpenAPI 3.0.0, API version
1.0 - Links
- OpenAPI document
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the LH Public API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the LH Public API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Retrieve all flights” (GET /cargo/getRoute/:origin-:destination/:fromDate/:productCode), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the LH Public API?
LH Public API endpoints from Lufthansa It is listed under Logistics & shipping and has 15 endpoints.
Who publishes the LH Public API?
It is listed from Lufthansa's public API description (an OpenAPI document), not published by Lufthansa on Swastik Codes. Anyone who controls lufthansa.com can claim the profile by adding a DNS TXT record.
What is the base URL of the LH Public API?
Requests go to https://api.lufthansa.com/v1. Endpoint paths are added to this base URL.
How do I authenticate with the LH Public API?
With OAuth 2.0 (authorization code flow) with 1 scope.
How many endpoints does the LH Public API have?
15 operations on 15 paths (15 GET). The largest groups are Reference Data, Operations, Cargo, Offers.
Is forking the LH Public API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.