# BlockRun US Stock Price — Real-Time Quote via Pyth

> BlockRun US Stock Price — Real-Time Quote via Pyth is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns a real-time US stock price quote (with confidence interval and publish timestamp) for a given NYSE/Nasdaq/AMEX ticker, sourced from the Pyth oracle network.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/usstock/price/AAPL
- 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/blockrun-us-stock-price-real-time-quote-via-pyth-54fecea0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QZpgTkgWDCU-2qzRjB13z

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 blockrun-us-stock-price-real-time-quote-via-pyth-54fecea0
```

Example prompt: What's the current price of NVDA stock right now, including pre-market session data and the confidence score?

## When to prefer this

Use this endpoint when you need real-time US equity prices sourced from the Pyth oracle network without managing traditional API keys, and when you want pay-per-call micropayment billing settled in USDC on Base or Solana. Ideal for AI agents that need low-friction, on-demand stock price data with cryptographic provenance (feed ID, publish time, confidence interval) rather than a subscription-based data feed.

## Known failure modes

- Unknown or unsupported ticker symbol returns an error or empty result
- Invalid session enum value (not pre/post/on) causes a 400 bad request
- Payment failure (insufficient USDC balance) returns HTTP 402 Payment Required
- Pyth oracle temporarily unavailable causes a 503 or stale data response
- Rate limiting or gateway overload may return 429 Too Many Requests

## How this service works

US Stock realtime price for AAPL

## Output

Returns a JSON object containing the ticker symbol, current price (e.g. 273.10), a confidence interval (e.g. 0.15), the Unix publish timestamp, an ISO-8601 UTC timestamp, the Pyth Hermes feed ID (0x-prefixed hex), asset type (equity), and the data source identifier ('pyth').

## Example request

```json
{
 "input": {
  "path": {
   "symbol": "AAPL"
  },
  "query": {
   "session": "on"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "path": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "example": "AAPL",
       "description": "NYSE/Nasdaq/AMEX ticker (AAPL, TSLA, NVDA, CRCL, SPY, …)."
      }
     }
    },
    "query": {
     "type": "object",
     "properties": {
      "session": {
       "enum": [
        "pre",
        "post",
        "on"
       ],
       "type": "string",
       "description": "Optional US market session. Omit for regular hours."
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "symbol",
    "price",
    "confidence",
    "publishTime",
    "source"
   ],
   "properties": {
    "price": {
     "type": "number",
     "example": 273.1
    },
    "feedId": {
     "type": "string",
     "description": "Pyth Hermes feed ID (0x-prefixed hex)"
    },
    "source": {
     "type": "string",
     "const": "pyth"
    },
    "symbol": {
     "type": "string",
     "example": "AAPL"
    },
    "assetType": {
     "enum": [
      "equity",
      "crypto",
      "fx",
      "metal"
     ],
     "type": "string"
    },
    "timestamp": {
     "type": "string",
     "description": "ISO-8601 UTC"
    },
    "confidence": {
     "type": "number",
     "example": 0.15
    },
    "publishTime": {
     "type": "integer",
     "description": "Unix seconds"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-us-stock-price-real-time-quote-via-pyth-54fecea0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
