# Nansen Address PnL Summary

> Nansen Address PnL Summary is a paid API for AI agents from api.nansen.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns a summarized profit and loss breakdown for a given blockchain address using Nansen's wallet analytics data

## Facts

- Endpoint: GET https://api.nansen.ai/api/v1/profiler/address/pnl-summary
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-nansen-ai-f139934d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ObjCO9iM3tD3tVtb-tO1i

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-nansen-ai-f139934d
```

Example prompt: Pull up the Nansen PnL summary for wallet address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 — I want to see their overall profit and loss performance.

## When to prefer this

Use this endpoint when you need a high-level financial performance summary for a blockchain address, particularly when evaluating whether a wallet is a net winner or loser. Prefer this over the detailed PnL endpoint when you want a concise aggregated view rather than individual trade-level data. Ideal for quickly profiling 'smart money' wallets or assessing trader quality.

## Known failure modes

- Invalid or malformed address returns a 400 error
- Address not found or no data available returns empty result or 404
- Rate limiting or quota exceeded returns a 429 error
- Network or upstream data service unavailable returns 503
- Unparseable address format causes validation error

## How this service works

Get Address PnL Summary Data

## Output

Returns an aggregated PnL summary for the given address, including realized and unrealized gains/losses, total return metrics, and trade performance data sourced from Nansen's on-chain wallet analytics.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "title": "ProfilerAddressPnlSummaryRequest",
 "examples": [
  {
   "date": {
    "to": "2025-05-03T23:59:59Z",
    "from": "2025-05-01T00:00:00Z"
   },
   "chain": "ethereum",
   "address": "0x39d52da6beec991f075eebe577474fd105c5caec"
  },
  {
   "date": {
    "to": "2025-05-03T23:59:59Z",
    "from": "2025-05-01T00:00:00Z"
   },
   "chain": "ethereum",
   "entity_name": "Vitalik Buterin"
  }
 ],
 "required": [
  "chain",
  "date"
 ],
 "properties": {
  "date": {
   "type": "object",
   "title": "DateRange",
   "properties": {
    "to": {
     "anyOf": [
      {
       "type": "string"
      }
     ],
     "title": "To",
     "examples": [
      "2025-01-31T23:59:59Z"
     ],
     "description": "End date in ISO 8601 format (e.g., 2025-01-31T23:59:59Z or 2025-01-31)"
    },
    "from": {
     "anyOf": [
      {
       "type": "string"
      }
     ],
     "title": "From",
     "examples": [
      "2025-01-01T00:00:00Z"
     ],
     "description": "Start date in ISO 8601 format (e.g., 2025-01-01T00:00:00Z or 2025-01-01)"
    }
   },
   "description": "Date range model matching the API schema."
  },
  "chain": {
   "enum": [
    "all",
    "arbitrum",
    "avalanche",
    "base",
    "bnb",
    "ethereum",
    "linea",
    "mantle",
    "monad",
    "optimism",
    "plasma",
    "polygon",
    "ronin",
    "scroll",
    "sei",
    "solana",
    "sonic"
   ],
   "type": "string",
   "title": "ProfilerPnLChain",
   "description": "Chains supported in profiler PnL analysis."
  },
  "address": {
   "anyOf": [
    {
     "type": "string"
    }
   ],
   "title": "Address",
   "examples": [
    "0x39d52da6beec991f075eebe577474fd105c5caec",
    "8zFZHuSRuDpuAR7J6FzwyF3vKNx4CVW3DFHJerQhc7Zd"
   ],
   "description": "Address to get PnL summary for"
  },
  "entity_name": {
   "anyOf": [
    {
     "type": "string"
    }
   ],
   "title": "Entity Name",
   "examples": [
    "Vitalik Buterin",
    "Binance"
   ],
   "description": "Entity name to get PnL summary for"
  }
 },
 "description": "",
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "title": "ProfilerAddressPnlSummaryResponse",
 "required": [
  "pagination",
  "top5_tokens",
  "traded_token_count",
  "traded_times",
  "realized_pnl_usd",
  "realized_pnl_percent",
  "win_rate"
 ],
 "properties": {
  "win_rate": {
   "type": "number",
   "title": "Win Rate",
   "description": "Number of sales where price of the token was higher than cost basis"
  },
  "pagination": {
   "type": "object",
   "title": "PaginationInfo",
   "properties": {
    "page": {
     "type": "integer",
     "title": "Page",
     "default": 1,
     "minimum": 1,
     "description": "Current page number"
    },
    "per_page": {
     "type": "integer",
     "title": "Per Page",
     "default": 10,
     "maximum": 1000,
     "minimum": 1,
     "description": "Number of records per page"
    },
    "is_last_page": {
     "type": "boolean",
     "title": "Is Last Page",
     "default": true,
     "description": "Whether this is the last page"
    }
   },
   "description": "Pagination information for API responses."
  },
  "top5_tokens": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "ProfilerTopToken",
    "required": [
     "realized_pnl",
     "realized_roi",
     "token_address",
     "token_symbol",
     "chain"
    ],
    "properties": {
     "chain": {
      "type": "string",
      "title": "Chain",
      "description": "Blockchain chain"
     },
     "realized_pnl": {
      "anyOf": [
       {
        "type": "number"
       }
      ],
      "title": "Realized Pnl",
      "description": "Realized profit and loss in USD"
     },
     "realized_roi": {
      "anyOf": [
       {
        "type": "number"
       }
      ],
      "title": "Realized Roi",
      "description": "Realized return on investment as percentage"
     },
     "token_symbol": {
      "type": "string",
      "title": "Token Symbol",
      "description": "Token symbol"
     },
     "token_address": {
      "type": "string",
      "title": "Token Address",
      "description": "Token contract address"
     }
    },
    "description": "Individual top token record for PnL summary.\n\nRepresents a top profitable token from the wallet's trading history."
   },
   "title": "Top5 Tokens",
   "description": "Top 5 tokens by realized profit"
  },
  "traded_times": {
   "type": "integer",
   "title": "Traded Times",
   "description": "Total number of sales (outflow or dex sell)"
  },
  "realized_pnl_usd": {
   "type": "number",
   "title": "Realized Pnl Usd",
   "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-nansen-ai-f139934d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.nansen.ai](https://www.zero.xyz/host/api.nansen.ai/llms.txt)
