# Stock Quote Lookup API

> Stock Quote Lookup API is a paid API for AI agents from market-data-x402-5wh8-ivory.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-16).

Returns the current stock price for a given ticker symbol

## Facts

- Endpoint: GET https://market-data-x402-5wh8-ivory.vercel.app/api/stock/quote
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stock-quote-lookup-api-1d7924d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IU3UBg3DHrz4mt2Om53-u

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 stock-quote-lookup-api-1d7924d2
```

Example prompt: What is the current stock price for Apple — look it up using the symbol AAPL.

## When to prefer this

Use this endpoint when you need a quick, low-cost ($0.003/call) real-time stock price lookup by ticker symbol. Ideal for agents that need to spot-check a single equity price, validate a portfolio value, or trigger logic based on current market price. Best suited for simple price retrieval rather than historical data, OHLCV data, or fundamentals.

## Known failure modes

- Invalid or unknown ticker symbol returns an error or empty result
- Missing required 'symbol' query parameter causes a 400-level error
- Market closed periods may return last known price or an error
- Rate limiting or payment failure may result in 402 or 429 status
- Network timeouts from upstream market data provider

## How this service works

Pay-per-request crypto &amp; stock market data for AI agents and developers, settled in USDC on Base via x402.

## Output

Returns a JSON object with the stock symbol and its current price (e.g. {"symbol": "AAPL", "price": 190}). The price is a numeric value representing the current market price of the equity.

## 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",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Ticker"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "price": 190,
  "symbol": "AAPL"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stock-quote-lookup-api-1d7924d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market-data-x402-5wh8-ivory.vercel.app](https://www.zero.xyz/host/market-data-x402-5wh8-ivory.vercel.app/llms.txt)
