GMGN wallet profile
A public wallet on GMGN: name, tags and ranks, native balance, total value, PnL and realized and unrealized profit over 1 day, 7 days and 30 days, win-rate fields, buys and sells, PnL distribution, risk ratios and the wallet's recent trades (token, side, amount, USD value, price, fee).
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
chain | sol | eth | bsc | base | tron | blast | Blockchain (default sol). Example: sol |
addressrequired | string | Wallet address. Example: DfMxre4cKmvogbLrPigxmibVTTQDuzjdXojWzjCXXhzj |
period | 1d | 7d | 30d | Statistics period (default 7d). |
trades | integer | Recent trades to include (0-50, default 20; 0 skips them). |
trade_type | buy | sell | Only buys or only sells in the recent trades. |
trades_cursor | string | Value of trades_next_cursor from the previous response, for older trades. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/gmgn/v1/wallet?address=DfMxre4cKmvogbLrPigxmibVTTQDuzjdXojWzjCXXhzj" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/gmgn/v1/wallet",
params={"address": "DfMxre4cKmvogbLrPigxmibVTTQDuzjdXojWzjCXXhzj"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/gmgn/v1/wallet");
url.searchParams.set("address", "DfMxre4cKmvogbLrPigxmibVTTQDuzjdXojWzjCXXhzj");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).