The official Ripple Data API v2 has been shut down. Here is how to migrate your application to the XRPL.to API with minimal code changes.
The Ripple Data API v2 at data.ripple.com has been permanently shut down. All endpoints return errors. Developers who relied on it for exchange data, account balances, and ledger queries need a replacement.
The XRPL.to API provides equivalent functionality for every Ripple Data API v2 endpoint, plus significantly expanded coverage including AMM pools, NFT data, AI analysis, and real-time WebSocket streams. The API is free to use and requires no migration of data formats.
Use this table to find the XRPL.to equivalent for each Ripple Data API v2 endpoint you were using:
Beyond matching the original Ripple Data API, XRPL.to provides features that were never available in the old API:
Here is a before-and-after comparison showing how to update your code:
Before (Ripple Data API v2 - no longer works):
// This endpoint is dead
fetch('https://data.ripple.com/v2/accounts/rAddress.../balances')
.then(res => res.json())
.then(data => console.log(data.balances));After (XRPL.to API):
// XRP balance + account info
fetch('https://api.xrpl.to/v1/account/balance/rAddress...')
.then(res => res.json())
.then(data => console.log(data));
// Token holdings (trustlines with USD values)
fetch('https://api.xrpl.to/v1/trustlines/rAddress...')
.then(res => res.json())
.then(data => console.log(data));The XRPL.to API is free and requires no registration for basic access. Check the full documentation for endpoint details, rate limits, and authentication options: