# Losbeto Pyth Price Feed

> Losbeto Pyth Price Feed is a paid API for AI agents from api.losbeto.xyz, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Fetches real-time asset prices from the Pyth Network oracle via a pay-per-call x402 micropayment endpoint

## Facts

- Endpoint: GET https://api.losbeto.xyz/pyth-price
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-pyth-price-feed-fb386653
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DpjyUncqL0b6SLcCY2r-B

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 losbeto-pyth-price-feed-fb386653
```

Example prompt: What is the current price of SOL/USD according to the Pyth oracle right now?

## When to prefer this

Choose this endpoint when you need real-time, on-chain verified asset prices sourced from the Pyth Network oracle, particularly for Solana-ecosystem tokens or when building DeFi agents that require low-cost ($0.003/call) micropayment-gated price feeds with x402 payment protocol support.

## Known failure modes

- Unknown or unsupported asset symbol returns an error or empty response
- Payment failure (402) if USDC micropayment is not processed correctly
- Network timeout if Pyth Network oracle is temporarily unavailable
- Stale price data if the oracle feed has not been recently updated
- Invalid input schema returns a 400 bad request

## How this service works

OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana and Algorand via x402.

## Output

A JSON object containing the current price of the requested asset from the Pyth Network oracle, typically including the price value, confidence interval, exponent, and timestamp of the price update.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "properties": {
      "format": {
       "type": "string",
       "description": "Response format (json)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "Real-time SOL/USD from the Pyth Network oracle with its confidence interval and publish slot. Sub-second freshness, straight from the on-chain price account. [Wrapper over a free public source (https://hermes.pyth.network (public, free)) — you pay for one schema, one payment rail, signed receipts and monitored uptime.]"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

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