LIBOR API

The LIBOR API provides current and historical LIBOR (London Interbank Offered Rate) data for all tenors from overnight to 12 months. LIBOR is a key benchmark interest rate at which major global banks lend to one another.

Rates are updated daily during London business days.

Looking for historical LIBOR data? Use the /v1/liborhistorical end point.

Looking for current and historical EURIBOR data? Use the EURIBOR API.

Need other interest rates? Use the Interest Rate API.

/v1/libor GET premium only

https://api.api-ninjas.com/v1/libor

Get current LIBOR rates for all tenors.

Note: LIBOR rates have stopped being published as of September 30, 2024. You can still call the /v1/liborhistorical endpoint to retrieve historical data.


Headers

  • X-Api-Key  required

    API Key associated with your account.

Sample Request Live Demo!

https://api.api-ninjas.com/v1/libor

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [ { "name": "LIBOR - Overnight", "rate_pct": 5.342, "last_updated": "02-28-2025" }, { "name": "LIBOR - 1 week", "rate_pct": 5.407, "last_updated": "02-28-2025" }, { "name": "LIBOR - 1 month", "rate_pct": 5.463, "last_updated": "02-28-2025" }, { "name": "LIBOR - 3 months", "rate_pct": 5.564, "last_updated": "02-28-2025" }, { "name": "LIBOR - 6 months", "rate_pct": 5.655, "last_updated": "02-28-2025" }, { "name": "LIBOR - 12 months", "rate_pct": 5.794, "last_updated": "02-28-2025" } ]

Code Examples

1 2 3 4 5 6 7 8 import requests api_url = 'https://api.api-ninjas.com/v1/libor' response = requests.get(api_url, headers={'X-Api-Key': 'YOUR_API_KEY'}) if response.status_code == requests.codes.ok: print(response.text) else: print("Error:", response.status_code, response.text)

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.


/v1/liborhistorical GET

Developer and Business tier only

https://api.api-ninjas.com/v1/liborhistorical

Returns historical LIBOR rates for a specified tenor. You can specify a time range to retrieve data from. The maximum number of data points returned per API call is 100.

Parameters

  • type  required

    Tenor of the LIBOR rate. Must be one of:

    overnight
    1_week
    1_month
    3_months
    6_months
    12_months
  • start_time  optional

    Start time for the data range, specified as a UNIX timestamp in seconds.

  • end_time  optional

    End time for the data range, specified as a UNIX timestamp in seconds.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Sample Request

https://api.api-ninjas.com/v1/liborhistorical

Sample Response

JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 { "name": "LIBOR - 3 months", "data": [ { "timestamp": 915148800, "rate_pct": 6.245 }, { "timestamp": 915408000, "rate_pct": 6.234 }, { "timestamp": 915494400, "rate_pct": 6.222 }, ... ] }