Overview

Get started

XRPL.to API

v1.20

REST and WebSocket access to XRP Ledger tokens, market data, DEX trades, accounts and NFTs — the same API that powers xrpl.to.

Get your free API key for higher rate limits and usage tracking. Most endpoints also work without one.

Base URL

https://api.xrpl.to/v1

Attribution is required

If your app, site or bot shows xrpl.to data, show a visible clickable credit — Data by xrpl.to — on the same screen. It applies with no key, on Free and on every paid plan, and it is what keeps the API free. Serving our data again from your own API or dataset needs permission first. Building an indexer or aggregator? The Partner tier is free for integrations that credit us.

Quick start

Top 10 tokens by 24h volume:

curl "https://api.xrpl.to/v1/tokens?limit=10&sort=vol24hxrp"

Top 10 NFT collections by 24h volume:

curl "https://api.xrpl.to/v1/nft/collections?limit=10&sort=totalVol24h"

Requests with generic programmatic User-Agent strings (e.g. Python-urllib) may be challenged by the CDN/WAF with a non-JSON 403 before reaching the API. Always send a descriptive User-Agent identifying your app (e.g. "myapp/1.0").

Where to look

Building with an AI coding agent

Point your agent at these rather than this page: the same reference, in a form it reads directly.

SourceWhat it is
MCP serverPOST https://api.xrpl.to/v1/mcp — read-only tools for tokens, NFTs, accounts and markets
llms.txtWhat to call for what you have, the trade cycle, and the rules agents most often get wrong
OpenAPI 3.1Every HTTP endpoint and its parameters
/v1/docsThe JSON this page is built from, rate limits included
Copy for LLMOn each section of this page: that section as markdown

Keep keys and seeds out of generated code

Never put an API key in browser or mobile code; call the API from a server. Sign transactions on the user’s device: the API never needs a seed, so an agent should never ask for one. Try things with the testnet faucet and dry-run with POST /v1/submit/preview before spending real XRP.