# Token Price Percentage Change API

> Token Price Percentage Change API is a paid API for AI agents from prices.x402utils.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Returns the percentage price change for one or more tokens over a specified time period (1h, 24h, 7d, or 4w), supporting CoinGecko IDs or chain:contract addresses.

## Facts

- Endpoint: GET https://prices.x402utils.workers.dev/v1/change?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-price-percentage-change-api-7a4a4359
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g8bGWZIURf-s9VdvhcH_q

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 token-price-percentage-change-api-7a4a4359
```

Example prompt: What's the percentage price change for bitcoin and ethereum over the last 24 hours?

## When to prefer this

Choose this endpoint when you need percentage price change over a specific time period (1h, 24h, 7d, or 4w) for one or more tokens, identified by CoinGecko ID or on-chain contract address. It is ideal for multi-token batch comparisons and supports any EVM chain via contract address, making it more flexible than single-asset endpoints. Prefer it over raw price endpoints when relative performance (delta) rather than absolute price is what matters.

## Known failure modes

- Invalid or unrecognized coin ID returns an error or omits the token from results
- Invalid period value (not one of 1h, 24h, 7d, 4w) may return a 400 error
- Missing 'coins' query parameter returns a 400 validation error
- Payment not completed via x402 returns a 402 Payment Required response
- Rate limits or upstream CoinGecko outages may cause 5xx errors

## How this service works

Live and historical token prices for agents, any chain: coingecko ids or chain:contract addresses, plus % change over a period. Paid per call via x402 (USDC on Base).

## Output

A JSON object containing the requested period label and a 'change_pct' map keyed by coin identifier (e.g. 'coingecko:bitcoin'), with the percentage price change as a decimal value (e.g. -0.06 means -6%).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "coins"
     ],
     "properties": {
      "coins": {
       "type": "string",
       "description": "comma-separated coin ids"
      },
      "period": {
       "type": "string",
       "description": "1h, 24h, 7d or 4w"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "period": "24h",
  "change_pct": {
   "coingecko:bitcoin": -0.06
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-price-percentage-change-api-7a4a4359/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prices.x402utils.workers.dev](https://www.zero.xyz/host/prices.x402utils.workers.dev/llms.txt)
