XRPL.to API Referral API

The Referral API from XRPL.to API — 10 operation(s) for referral.

GitHub OpenAPI

Operations 10

GET /referral/{address} Get soldier profile #
GET /referral/{address}/stats Badge progress and tier stats #
GET /referral/leaderboard/{type} Leaderboard #
GET /referral/meta/tiers Tier definitions #
GET /referral/meta/badges Badge definitions #
GET /referral/meta/missions Mission quest chains #
GET /referral/meta/season Seasonal leaderboard rewards #
GET /referral/{address}/earnings Referral earnings breakdown for an address #
GET /referral/{address}/fees Referral fee history; response includes asReferrerTotal/asRecruitTotal for… #
GET /referral/resolve/{code} Resolve a referral code to validity/owner #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/xrpl-to:xrpl-to-referral-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

xrpl-to-referral-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: XRPL.to Referral API
  description: 'XRPL token analytics, market data, NFT, trading, and on-chain account API.


    ## Usage policy


    Applies to every caller — no key, Free, and every paid tier alike.


    - **Attribution is required.** Any app, website, bot, or dashboard that displays xrpl.to data must show a visible, clickable credit to xrpl.to on the same screen as that data — not buried in an about page. Use: `Data by xrpl.to`

    - **Redistribution needs permission.** Storing our data and re-serving it from your own API, dataset, or public dashboard requires written permission first. Email hello@xrpl.to — the answer is usually yes, we just need to know who is doing it.

    - **Indexers and aggregators:** use the paginated list endpoints instead of looping one item at a time, cache what you fetch, and honour `Retry-After` on a 429 — a repeated 429 means back off, not retry. Get a key rather than running anonymous so we can raise your limits instead of blocking you.

    - **Partner tier** (invitation-only, free): 100 req/sec, 200M credits/mo, direct support — for integrations that credit us properly. Email hello@xrpl.to or DM @xrplto on X.


    Successful responses on the tiers that pay nothing (anonymous, free, partner) carry an `attribution` string right after `success`, restating this requirement. It is informational — safe to ignore in code, but not optional to comply with.'
  version: '1.20'
  contact:
    name: XRPL.to
    url: https://xrpl.to
servers:
- url: https://api.xrpl.to/v1
  description: Production (canonical)
- url: https://api.xrpl.to/api
  description: Production (alias — identical API, prefer /v1)
tags:
- name: Referral
paths:
  /referral/{address}:
    get:
      tags:
      - Referral
      summary: Get soldier profile
      operationId: get_referral_address
      parameters:
      - name: address
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
  /referral/{address}/stats:
    get:
      tags:
      - Referral
      summary: Badge progress and tier stats
      operationId: get_referral_address_stats
      parameters:
      - name: address
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
  /referral/leaderboard/{type}:
    get:
      tags:
      - Referral
      summary: Leaderboard
      operationId: get_referral_leaderboard_type
      parameters:
      - name: type
        in: path
        required: true
        schema:
          type: string
        description: recruits|streak|season|whales
      - name: limit
        in: query
        required: false
        description: int (default 100, max 500)
        schema:
          type: integer
      - name: offset
        in: query
        required: false
        description: int (default 0)
        schema:
          type: integer
      responses:
        '200':
          description: Success
  /referral/meta/tiers:
    get:
      tags:
      - Referral
      summary: Tier definitions
      operationId: get_referral_meta_tiers
      responses:
        '200':
          description: Success
      parameters: []
  /referral/meta/badges:
    get:
      tags:
      - Referral
      summary: Badge definitions
      operationId: get_referral_meta_badges
      responses:
        '200':
          description: Success
      parameters: []
  /referral/meta/missions:
    get:
      tags:
      - Referral
      summary: Mission quest chains
      operationId: get_referral_meta_missions
      responses:
        '200':
          description: Success
      parameters: []
  /referral/meta/season:
    get:
      tags:
      - Referral
      summary: Seasonal leaderboard rewards
      operationId: get_referral_meta_season
      responses:
        '200':
          description: Success
      parameters: []
  /referral/{address}/earnings:
    get:
      tags:
      - Referral
      summary: Referral earnings breakdown for an address
      operationId: get_referral_address_earnings
      parameters:
      - name: address
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
  /referral/{address}/fees:
    get:
      tags:
      - Referral
      summary: Referral fee history; response includes asReferrerTotal/asRecruitTotal for…
      operationId: get_referral_address_fees
      parameters:
      - name: address
        in: path
        required: true
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: int (default 50, max 100)
        schema:
          type: integer
      - name: offset
        in: query
        required: false
        description: int (default 0)
        schema:
          type: integer
      responses:
        '200':
          description: Success
  /referral/resolve/{code}:
    get:
      tags:
      - Referral
      summary: Resolve a referral code to validity/owner
      operationId: get_referral_resolve_code
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
    WalletSignature:
      type: apiKey
      in: header
      name: X-Signature
      description: Send X-Wallet, X-Timestamp, X-Signature, X-Public-Key headers.
    AdminKey:
      type: apiKey
      in: header
      name: X-Admin-Key