公開データAPI
これらのページのデータはJSONで公開しています。キーも登録も不要です。応答は10分間キャッシュされます。上限は1つのIPアドレスにつき1分間60リクエストです。
このデータを掲載する場合は、Lipiの名前を記し、https://lipi.com.np/tools へリンクしてください。
ベースURL
https://api.lipi.com.np/api/v1/publicエンドポイント
GET /exchange-rates
基準通貨に対するすべてのレート。
curl "https://api.lipi.com.np/api/v1/public/exchange-rates?base=USD"GET /exchange-rates/convert
手元にある最新日のレートで金額を換算します。
curl "https://api.lipi.com.np/api/v1/public/exchange-rates/convert?amount=10&from=USD&to=NPR"GET /exchange-rates/history
レートの推移。range(7d、1m、3m、1y、5y)か、startとendを指定します。
curl "https://api.lipi.com.np/api/v1/public/exchange-rates/history?from=USD&to=NPR&range=1m"GET /exchange-rates/currencies
対応している通貨(記号と小数の桁数つき)。
curl "https://api.lipi.com.np/api/v1/public/exchange-rates/currencies"GET /metal-prices
金と銀のスポット価格。unit(oz、gram、kg、tola)とcurrencyを追加できます。
curl "https://api.lipi.com.np/api/v1/public/metal-prices?currency=EUR&unit=gram"GET /metal-prices/history
金または銀の価格の推移。rangeは1m、3m、1y、5y、max。
curl "https://api.lipi.com.np/api/v1/public/metal-prices/history?metal=gold¤cy=USD&unit=oz&range=1y"