Getting a PARTNER API token

To get access to fare data please read the business instructions and register here

As with the public data LH Open API uses Oauth 2.0 to create end point tokens, that are only valid for 24h.

Only difference between the two plans is the URI!

Request URI

Code snippet: Call

Content-Type: application/x-www-form-urlencoded
POST Parameter Value
client_id Your client application key
client_secret Your client secret
grant_type "client_credentials"

Request Example

Code snippet: Curl

curl "" -X POST -d "client_id=28fu8yg7tx35qkqnc6jg96fy" -d "client_secret=6jc9Zj9PE2" -d "grant_type=client_credentials"

Response Structure Definition

Key Description
access_token Your new access token
token_type We only use bearer tokens
expires_in The number of seconds until this token expires

Response Example

Code snippet: Json


Note that we respond with token_type "bearer" (lower case b) yet when you send us a token it must be named "Bearer" (upper case B). This is a known issue that we are working to resolve.

You can also generate a token via our API Playground page.