# Glassnode Addresses in Profit Count

> Glassnode Addresses in Profit Count is a paid API for AI agents from x402.glassnode.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns the number of unique on-chain addresses whose average acquisition price is below the current spot price for a given asset.

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/addresses/profit_count
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glassnode-addresses-in-profit-count-e6fbf76a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BRZ9IOEafBSzOx3Be3wXi

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 glassnode-addresses-in-profit-count-e6fbf76a
```

Example prompt: How many Bitcoin addresses are currently in profit? Pull the Glassnode daily addresses-in-profit count for BTC in JSON format.

## When to prefer this

Use this endpoint when you need an absolute count of profitable addresses for on-chain sentiment analysis, market cycle positioning, or tracking how many holders are sitting on unrealized gains. Prefer this over percentage-based metrics when you need raw numbers rather than ratios.

## Known failure modes

- Missing required asset symbol 'a' parameter returns 400 error
- Invalid asset symbol (e.g. unsupported token) returns error or empty data
- Invalid interval value returns validation error
- Insufficient USDC payment or missing x402 payment header returns 402 Payment Required
- Rate limiting or upstream Glassnode data unavailability returns 503

## How this service works

Number of Addresses in Profit — The number of unique addresses whose funds have an average buy price below the current spot price. Data by Glassnode.

## Output

An array of timestamped data points, each containing a Unix timestamp (t) and the count (v) of unique addresses whose average buy price is below the current spot price for the requested asset and time interval.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "a"
     ],
     "properties": {
      "a": {
       "type": "string",
       "description": "Asset symbol, e.g. BTC, ETH"
      },
      "f": {
       "enum": [
        "csv",
        "json"
       ],
       "type": "string",
       "description": "Response format: json or csv"
      },
      "i": {
       "enum": [
        "24h"
       ],
       "type": "string",
       "description": "Time interval / resolution, e.g. 24h, 1w, 1month"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "t": {
        "type": "number"
       },
       "v": {
        "type": "number"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glassnode-addresses-in-profit-count-e6fbf76a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.glassnode.com](https://www.zero.xyz/host/x402.glassnode.com/llms.txt)
