# BlockRun US Stock Price — Real-Time Pyth Feed

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

Returns the real-time price of a US-listed stock (NYSE/Nasdaq/AMEX) sourced from Pyth Network, including confidence interval and publish timestamp, for $0.001 USDC per call with no API key required.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/stocks/us/price/AAPL
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-us-stock-price-real-time-pyth-feed-d6032818
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bJByiAHJld8Zz3YR11o3h

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-pyth-feed-d6032818
```

Example prompt: What's the current price of AAPL during regular trading hours? I need the Pyth-sourced quote with the confidence interval.

## When to prefer this

Choose this endpoint when you need real-time US equity prices sourced from the Pyth Network oracle with a confidence score, require no long-term API key setup, and want micropayment-per-call billing settled in USDC on Base or Solana. Ideal for AI agents operating autonomously that need verifiable, oracle-backed stock prices without subscription overhead.

## Known failure modes

- Unknown or unsupported ticker symbol returns an error
- Invalid session enum value returns a 400 bad request
- Payment failure (insufficient USDC balance) returns HTTP 402
- Network or Pyth oracle downtime may result in stale or unavailable price data
- Pre/post-market session requested outside valid hours may return no data

## How this service works

US Stock realtime price for AAPL

## Output

A JSON object containing the ticker symbol, current price (e.g. 273.10), a confidence interval (e.g. 0.15), a Pyth Hermes feed ID (0x-prefixed hex), asset type (equity), ISO-8601 UTC timestamp, Unix publish time, and 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-pyth-feed-d6032818/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)
