# Pyth Price Feed Lookup via agent402.tools

> Pyth Price Feed Lookup via agent402.tools is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Fetches the latest aggregated cryptocurrency/asset prices from Pyth Network's Hermes service for one or more feed IDs or well-known aliases

## Facts

- Endpoint: POST https://agent402.tools/api/price-pyth
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pyth-price-feed-lookup-via-agent402-tools-fabdb08e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JwXaOKPgIn7tNSbLEB-TG

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 pyth-price-feed-lookup-via-agent402-tools-fabdb08e -d '<json body>'
```

Example prompt: What are the current live prices for Bitcoin, Ethereum, and Solana right now? Pull them from the Pyth price feeds.

## When to prefer this

Use this endpoint when you need real-time, oracle-grade cryptocurrency or asset prices from the Pyth Network specifically, especially when building DeFi applications, on-chain price checks, or when you need Pyth feed IDs with full precision. Prefer this over generic market data APIs when Pyth feed compatibility or confidence intervals are required.

## Known failure modes

- Invalid or unrecognized feed ID returns an error or empty result
- Alias not in supported set (only BTCUSD, ETHUSD, SOLUSD, USDC, USDT supported) returns an error
- More than 20 feed IDs in a single request may be rejected
- Pyth Hermes service unavailability causes upstream errors
- Payment failure (x402) results in 402 response before data is returned

## How this service works

Latest aggregated price for one or more Pyth feeds, sourced live from Pyth's Hermes service. Use when you need an ORACLE-grade price with a published confidence interval (cross-checking an exchange feed, settling onchain logic); for a plain fiat quote crypto-price is simpler and cheaper. Identify feeds by hex feed-id (preferred - full precision) or by a small set of well-known aliases (BTCUSD, ETHUSD, SOLUSD, USDC, USDT).

## Output

Returns the latest aggregated price data for each requested feed, including price value, confidence interval, exponent, and timestamp, sourced live from Pyth's Hermes service. Each feed is identified by its hex feed ID and/or alias.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ids": {
   "type": "array",
   "description": "Pyth feed IDs (hex, with or without 0x) or known aliases (BTCUSD, ETHUSD, SOLUSD, USDC, USDT). 1-20 entries."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "feeds": [
   {
    "id": "e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43",
    "conf": 18.5,
    "alias": "BTCUSD",
    "price": 67000.12,
    "publishTime": "2026-06-22T17:30:00Z"
   },
   {
    "id": "ff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace",
    "conf": 1.2,
    "alias": "ETHUSD",
    "price": 3500.05,
    "publishTime": "2026-06-22T17:30:00Z"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pyth-price-feed-lookup-via-agent402-tools-fabdb08e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
