XRP Ledger data API: quickstart
xrpl.to serves XRP Ledger data over a REST API at https://api.xrpl.to/v1: token prices and charts, holders, DEX and AMM trades, NFTs, accounts and ledgers. Most read endpoints work without a key (333 requests a day), and CORS is open, so the calls below also work from a browser.
A free key, made by signing with your XRP Ledger wallet, raises that to 1M credits a month at 10 requests a second. Paid plans go higher: pricing. The responses below are real answers, shortened to a few fields; the numbers change with the market.
The most traded tokens
Tokens sorted by 24-hour volume in XRP. lightweight keeps each token to its main fields, and skip_metrics leaves out the market-wide totals.
curl "https://api.xrpl.to/v1/tokens?limit=2&sort=vol24hxrp&lightweight=true&skip_metrics=true"{
"success": true,
"total": 20530,
"count": 2,
"sortBy": "vol24hxrp",
"tokens": [
{
"md5": "0dd550278b74cb6690fdae351e8e0df3",
"name": "RLUSD",
"issuer": "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De",
"exch": 0.9170071158252175,
"vol24hxrp": 6910604.674788,
"marketcap": 795159484.5285692,
"holders": 68029
}
]
}One token
A token by its slug (issuer, a dash, then the currency code). Here it is Ripple USD (RLUSD). exch is the price in XRP.
curl "https://api.xrpl.to/v1/token/rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De-524C555344000000000000000000000000000000?skip_metrics=true"{
"success": true,
"token": {
"md5": "0dd550278b74cb6690fdae351e8e0df3",
"name": "RLUSD",
"issuer": "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De",
"currency": "524C555344000000000000000000000000000000",
"exch": 0.9170071158252175,
"usd": "1.0011595631055400982",
"pro24h": 5.999638867144008,
"vol24hxrp": 6910604.587473,
"marketcap": 795159484.5285692,
"holders": 68029,
"tvl": 3955876.987316,
"verified": 1
}
}An account's XRP balance
The balance, what the reserve holds back, and what the account can spend.
curl "https://api.xrpl.to/v1/account/balance/rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De"{
"success": true,
"account": "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De",
"balance": 94.794004,
"total": 99.594004,
"spendableDrops": 94794004,
"reserve": 4.800000000000001,
"ownerCount": 19,
"domain": "ripple.com",
"inception": "2024-08-08T20:55:31.000Z"
}A ledger from 2013
Any ledger by its index, back to the early history of the XRP Ledger.
curl "https://api.xrpl.to/v1/ledger/1000000?transactions=false"{
"success": true,
"ledger_index": "1000000",
"ledger_hash": "C99A7A6BF18BA6502161AA3E3FC345E6EA864B096801E49DFE2C4E2842AB17E7",
"close_time_human": "2013-06-10T06:02:00.000Z",
"total_coins": "99999999987874352",
"txn_count": 0,
"validated": true
}More
- API documentation, every endpoint with its parameters
- OpenAPI 3.1 spec
- MCP server for AI assistants
- Testnet sandbox to try transactions without real XRP