# CoinGecko Global DeFi Stats via Locus x402

> CoinGecko Global DeFi Stats via Locus x402 is a paid API for AI agents from coingecko.x402.paywithlocus.com, paid per call via x402, $0.06/call, status unknown (last checked 2026-09-14).

Fetches global decentralized finance (DeFi) market statistics such as total DeFi market cap, trading volume, and DeFi dominance via CoinGecko, billed per-call in USDC over x402.

## Facts

- Endpoint: POST https://coingecko.x402.paywithlocus.com/coingecko/global-defi
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-global-defi-stats-via-locus-x402-c7c9f0d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tapxE3umj07zWOQ0X0wKh

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 coingecko-global-defi-stats-via-locus-x402-c7c9f0d4 -d '<json body>'
```

Example prompt: What's the current global DeFi market cap and DeFi dominance percentage according to CoinGecko — I want the latest snapshot of the overall DeFi sector.

## When to prefer this

Choose this endpoint when you need authoritative, real-time global DeFi market statistics (market cap, volume, dominance) from CoinGecko and want a pay-per-call model via x402/USDC rather than managing a CoinGecko API key subscription. Ideal for agents that need occasional DeFi macro data without committing to a recurring API plan.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 payment not accepted, resulting in a 402 response
- CoinGecko API rate limit or downtime causing upstream error
- Malformed request body causing a 400 validation error
- Network timeout if CoinGecko data source is slow to respond
- Empty or missing data fields if CoinGecko's DeFi data is temporarily unavailable

## How this service works

Cryptocurrency market data — prices, charts, market cap, exchanges, trending coins, global stats, NFTs, derivatives, and on-chain data.

## Output

Returns a JSON object containing global DeFi market metrics sourced from CoinGecko, including total DeFi market capitalization, 24-hour trading volume, DeFi dominance as a percentage of total crypto market cap, and the number of DeFi coins tracked. Also includes payment settlement metadata (settled USDC amount, authorized max) and a request ID with a status URL.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {},
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-global-defi-stats-via-locus-x402-c7c9f0d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coingecko.x402.paywithlocus.com](https://www.zero.xyz/host/coingecko.x402.paywithlocus.com/llms.txt)
