Back to the notebook

stockanalysis.com /api/symbol History: The Documented Replacement

The /api/symbol history endpoints are internal to StockAnalysis, with no docs, no key, and no stability guarantee. Here is exactly what they return, the field-by-field mapping, and a documented OHLCV chart API with 26 years of history in one curl call.

SentiSense Team
SentiSense Team
July 31, 2026 · 3 min read

If you searched for stockanalysis.com/api/symbol/e/spy/history?type=chart or /api/symbol/s/{ticker}/history?type=chart, here is the short answer: the /api/symbol endpoints on stockanalysis.com are internal endpoints the StockAnalysis website uses to render its own charts. They are not documented or offered as a public API. If you are building software or an AI agent that needs stock price history, the reliable path is a documented, keyed API.

SentiSense is not affiliated with, or endorsed by, StockAnalysis. We build a documented market data API; they build a research website we genuinely like. This post exists because a steady stream of developers and AI agents search for that exact URL, and there was no page that answered it.

If you came for a working call rather than the backstory, this is the documented equivalent, GET /api/v1/stocks/chart:

curl -H "X-SentiSense-API-Key: $SENTISENSE_API_KEY" \
  "https://app.sentisense.ai/api/v1/stocks/chart?ticker=SPY&timeframe=MAX"

Full OHLCV bars instead of close-only pairs, stocks and ETFs through the same endpoint, and up to 26 years of split- and dividend-adjusted history. The field-by-field mapping from the stockanalysis.com response shape is below.

What is stockanalysis.com/api/symbol/e/spy/history?type=chart?

It is one of the JSON endpoints behind the StockAnalysis website's price charts. The URL patterns people search for use s/ on stock pages and e/ on ETF pages. Based on a single observational request in July 2026, the history endpoint returns a JSON object with a status field and a data array of [timestamp, price] pairs, with timestamps in Unix milliseconds.

What it does not have: documentation, an API key, versioning, a changelog, or published terms for third-party use. Like any internal endpoint, it can change shape, rate-limit, or stop responding to outside callers at any time, with no notice and no upgrade path. We do not recommend building on it, and this post does not cover how to.

Does StockAnalysis have a public API?

No. As of July 2026, StockAnalysis does not offer or sell API access; its paid plans provide data downloads to Excel, CSV, and Google Sheets.

That is a reasonable choice, and it points at the real distinction. StockAnalysis is an excellent research site, and its job is to be read by people in a browser. An internal endpoint being reachable does not make it a product. If your goal is reading, use their website. If your goal is building, you want an API that is documented, authenticated, versioned, and supported, because your code inherits every promise your data source never made.

A documented API for stock price history

The SentiSense equivalent is the GET /api/v1/stocks/chart call shown at the top. If you were consuming [timestamp, price] pairs, the mapping is:

You were reading The documented equivalent
data[i][0] (Unix ms timestamp) timestamp (Unix ms) plus a pre-formatted date string
data[i][1] (price) close, alongside open, high, low, volume
/api/symbol/s/{ticker}/history (stocks) GET /api/v1/stocks/chart?ticker={ticker}
/api/symbol/e/{ticker}/history (ETFs) same endpoint, same shape: ?ticker=SPY works

Timeframes run from intraday 1D to MAX, the response schema is documented and versioned, and an API key is free to generate.

If an AI agent sent you here

Much of the traffic searching for these URLs is AI agents trying to fetch stock price history for their owner. If that is you, or your agent:

  • The machine-readable API reference lives at sentisense.ai/skill.md.
  • Claude Code, OpenClaw, and Codex users can install the skill directly: npx skills add SentiSenseApp/skills.
  • Claude users can add the hosted MCP connector for the same data over MCP.

Point your agent at a documented surface once, and it stops guessing at other websites' plumbing.

No credit card required. Generate a free API key and make your first chart call in under a minute.