Free XRPL Token Price API
Most price APIs cover a handful of XRP Ledger tokens. The xrpl.to API prices all 20,468 listed token from the ledger’s own trades, with candles, holders and pools beside them, and it is free to start without a key.
A request, live
curl "https://api.xrpl.to/v1/tokens?sortBy=vol24hxrp&sortType=desc&limit=3"
{
"success": true,
"total": 20468,
"tokens": [
{
"name": "RLUSD",
"md5": "0dd550278b74cb6690fdae351e8e0df3",
"exch": 0.7635138166986555,
"usd": 1.0007882429174664,
"pro24h": -1.297468417058767,
"vol24hxrp": 3092618.434901
},
{
"name": "USDC",
"md5": "1c54f16ec1b45eef983f202b9954999b",
"exch": 0.7625438462711606,
"usd": 0.9991878908037213,
"pro24h": -1.491523047051202,
"vol24hxrp": 312374.708854
},
{
"name": "FUZZY",
"md5": "b05f7c8e58b832c74267d988567dea33",
"exch": 0.00003930479419703379,
"usd": 0.0000514715932407256,
"pro24h": -0.8239652921629426,
"vol24hxrp": 148427.912382
}
]
}The calls that matter
| Token list with prices | https://api.xrpl.to/v1/tokens?sortBy=vol24hxrp&sortType=desc&limit=20 |
| One token | https://api.xrpl.to/v1/token/{md5} |
| Candles | https://api.xrpl.to/v1/ohlc/{md5}?range=1M&interval=1d |
| Search by name | POST https://api.xrpl.to/v1/search {"search": "solo"} |
| Live updates | wss://api.xrpl.to/ws/sync/ |
339 endpoints in all, with their parameters, in the API docs. Walk-throughs: token data, candles, WebSocket.
What it costs
- No key: a low rate for trying it out.
- Free key: 1M credits and 10 req/sec.
- Developer plan: $49/mo, 10M credits and 50 req/sec.
From the API’s own plan list; larger plans are in the docs.
Coming from Ripple’s Data API
Ripple’s old Data API v2 no longer answers most of its routes. The equivalents, endpoint by endpoint: Ripple Data API alternative.
Credit the data
Any app, site, bot or dashboard that shows xrpl.to data must show a visible, clickable “Data by xrpl.to” credit on the same screen, on every plan including calls with no key. Storing the data to serve it again from your own API needs permission first (API terms).
Questions
- Is there a free API for XRP Ledger token prices?
- Yes. The xrpl.to API answers without a key at a low rate, and a free key raises that to 10 req/sec and 1M credits. Any app that shows the data must credit xrpl.to with a visible link.
- Where do the prices come from?
- From trades on the XRP Ledger’s own exchange and its AMM pools, read from each ledger as it closes. Dollar values use the live XRP price.
- What replaced Ripple’s Data API?
- Most of its routes no longer answer. The xrpl.to API covers what it was used for: prices, candles, trades and accounts.