API · VERSION 1
The exit map, for your AI agent
Send a Robinhood Chain or Solana token address.Get back the same read the site shows: Token Score, the scenario, the exit walls and the top whales, as one small JSON answer.
ROBINHOOD CHAINSOLANA
01What it is
DIPLAB reads how the top holders of a token traded before, and finds the multiple at which each of them takes profit.The API gives your agent that read without a browser.
The numbers come from the same scan that the site and the Telegram bot use.If someone scanned the token a few minutes ago, you get that result at once.
02Get a key
- Write to @diplab_crpt on X.Tell us who you are and what your agent does.
- We send you a personal key.Keep it secret, like a password.
- Send the key in the
X-API-Keyheader with every request.
Never put the key in a URL, in a public repository or in a prompt that other people can read.
03How a request works
A fresh scan takes from a few seconds up to about a minute.The API never makes you wait on an open connection.It answers at once, and you ask again later.
- 1 · REQUESTAsk for a tokenCall the endpoint with the token address and your key.
- 2 · PENDINGThe scan runsYou get HTTP 202, the progress and
retry_afterin seconds. - 3 · POLLAsk againWait
retry_afterseconds and send the same request again. - 4 · READYRead the answerYou get HTTP 200 with
"status": "ready"and the read.
Polling a scan that is already running is free: it does not count as a new scan in your limits.
04The endpoint
REQUEST
GET https://diplab.trade/api/v1/scan?token=0x…
X-API-Key: your-key
token- The token contract address on Robinhood Chain:
0xand 40 hex characters. X-API-Key- Your key, in the request header.
Pending answer · HTTP 202
{
"api_version": "1",
"status": "pending",
"token": "0x36e93e3f85472f206faf96a2c2313355f9be1e18",
"progress": 51,
"stage": "fresh",
"retry_after": 3
}
progress goes from 0 to 99 while the scan runs.When the lab is full, stage is waiting_for_slot: the scan has not started yet, and the request is not counted in your limits.
Ready answer · HTTP 200
{
"api_version": "1",
"status": "ready",
"token": {
"address": "0xf7894d31d569e6330592d346ecfefdf4257f3ec1",
"symbol": "SABLE",
"name": "Sable Network"
},
"platform": "Pons V2",
"score": 63,
"verdict": "FAIR",
"note": null,
"main_reason": "Holders look fair: 60% of the top wallets are brand-new.",
"scenario": {
"direction": "down",
"text": "Scenario -10%, if whales follow their habits"
},
"exit_walls": [
{
"multiplier": 2.9452,
"price_usd": 3.72572e-05,
"supply_pct": 3.42,
"whales": 1,
"next_wall_up": true
}
],
"supply_past_exit_pct": 2.06,
"top_whales": [
{
"address": "0x08c5e1665eca48310fd400a7cb81922098151a2a",
"class": "PANIC SELLER",
"status": "WAITING",
"exit_habit_x": 0.9,
"waits_at_x": 18.66,
"supply_pct": 1.9
}
],
"scanned_at": "2026-11-14T21:45:29Z",
"cached": false,
"complete": true,
"url": "https://diplab.trade/?token=0xf7894d31d569e6330592d346ecfefdf4257f3ec1"
}
The example is shortened: a real answer has up to 4 exit walls and up to 6 whales.
05What the fields mean
platform- Where the token was born: Pons V1, Pons V2, Flap, Long.xyz, Bankr or Pools.
score- Token Score from 0 to 100: how clean the top holders look.
nullwhen the token has no score yet. verdict- The band of the score: SAFE, FAIR, SHADY or TOXIC.
nulltogether with the score. note- Read the answer with care when this is set, for example "this token has no score yet".Otherwise
null. main_reason- The main reason for the score, in one sentence.
scenario- Where the chart is likely to go if whales follow their habits:
directionis up, down, flat or shady (an up move that holders can break), andtextsays it in words. exit_walls- Up to 4 price levels where whales are likely to sell, from the highest down.
multiplieris the level against the price now (2 means twice the price),price_usdis the same level in dollars,supply_pctis the share of supply behind it,whalesis how many whales sell there. supply_past_exit_pct- Share of supply held by whales already past their exit price: they can sell at any time.
top_whales- The biggest whales with a class: SNIPER, CLONE, FRESH, MYSTERY, PANIC SELLER, PAPER HANDS, SWING or DIAMOND HANDS.
statusis WAITING, PAST EXIT or UNKNOWN EXIT.exit_habit_xis the multiple of its own entry where it usually sells,waits_at_xis its exit against the price now while it waits. handed_out- Top wallets that got the token without buying it:
supply_pct,wallets,dump_pct(how far the price falls if they all sell at once,nullwithout a market) andmap_hidden(the exit map is held back). cachedtruewhen the answer came from a scan made before your request.completefalsewhen the scan ran out of time before it read every wallet it could.url- The full exit map of the token on diplab.trade, to show to a person.
06Status codes
- 200 ·
ready - The read is ready.
- 200 ·
unsupported - DIPLAB cannot read this token, for example it was born on a launchpad DIPLAB does not support.
reasonsays why. - 200 ·
error - The scan did not finish, for example the network is slow.
reasonsays what happened.Try again in a minute. - 202 ·
pending - The scan runs or waits for a free slot.Ask again after
retry_afterseconds (also in theRetry-Afterheader). - 400
{"error": "invalid_token_address"}: the address is not 0x and 40 hex characters.- 401
{"error": "invalid_api_key"}: the key is missing or wrong.- 429
{"error": "rate_limited", "limit": "minute", "retry_after": 42}: a limit is reached.limitisminute,dayorrequests.Waitretry_afterseconds.- 503
{"error": "partner_api_disabled"}: the API is switched off for now.
07Limits
- New scans
- 10 a minute and 1,000 a day for each key.
- What counts
- Only a request that starts a new scan.Cached answers, polls of a running scan and requests that wait for a slot are free.
- All requests
- Up to 120 a minute for each key, polls included.This protects you from an agent stuck in a loop.
- Fresh results
- A result stays in the cache for about 5 minutes.Asking for the same token again in that time is instant.
People on the site and in the Telegram bot always go first.When they keep the lab busy, your scan waits for a free slot and you get pending with waiting_for_slot.
08Examples
curl
curl -s -H "X-API-Key: $DIPLAB_KEY" \
"https://diplab.trade/api/v1/scan?token=0xf7894d31d569e6330592d346ecfefdf4257f3ec1"
Python
import json, os, time, urllib.request
API = "https://diplab.trade/api/v1/scan?token="
KEY = os.environ["DIPLAB_KEY"]
def scan(token, max_wait=120):
deadline = time.time() + max_wait
while time.time() < deadline:
req = urllib.request.Request(API + token, headers={"X-API-Key": KEY})
try:
with urllib.request.urlopen(req, timeout=20) as r:
body = json.load(r)
except urllib.error.HTTPError as e:
body = json.load(e)
if e.code != 429:
raise RuntimeError(body["error"])
if body.get("status") in ("ready", "unsupported", "error"):
return body
time.sleep(body.get("retry_after", 3))
raise TimeoutError("no answer in time")
res = scan("0xf7894d31d569e6330592d346ecfefdf4257f3ec1")
if res["status"] == "ready":
print(res["verdict"], res["score"], res["scenario"]["text"])
Python 3, no extra packages.A 202 answer is a normal answer for urlopen, so the loop reads it like a 200.
09Solana tokens
token also takes a Solana token address: the mint, in base58, 32 to 44 characters.Send it exactly as it is, base58 is case sensitive.
chain- In ready and pending answers:
"robinhood"or"solana", the chain of the token.The other fields mean the same on both chains,price_usdis in dollars on both. platform- For Solana: pump.fun, Bags, Jupiter Studio, Meteora DBC, Bonk.fun or StonkFun.