Stock Quote

DataFood Typefinance · stocks

Stooq.com EOD/intraday quote — exposed via DataFood, the universal data API for AI agents. Free 1-row preview, $0.0005 per call on bundled, $0.99 unlimited day pass. MCP + x402 ready. Operated by TOUGH LOVE SECURITY.

Why AI agents need Stock Quote

Modern autonomous agents don't operate on a single data source. A research agent gathering stock quote typically also needs market context, news sentiment, and entity-level signals — all in one turn, with sub-cent unit economics so the data cost doesn't dominate inference cost. DataFood exposes stock-quote as one of 16 data types reachable via a single bundle call: POST /api/data/bundle. That collapses 16 vendor integrations into one auth surface, one error handler, and one billing line — and bundle pricing means an agent fetching 10 cross-niche data points pays a single bundle price ($0.005) rather than 10 individual API calls.

Stock Quote via DataFood is read directly from the canonical upstream source (no proprietary remix). The free preview tier is open to all agents and crawlers (GPTBot, ClaudeBot, PerplexityBot, OAI-SearchBot, Google-Extended, AnthropicBot, Applebot-Extended, Bytespider) and intentionally returns a single representative row so agents can validate the data shape before committing to a paid bundle.

Try it free

Test Stock Quote live. No auth. No card.

Click "Try Free" to fetch a live row.

Curl: curl 'https://toughlovesec.win/api/data/preview?type=stock-quote&q=AAPL'

Sample response

This is a real cached response from stock-quote (refreshed daily). For live data, use the Try Free button above or call the preview endpoint directly.

{
  "symbol": "AAPL.US",
  "date": "2026-05-01",
  "time": "22:00:21",
  "open": 278.855,
  "high": 287.22,
  "low": 278.37,
  "close": 280.14
}

Pricing for Stock Quote

TierPriceWhat you get
Free preview$0GET /api/data/preview?type=stock-quote — 1-row preview, no auth
Single call (paid)$0.001GET /api/data?type=stock-quote&q=...&session_id=cs_... — full multi-row data
Bundle 3-5$0.0035Up to 5 queries across any types in one call (saves ~30%)
Bundle 6-10$0.005Up to 10 queries across any types (saves ~50%)
Bundle 11-20$0.008Up to 20 queries across any types (saves ~60%)
Day pass$0.99Unlimited bundles for 24h
Week pass$4.99Unlimited bundles for 7d

Why agents use DataFood over alternatives for Stock Quote

AlternativeCostDataFoodSavingsNotes
Polygon.io Stocks Starter$29/mo$0.0005 / call · $0.99 day pass96.6%Polygon delayed for free; DataFood uses Stooq EOD.
Alpha Vantage Premium$49.99/mo$0.0005 / call · $0.99 day pass98%Alpha Vantage rate-limits on free; DataFood same data without quota.

How to integrate Stock Quote

Three integration paths, in order of simplicity for AI agents:

  1. OpenAPI 3.0 function calling (ChatGPT, Claude, OpenAI Assistants): point your tool config at /openapi.json. DataFood exposes data_query_stock_quote and the universal data_bundle.
  2. MCP (Model Context Protocol): connect Claude Desktop or any MCP client to https://toughlovesec.win/mcp (Streamable HTTP transport, JSON-RPC 2.0). Tools: datafood_query, datafood_bundle, datafood_portfolio_ask, datafood_watch_session.
  3. x402 micropayment (Coinbase x402 spec): call POST /api/data/bundle without auth and DataFood returns HTTP 402 with a USDC challenge on Base mainnet. Sign and retry with X-Payment header. See /.well-known/x402.json.

Sample curl

# Free preview (no auth)
curl 'https://toughlovesec.win/api/data/preview?type=stock-quote&q=AAPL'

# Bundle (free preview, multi-type)
curl 'https://toughlovesec.win/api/data/bundle?free=1' \
  -X POST -H 'Content-Type: application/json' \
  -d '{"queries":[{"type":"stock-quote","q":"AAPL"},{"type":"crypto-price","q":"bitcoin"}]}'

# Bundle (paid via x402 — server returns HTTP 402 challenge)
curl -i 'https://toughlovesec.win/api/data/bundle' \
  -X POST -H 'Content-Type: application/json' \
  -d '{"queries":[{"type":"stock-quote","q":"AAPL"},{"type":"weather","q":"33.7,-84.4"},{"type":"news-hn-top"}]}'

FAQ

What does the example query mean?

For stock-quote, the canonical example is AAPL. Stooq.com EOD/intraday quote See /api/v1/catalog for all 16 types and their query formats.

Is there rate limiting on the free preview?

Polite-crawler limits only. We don't gate the free preview behind auth or per-IP quotas under normal traffic. Burst >100 req/min from a single IP may get throttled.

Does DataFood cache Stock Quote?

DataFood caches the daily sample shown on this page in KV (24h TTL) for SEO use, but the /api/data/preview and /api/data/bundle endpoints fetch live from the upstream source on every call.

Can my agent watch its own Stock Quote fetches?

Yes. Open an agent session via POST /api/agent-session/start, then pass agent_session_id in your /api/data/bundle request. Each fetch streams to /watch/{session_id} for human observation.

Quick links