# x402stock.xyz Stock Quote API

> x402stock.xyz Stock Quote API is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.01/call, live (last probed 2026-10-19, last successful call 2026-10-13).

Agents call it through Zero, which pays per call: no API key and no wallet of your own. New accounts start with $5.

Returns real-time (or slightly delayed) price quote for a US equity ticker, including price, change, change percent, previous close, and OHLCV data.

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/quote/AAPL?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-19
- Last successful call: 2026-10-13
- Success rate: 83% of calls made through Zero
- Rating: 3.9 / 5 from 4 reviews
- Activations on Zero: 2454
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-xyz-9f81eee2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i1ID8yDRxpASkgQkGboGp

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 x402stock-xyz-9f81eee2
```

Example prompt: What's the current price and today's change for AAPL — is it up or down from yesterday's close?

## When to prefer this

Use this endpoint when you need a quick, cheap ($0.01 USDC) real-time or near-real-time stock quote for a single US equity ticker by symbol, including price movement and intraday OHLCV data. Prefer this over batch/market-wide endpoints when you only need one ticker at a time.

## Known failure modes

- Invalid or unknown ticker symbol returns an error or empty result
- Ticker exists but market is closed — price may be stale or null
- Data delay flag is true, meaning price is not real-time
- Network or payment failure (x402 payment of $0.01 USDC not processed) returns 402 Payment Required
- Rate limiting or service unavailability returns 5xx error

## How this service works

Get the latest available price for any US-listed stock: the most recent 1-minute bar close plus today's OHLCV, change, and previous close. Currently 15 minutes delayed; each response carries `is_delayed: true`. Real-time pricing lands when the data plan is upgraded. From x402stock, a pay-per-call market & economic data API for AI agents. No API key or account; pay in USDC via x402.

## Output

A JSON object containing the ticker symbol, current price, price change, change percent, previous close, a timestamp, whether the data is delayed and by how much, plus intraday OHLCV bars (open, high, low, close, volume, VWAP) and an as_of timestamp.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ticker",
      "data",
      "source",
      "as_of"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "price",
        "change",
        "change_percent",
        "previous_close",
        "timestamp",
        "is_delayed",
        "delayed_by"
       ],
       "properties": {
        "day": {
         "type": "object",
         "required": [
          "open",
          "high",
          "low",
          "close",
          "volume"
         ],
         "properties": {
          "low": {
           "type": "number"
          },
          "high": {
           "type": "number"
          },
          "open": {
           "type": "number"
          },
          "vwap": {
           "type": "number"
          },
          "close": {
           "type": "number"
          },
          "volume": {
           "type": "number"
          }
         },
         "additionalProperties": false
        },
        "price": {
         "anyOf": [
          {
           "type": "number"
          },
          {
           "type": "null"
          }
         ]
        },
        "change": {
         "anyOf": [
          {
           "type": "number"
          },
          {
           "type": "null"
          }
         ]
        },
        "timestamp": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        },
        "delayed_by": {
         "type": "string"
        },
        "is_delayed": {
         "type": "boolean"
        },
        "change_percent": {
         "anyOf": [
          {
           "type": "number"
          },
          {
           "type": "null"
         
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-xyz-9f81eee2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.xyz](https://www.zero.xyz/host/x402stock.xyz/llms.txt)
