API Online
https://stock-viewer-x6g3.onrender.com
REST API v1

Stock data,
without the clutter.

Stock Viewer API provides developers with simple REST endpoints for market quotes, historical OHLCV data, ticker search, market summaries, and financial news.

Quick Start

Start making requests immediately. No API key required.

Base URL
https://stock-viewer-x6g3.onrender.com
Format
JSON
Method
GET
Authentication
Not required
curl "https://stock-viewer-x6g3.onrender.com/api/quote?symbol=AAPL"

/api/quote

Real-time price quote and key fundamental metrics.

GET

/api/quote

Retrieve the current quote for a stock symbol.
Parameter Type Required Description
symbol string Yes Stock ticker symbol.
GET /api/quote?symbol=AAPL

                

/api/history

Historical OHLCV candle data.

GET

/api/history

Retrieve historical open, high, low, close and volume data.
Parameter Type Required Description
symbol string Yes Stock ticker symbol.
range string Yes Historical time range.
interval string Yes Candle interval.
GET /api/history?symbol=AAPL&range=1mo&interval=1d
Example ranges: 1d, 5d, 1mo, 3mo, 6mo, 1y, 5y

                

/api/market-summary

Major indices and active market movers.

GET

/api/market-summary

Retrieve a snapshot of major market indices and active movers.
GET /api/market-summary

                

/api/news

Recent financial news articles.

GET

/api/news

Retrieve recent financial news associated with a ticker.
Parameter Type Required Description
symbol string Yes Stock ticker symbol.
GET /api/news?symbol=AAPL

                

Authentication

Authentication is currently not required.

You can call the API directly using HTTP GET requests. No API key or authorization header is currently required.

Errors

Handle failed requests safely in your application.

const response = await fetch(url);
if (!response.ok) {
  throw new Error(`API request failed: ${response.status}`);
}
const data = await response.json();
Common failures may include invalid symbols, missing parameters, invalid query values, upstream provider errors, or temporary server errors.

Source Code

Stock Viewer is open source and available on GitHub.

Stock Viewer Repository

The complete Stock Viewer source code is available on GitHub. You can inspect the project, view the API implementation, report issues, or contribute to the project.

https://github.com/logicnestxvoidlure/stock-viewer
View on GitHub →

Data Provider

Market data source.

Stock Viewer uses Yahoo Finance as its underlying market-data source.