Pro Max

API Documentation

Integrate SolXRay token scanning into your own tools, bots, and dashboards.

Authentication

All API requests require your API key in the x-api-key header.

Find your API key in Dashboard → Account.

curl -H "x-api-key: YOUR_API_KEY" \
  "https://solxray.com/api/v1/scan?mint=TOKEN_ADDRESS"

Scan Token

GET/api/v1/scan?mint=TOKEN_ADDRESS

Returns full risk analysis for a Solana token including scores, flags, AI analysis, market data, and holder information.

Parameters

ParameterTypeDescription
mintstringSolana token mint address (base58)

Headers

HeaderValue
x-api-keyYour Pro Max API key

Example Request

# cURL
curl -H "x-api-key: sxr_abc123..." \
  "https://solxray.com/api/v1/scan?mint=JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"

# Python
import requests
r = requests.get(
    "https://solxray.com/api/v1/scan",
    params={"mint": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"},
    headers={"x-api-key": "sxr_abc123..."}
)
data = r.json()
print(f"Score: {data['scores']['overall']}/100")
print(f"Verdict: {data['recommendation']}")

# JavaScript
const res = await fetch(
  "https://solxray.com/api/v1/scan?mint=JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
  { headers: { "x-api-key": "sxr_abc123..." } }
);
const data = await res.json();
console.log(data.scores.overall, data.recommendation);

Response

{
  "token": {
    "name": "Jupiter",
    "symbol": "JUP",
    "mint": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"
  },
  "scores": {
    "overall": 92,
    "rugPull": 100,
    "liquidity": 90,
    "distribution": 85,
    "activity": 88
  },
  "flags": [],
  "recommendation": "SAFE",
  "aiAnalysis": "Jupiter (JUP) shows strong fundamentals...",
  "market": {
    "priceUsd": 0.171,
    "marketCap": 610000000,
    "liquidity": 4500000,
    "volume24h": 2300000
  },
  "holders": {
    "top10": [
      { "address": "...", "amount": 1000000, "percentage": 5.2 }
    ],
    "concentration": 42.1
  }
}

Error Codes

CodeMeaning
401Missing or invalid API key
403API key valid but plan does not include API access
404Token not found on any DEX
429Rate limit exceeded (120 requests/hour)
500Internal server error

Rate Limits

120 requests/hour per API key

Unlimited daily scans for Pro Max plan

Cached results (within 5 minutes) don't count against your scan limit

Rate limit headers: X-RateLimit-Remaining

Use Cases

Trading Bot

Scan tokens before your bot buys. Reject anything below score 60.

Telegram Bot

Build a group bot that auto-scans any token address posted in chat.

Portfolio Monitor

Scan your holdings daily and alert when a risk score drops.

Dashboard

Build a custom dashboard showing real-time risk data for your watchlist.

Get API Access

Pro Max plan includes unlimited API access for $79/month.

Upgrade to Pro Max