# agentsvc.io Stock Prices

> agentsvc.io Stock Prices is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Fetches real-time stock prices and market data for up to 10 ticker symbols per call, sourced from Yahoo Finance

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/stock-prices?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-stock-prices-2f8798c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_whFA66EOlyjU7TrcBIL0L

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 agentsvc-io-stock-prices-2f8798c4 -d '<json body>'
```

Example prompt: What are the current prices for AAPL, MSFT, and NVDA — including today's change, market cap, and PE ratio?

## When to prefer this

Choose this endpoint when you need real-time or near-real-time stock price data for up to 10 symbols per call with no API key or account setup — ideal for AI agents that need on-demand financial market data paid per use with USDC. Supports both US and international exchanges with exchange-suffix notation.

## Known failure modes

- Unrecognized ticker symbols are returned in the 'not_found' array rather than causing a request failure
- Non-US stocks require exchange suffix (e.g. .DE, .L) or the symbol may not be found
- Requesting more than 10 symbols in a single call may be rejected or only partially fulfilled
- Market data may be delayed or unavailable outside trading hours for certain exchanges
- Payment failure via x402/USDC will prevent the call from completing

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

A JSON object keyed by ticker symbol, each containing: current price, open, day high/low, 52-week high/low, previous close, price change and percent change, volume, market cap, PE ratio, currency, exchange, and market state (REGULAR/PRE/POST). Also includes a 'not_found' array for unrecognized symbols and a 'fetched_at' timestamp. Data is sourced from Yahoo Finance.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "symbols": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "List of stock ticker symbols. Max 10 per call. Examples: ['AAPL', 'MSFT', 'NVDA'] for US stocks, ['SAP.DE', 'BAYN.DE'] for German XETRA stocks, ['TSLA', 'GOOGL', 'AMZN']. Use the exchange suffix for non-US stocks (e.g. .DE, .L, .PA)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "Yahoo Finance",
  "stocks": {
   "AAPL": {
    "name": "Apple Inc.",
    "open": 259.5,
    "price": 260.49,
    "change": 1.59,
    "symbol": "AAPL",
    "volume": 48200000,
    "day_low": 258.75,
    "currency": "USD",
    "day_high": 261.2,
    "exchange": "NMS",
    "pe_ratio": 32.4,
    "change_pct": 0.61,
    "market_cap": 3910000000000,
    "week_52_low": 169.21,
    "market_state": "REGULAR",
    "week_52_high": 273.59,
    "previous_close": 258.9
   },
   "MSFT": {
    "name": "Microsoft Corporation",
    "price": 373.07,
    "change": 1.43,
    "symbol": "MSFT",
    "currency": "USD",
    "exchange": "NMS",
    "change_pct": 0.38,
    "market_state": "REGULAR",
    "previous_close": 371.64
   }
  },
  "not_found": [],
  "fetched_at": "2026-04-10T14:00:00.000Z"
 }
}
```

## More

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