# Pyth Network Oracle Price Feed via x402-datashop

> Pyth Network Oracle Price Feed via x402-datashop is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns real-time Pyth Network oracle prices (aggregate price, confidence interval, EMA price, publish_time) for up to 8 crypto assets vs USD, with a 30-second cache.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/oracle/pyth
- 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/pyth-network-oracle-price-feed-via-x402-datashop-62cdfe0b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_scVUE_WNrkluOQeWuEhFh

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-network-oracle-price-feed-via-x402-datashop-62cdfe0b
```

Example prompt: Can you grab me the latest Pyth oracle prices for BTC, ETH, and SOL — including confidence intervals and EMA prices — so I can cross-check them against Binance spot?

## When to prefer this

Use this endpoint when you need Pyth Network oracle prices specifically (as used in DeFi protocols) rather than CEX spot prices — especially when detecting oracle/spot divergence, computing confidence intervals, or auditing on-chain price feed freshness. Prefer this over generic market data APIs when the Pyth EMA price or confidence band is required for DeFi risk assessment.

## Known failure modes

- Unsupported ticker symbol returns error or is silently omitted
- More than 8 symbols requested exceeds limit
- Stale data: 30-second cache means publish_time may lag real-time by up to 30s
- Pyth Hermes API upstream outage causes downstream failure
- Malformed symbols query parameter (e.g. spaces, uppercase) may return no results

## How this service works

Real-time oracle prices from Pyth Network (Hermes API): aggregate price, confidence interval (uncertainty band), EMA price and publish_time per asset, all vs USD. Query: ?symbols=btc,eth,sol (1-8 of: btc, eth, sol, bnb, xrp, ada, avax, doge, link, dot, usdc, usdt). Cross-check against CEX spot to detect oracle/spot divergence. 30s cache.

## Output

A JSON object keyed by ticker symbol, each containing: aggregate price (USD), confidence interval (uncertainty band), EMA price, and publish_time timestamp — sourced from Pyth Network's Hermes API with a 30-second cache. Covers up to 8 assets per call from the supported list (btc, eth, sol, bnb, xrp, ada, avax, doge, link, dot, usdc, usdt).

## 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",
     "properties": {
      "symbols": {
       "type": "string",
       "default": "btc,eth",
       "description": "Comma-separated tickers (1-8), e.g. btc,eth,sol"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pyth-network-oracle-price-feed-via-x402-datashop-62cdfe0b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
