# Ethprice

> Ethprice is a paid API for AI agents from stablecrypto.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13, last successful call 2026-07-23).

Returns the current ETH price in both USD and BTC for a given EVM chain

## Facts

- Endpoint: POST https://stablecrypto.dev/api/etherscan/stats/ethprice
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-07-23
- Success rate: 88% of calls made through Zero
- Rating: 4.3 / 5 from 1 review
- Activations on Zero: 18
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethprice-b31935ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P1-WsufFGEx5iA7vZUtPB

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 ethprice-b31935ab -d '<json body>'
```

Example prompt: What is the current ETH price in USD and BTC on Ethereum mainnet (chain ID 1)?

## When to prefer this

Use this endpoint when you need a quick, reliable ETH price quote in both USD and BTC simultaneously, especially when already working within an EVM/Ethereum context and need Etherscan-sourced pricing data. Prefer this over generic crypto price APIs when you want chain-specific context or need both USD and BTC denominators in one call.

## Known failure modes

- Invalid or unsupported chain ID returns an error or empty response
- Etherscan upstream unavailability causes timeout or 5xx error
- Missing required chainid field returns a validation error
- Rate limiting or payment failure results in 402 or 429 response

## How this service works

Pay-per-request access to CoinGecko, DefiLlama, Alchemy, and Etherscan APIs. No auth, no subscriptions.

## Output

Returns the current ETH price expressed in both USD and BTC, sourced via Etherscan stats for the specified EVM chain.

## Example request

```json
{
 "chainid": 1
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chainid": {
   "type": "number",
   "description": "EVM chain ID (1=Ethereum, 137=Polygon, 8453=Base, etc.)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethprice-b31935ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablecrypto.dev](https://www.zero.xyz/host/stablecrypto.dev/llms.txt)
