# x402stock Stock Quote API

> x402stock Stock Quote API is a paid API for AI agents from x402stock.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the latest price quote for a US-listed stock ticker, including OHLCV, change, and previous close (15-minute delayed), paid per-call in USDC via x402 protocol.

## Facts

- Endpoint: GET https://x402stock.vercel.app/api/v1/quote/AAPL
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-stock-quote-api-e6938126
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J86ajxF7Etkc7dNRfjZGu

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-stock-quote-api-e6938126
```

Example prompt: What's the latest stock price for AAPL right now — give me the current price, today's open/high/low/close, and how much it's changed from yesterday's close.

## When to prefer this

Choose this endpoint when you need a quick, no-signup, pay-per-call US stock price quote for an AI agent workflow. Ideal for single-ticker lookups without committing to a subscription data plan. Best when you accept 15-minute delay and want OHLCV plus change data in one call. Prefer alternatives if you need real-time tick data, options chains, historical bars, or non-US equities.

## Known failure modes

- Invalid or unlisted ticker returns an error or null price fields
- Market closed periods may return stale data with older timestamps
- Network or Vercel cold-start latency on first call
- x402 payment failure if USDC balance is insufficient or wallet is not configured
- Non-US tickers not supported — will return no data or 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

Returns a JSON object with the ticker symbol, most recent price (1-minute bar close, 15-min delayed), today's OHLCV bar, dollar and percent change from previous close, previous close price, timestamp, and an is_delayed flag (currently always true).

## 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-stock-quote-api-e6938126/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.vercel.app](https://www.zero.xyz/host/x402stock.vercel.app/llms.txt)
