Get referral stats
get_referral_statsReferral stats (read-only). Pass code for public aggregate-safe counts on a known code (clicks, sales, referred users; no payout address or earnings ledger) — no auth needed. Omit code and sign in (or send an API key) for your own full dashboard including earnings and payouts. Stats follow the account and API key that own the widget or referral code — use that owner key, not a guest/secondary key. Programme terms: https://stabledomains.net/affiliates.json. Available on the full MCP and the read-only discover MCP (/api/mcp/discover).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_referral_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Existing public referral code. Required when you are not signed in; returns public counts only. |