Try our new bot — SwapItXBot · 130 countries · x402 on XRP, Solana and Base · Pay per query in XRP or USDC

API

130 countries of source-backed economic, policy and regulatory data for AI agents. Pay per query in XRP or USDC on the XRP Ledger, Solana or Base. No API keys. No subscriptions. No sign-up.

The short version: call the endpoint, get a 402 with the price and receiving address, pay that amount, retry the same call with the payment proof, get your data. One payment buys one call.

Quick start

1. Send a request

# Country Brief — 1 XRP (XRPL)
POST https://xrplme.online/wc/v1/thailand/bot
Content-Type: application/json

{"message": "Tourism numbers for Thailand Q2 2025", "session_id": "demo-001"}

# Same data, USDC on Solana
POST https://xrplme.online/wc/v1/thailand/bot-solana

# Same data, USDC on Base
POST https://xrplme.online/wc/v1/thailand/bot-evm

2. Receive 402 Payment Required

{
  "x402Version": 2,
  "resource": { "url": "https://xrplme.online/wc/v1/thailand/bot", ... },
  "accepts": [{
    "scheme": "exact",
    "network": "xrpl:0",
    "amount": "1000000",          // drops = 1 XRP
    "asset": "XRP",
    "payTo": "razjTyzT6gBVH86iduU8HuEiZ2YUorNQj8",
    "extra": { "sourceTag": 804681468, "invoiceId": "7BEE..." }
  }]
}

3. Pay and retry with proof

Pay in XRP via Xaman or Joey, or sign programmatically with the xrpl SDK. Pay USDC via any Solana Pay wallet, or any Base wallet. Then retry the identical request with the payment proof attached.

# XRPL — signed transaction hash + the invoice id from the 402
X-PAYMENT-SIGNATURE: <tx_hash>
X-INVOICE-ID:        <invoice_hash>

# Solana — base64 payment payload
x_sol_payload: <base64_payment_payload>

# Base — the transaction hash of your own USDC transfer
PAYMENT-SIGNATURE: {"txHash":"0x..."}

Base (USDC) payments

Same country data, same three tiers, same request body and response shape as XRPL and Solana — payable in USDC on Base.

POST https://xrplme.online/wc/v1/{country}/bot-evm          $1.00 USDC
POST https://xrplme.online/wc/v1/{country}/bot-evm/ai       $7.00 USDC
POST https://xrplme.online/wc/v1/{country}/bot-evm/custom  $15.00 USDC

The 402 challenge

HTTP/1.1 402 Payment Required
{
  "x402Version": 2,
  "accepts": [{
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000000",
    "payTo": "0xa9FA5f8b14A8f683Ca634f34f0d3f5688417438c",
    "extra": { "settlement": "onchain-transfer", "decimals": 6 }
  }]
}

Paying on Base

  1. Send at least the tier amount in USDC on Base to the payTo address.
  2. Copy the transaction hash from your wallet or a Base explorer.
  3. Retry the same POST with that hash in the payment header.
curl -X POST https://xrplme.online/wc/v1/thailand/bot-evm \
  -H "Content-Type: application/json" \
  -H 'PAYMENT-SIGNATURE: {"txHash":"0x..."}' \
  -d '{"message":"recent policy changes"}'

A 200 returns the records. One transfer buys one call: a reused hash returns 409, a transfer below the tier price or older than one hour is rejected with 402, and a payment on another chain or to another address is not accepted. The transfer is verified directly against Base — nothing sits between your payment and the data.

Rehearse without real money

A Base Sepolia twin runs the identical verification: POST /wc/v1/{country}/bot-evm-test[/ai|/custom] on eip155:84532, same prices in test USDC. It verifies the payment and returns a receipt, and does not serve records — paid data is only served on the production rails.

Endpoints

EndpointXRPLSolanaBaseWhat you get
GET /wc/v1/{country}/healthFREEFREEFREEAvailability, record count, last refresh
POST /wc/v1/{c}/bot1 XRP——Country Brief — source-backed records
POST /wc/v1/{c}/bot/ai5 XRP——Deep Concierge — AI-parsed answer
POST /wc/v1/{c}/bot-solana—1 USDC—Country Brief
POST /wc/v1/{c}/bot-solana/ai—7 USDC—Deep Concierge
POST /wc/v1/{c}/bot-evm——1 USDCCountry Brief
POST /wc/v1/{c}/bot-evm/ai——7 USDCDeep Concierge
POST /wc/v1/{c}/bot-evm/custom——15 USDCCustom Bounded — scoped research
POST /mcpx402 per tool callMCP protocol for AI agents

Each rail also has /custom at 15 XRP / $15.00 USDC. Slugs are long names: thailand, hong_kong, papua-new-guinea. All 130 are listed on the countries page.

Endpoint tester

Pick a country, rail and tier, then send. You will get the live 402 challenge with the exact price and address. Paying from this page works on Base only — a browser can hand back a Base transaction hash, but XRP and Solana must be signed by a wallet before sending.
XRP1 XRP / 5 XRP
USDC$1.00 / $7.00 · Solana
USDC$1.00 / $7.00 · Base
Country Brief
Source-backed records
Deep Concierge
AI-parsed answer
POST https://xrplme.online/wc/v1/thailand/bot
Press "Send query" to see the live 402 challenge.

