Skip to content

Public data API

The data on these pages is open as JSON. No key and no sign-up. Responses are cached for ten minutes. The limit is 60 requests a minute per IP address.

If you show this data, please credit Lipi and link to https://lipi.com.np/tools.

Base URL

https://api.lipi.com.np/api/v1/public

Endpoints

GET /exchange-rates

All rates for a base currency.

curl "https://api.lipi.com.np/api/v1/public/exchange-rates?base=USD"

GET /exchange-rates/convert

Convert an amount on the latest day we have.

curl "https://api.lipi.com.np/api/v1/public/exchange-rates/convert?amount=10&from=USD&to=NPR"

GET /exchange-rates/history

Rate history. Use range (7d, 1m, 3m, 1y, 5y) or start and end.

curl "https://api.lipi.com.np/api/v1/public/exchange-rates/history?from=USD&to=NPR&range=1m"

GET /exchange-rates/currencies

Currencies we cover, with symbol and decimal places.

curl "https://api.lipi.com.np/api/v1/public/exchange-rates/currencies"

GET /metal-prices

Gold and silver spot price. Add unit (oz, gram, kg, tola) and currency.

curl "https://api.lipi.com.np/api/v1/public/metal-prices?currency=EUR&unit=gram"

GET /metal-prices/history

Price history for gold or silver. Range 1m, 3m, 1y, 5y or max.

curl "https://api.lipi.com.np/api/v1/public/metal-prices/history?metal=gold&currency=USD&unit=oz&range=1y"