# DefiLlama Token Price Percentage Change

> DefiLlama Token Price Percentage Change is a paid API for AI agents from defillama.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the percentage price change over a specified period for one or many tokens, identified by chain address or CoinGecko ID.

## Facts

- Endpoint: GET https://defillama.use.x402atlas.com/prices-percentage
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defillama-token-price-percentage-change-2f1c6071
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YFxFBzErPCEI48RHtZdm4

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 defillama-token-price-percentage-change-2f1c6071
```

Example prompt: What's the percentage price change for ethereum (coingecko:ethereum) and solana (coingecko:solana) over the past 3 weeks using DefiLlama's price data?

## When to prefer this

Use this endpoint when you need to know how much a token's price has moved (as a percentage) over a given time window — ideal for performance comparison, momentum analysis, or alerting. Prefer this over current-price endpoints when relative change matters more than absolute price. Best for multi-coin comparisons and historical period analysis.

## Known failure modes

- Invalid or unrecognized coin identifier returns error or missing data for that coin
- Malformed period string (e.g. unsupported duration format) may return an error
- Timestamp too far in the past with no historical data returns empty or null values
- Missing required 'coins' query parameter returns a 400 or validation error
- Network or upstream DefiLlama data unavailability returns a 5xx error

## How this service works

Token price change by DefiLlama — percentage price move over a period for one or many coins.

## Output

A map of coin identifiers to their percentage price change over the specified period, showing how much each token's price moved (up or down) relative to the starting point.

## 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": [
      "coins"
     ],
     "properties": {
      "coins": {
       "type": "string",
       "pattern": "^[A-Za-z0-9:,_.-]+$",
       "maxLength": 3000,
       "minLength": 1,
       "description": "Comma-separated coins as {chain}:{address} or coingecko:{id}"
      },
      "period": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional duration over which to measure the change (e.g. 3w)"
      },
      "timestamp": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional unix timestamp to measure the change from (defaults to now)"
      },
      "lookForward": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional whether to look forward from timestamp (true/false)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "data"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "coins": {
         "type": "object",
         "description": "Map keyed by the requested coin id to its percentage price change (number)",
         "additionalProperties": {
          "type": "number"
         }
        }
       }
      },
      "queried_at": {
       "type": "string",
       "format": "date-time",
       "description": "Time the upstream was queried"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "coins": {
    "coingecko:ethereum": 12.34
   }
  },
  "queried_at": "2026-07-01T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-token-price-percentage-change-2f1c6071/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defillama.use.x402atlas.com](https://www.zero.xyz/host/defillama.use.x402atlas.com/llms.txt)