Example queries

Same request format on every endpoint. Paste these into the tester above.
# Country Brief — 1 XRP / $1.00 USDC
"What are Thailand business registration requirements?"

# Deep Concierge — 5 XRP / $7.00 USDC
"Compare data residency rules across Vietnam, Singapore and Indonesia"

# Custom Bounded — 15 XRP / $15.00 USDC
"Full regulatory posture for entering the Japanese payments market"

Request format

{
  "message":    "your question in plain English",
  "session_id": "any string you choose"
}

Both fields are strings. session_id is for your own correlation — the server echoes nothing personal and stores no identity.

cURL examples

# Free health check
curl https://xrplme.online/wc/v1/thailand/health

# See the 402 challenge (XRPL)
curl -X POST https://xrplme.online/wc/v1/thailand/bot \
  -H "Content-Type: application/json" \
  -d '{"message":"recent policy changes"}'

# Pay on Base with your transaction hash
curl -X POST https://xrplme.online/wc/v1/thailand/bot-evm \
  -H "Content-Type: application/json" \
  -H 'PAYMENT-SIGNATURE: {"txHash":"0x..."}' \
  -d '{"message":"recent policy changes"}'

MCP for AI agents

11 tools. Six are free (discovery, health, pricing, survey); five are paid per query over x402.

ToolReturnsAccessPrice
xrplme_list_countriesAll 130 countries with slug, name, live statusFree—
xrplme_get_country_statusHealth probe: records and last refreshFree—
xrplme_get_pricingPricing on all three railsFree—
xrplme_get_country_dataSource-backed economic, policy, regulatory dataPaid1 XRP / $1.00
xrplme_get_country_schemaStructured record plus freshnessPaid1 XRP / $1.00
xrplme_screenSanctions screening for a person or companyPaid$2.00
xrplme_entity_lookupCompany look-up and permanent entity IDPaid$1.00
xrplme_entity_ownershipOwnership chain to the ultimate parentPaid$5.00
xrplme_get_survey_questionsSurvey questions for agentsFree—
xrplme_submit_surveySubmit agent feedbackFree—
xrplme_get_survey_statsAggregated survey statisticsFree—

Connect

POST https://api.xrplme.online/mcp
Content-Type: application/json
Accept: application/json, text/event-stream

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {
    "protocolVersion": "2025-06-18",
    "capabilities": {},
    "clientInfo": { "name": "agent", "version": "1.0" }
  }
}
# Python (mcp SDK)
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client

async with streamablehttp_client("https://api.xrplme.online/mcp") as (read, write, _):
    async with ClientSession(read, write) as session:
        await session.initialize()
        result = await session.call_tool("xrplme_list_countries", {})
        print(result)

# Node.js (@modelcontextprotocol/sdk)
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";

const transport = new StreamableHTTPClientTransport(
  new URL("https://api.xrplme.online/mcp")
);
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(transport);
const result = await client.callTool({ name: "xrplme_list_countries", arguments: {} });
console.log(result);

Investigate: screening and company look-up

Two more datasets on the same rails. Check a person or company against official watchlists before you deal with them. Look up a company and walk its ownership to the ultimate parent. Pay per call, no signup, no key.

DatasetPriceEndpoints
Screening$2.00 / check/wc/screen/bot · -solana · -evm
Company look-up$1.00 / lookup/wc/entity/lookup/bot · -solana · -evm
Ownership tree$5.00 / tree/wc/entity/ownership/bot · -solana · -evm
curl -X POST https://xrplme.online/wc/screen/bot-evm \
  -H "Content-Type: application/json" \
  -d '{"name":"Smith Holdings Ltd"}'

More detail on the Investigate page.

No USDC? Fund your wallet with a card

The rails accept XRP on the XRP Ledger, or USDC on Solana or Base. If you hold none, buy USDC with a debit or credit card at Crossmint — Apple Pay and Google Pay work — using your own wallet as the destination, then pay the endpoint from that wallet.

SDKs and examples

Proof of delivery

Every paid call on the Solana and Base rails returns a signed receipt: it proves these exact bytes came from xrplme.online, for that payment, from that dataset build. Read it at /proof/{receipt_id} — the id is in the X-Receipt-Id response header — and check the signature against the public key at /proof/pubkey. No account, no API key.

Each day’s receipts are fingerprinted at /proof/daily/{date} and chained to the day before, so history cannot be quietly rewritten.

Response schema (v1)

All paid API responses follow the v1 JSON schema at schema/v1/response-schema.json.

{
  "meta": {
    "country_slug": "thailand",
    "query_id": "q_thailand_...",
    "retrieved_at": "2026-11-22T12:00:00Z",
    "payment": {"rail": "xrpl", "txid": "E5A...", "amount": "1 XRP", "invoice_id": "..."},
    "schema_version": "1.0.0"
  },
  "sources": [...],
  "facts": {...},
  "synthesis": {...},
  "agent_hints": {...}
}