# Onchain Health Oracle Price

> Onchain Health Oracle Price is a paid API for AI agents from onchain-health.mick8511.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Fetches Chainlink oracle prices on-chain for up to 10 token/USD pairs per call, returning answer, decimals, round ID, last update time, age, and a staleness flag across five EVM chains.

## Facts

- Endpoint: POST https://onchain-health.mick8511.workers.dev/oracle-price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchain-health-oracle-price-9cce5c49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JlYLXHcBU4HTtarQTV7dp

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 onchain-health-oracle-price-9cce5c49 -d '<json body>'
```

Example prompt: What are the current Chainlink oracle prices for ETH/USD, BTC/USD, and LINK/USD on Arbitrum — and are any of the feeds stale?

## When to prefer this

Use this endpoint when you need authoritative, on-chain Chainlink oracle prices with freshness metadata (age and staleness flag) for DeFi use cases such as liquidation checks, collateral valuation, or peg monitoring across Ethereum, Base, Arbitrum, Optimism, or Polygon. Prefer it over off-chain price APIs when on-chain data integrity and Chainlink round ID traceability matter.

## Known failure modes

- Unsupported chain name returns an error or empty response
- Unsupported pair symbol returns null or missing entry for that pair
- More than 10 pairs requested may be rejected or truncated
- Network congestion on the target chain may cause delayed reads
- Stale feeds return data but with staleness flag set to true

## How this service works

Chainlink oracle prices read on-chain: answer, decimals, round id, last update time, age and a staleness flag for up to 10 pairs per call (ETH, BTC, USDC, USDT, DAI, LINK, UNI, AAVE, stETH, USDe, ARB, OP, POL, AERO, cbETH vs USD) on Ethereum, Base, Arbitrum, Optimism or Polygon. Free sample: https://onchain-health.mick8511.workers.dev/sample

## Output

Returns a JSON object for each requested pair containing: the oracle price answer (in the feed's native decimals), the decimals field, the round ID, the last update timestamp, the age of the price in seconds, and a boolean staleness flag indicating whether the feed is considered outdated. Supports up to 10 pairs per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "One chain (default ethereum)"
  },
  "pairs": {
   "type": "string",
   "description": "Comma list of pairs, e.g. ETH/USD,BTC/USD"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchain-health-oracle-price-9cce5c49/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchain-health.mick8511.workers.dev](https://www.zero.xyz/host/onchain-health.mick8511.workers.dev/llms.txt)
