# 2s Stock Quote API

> 2s Stock Quote API is a paid API for AI agents from 2s.io, paid per call via x402, $0.0018/call, status unknown (last checked 2026-09-14).

Returns a real-time (delayed/EOD) stock quote for a US-listed ticker symbol including OHLCV, market cap, and price change data

## Facts

- Endpoint: GET https://2s.io/api/stocks/quote
- Price: $0.0018/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-stock-quote-api-666b796b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F0Ph7aHfr2m-pjyXnabUQ

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 2s-stock-quote-api-666b796b
```

Example prompt: What's the latest stock quote for AAPL — give me the price, today's change, volume, and market cap?

## When to prefer this

Use this endpoint when an AI agent needs quick, pay-per-call stock quote data without API key signup or monthly fees. Ideal for agents that need occasional US equity quotes and want to pay micro-amounts in USDC via x402 on Base or Solana. Best suited for single-ticker lookups rather than bulk data pulls.

## Known failure modes

- Invalid or unknown ticker symbol returns an error or empty items array
- Non-US-listed tickers may not be supported
- Data may be delayed (end-of-day) rather than real-time on this tier
- Payment failure (402) if USDC balance is insufficient
- Rate limiting or timeout if market data provider is unavailable

## How this service works

Latest daily stock quote for a US-listed ticker. Returns the most recent completed trading session: open, high, low, close, volume, VWAP, and trade count, plus the change and percent change versus the prior session, and company reference data (name, primary exchange, security type, currency, market cap). NOTE: this plan tier serves end-of-day / delayed data (the response flags delayed=true), suitable for daily snapshots, fundamentals context, and post-close analysis rather than real-time trading. Pass ticker as a US symbol (e.g. AAPL, MSFT, BRK.B). Market data by Massive (formerly Polygon.io).

## Output

A JSON object with ok=true and an items array containing one entry with the ticker's open, high, low, close, VWAP, volume, transaction count, price change, percent change, previous close, market cap in USD, exchange, currency, and whether the data is delayed, plus source attribution to Massive/Polygon.io.

## Example request

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

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "ticker"
     ],
     "properties": {
      "ticker": {
       "type": "string",
       "description": "US-listed ticker symbol, e.g. AAPL, MSFT, BRK.B."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-stock-quote-api-666b796b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
