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.
https://stock-viewer-x6g3.onrender.com
JSON
GET
Not required
curl "https://stock-viewer-x6g3.onrender.com/api/quote?symbol=AAPL"
/api/quote
Real-time price quote and key fundamental metrics.
/api/quote
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol
|
string | Yes | Stock ticker symbol. |
GET /api/quote?symbol=AAPL
/api/history
Historical OHLCV candle data.
/api/history
| 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
/api/search
Autocomplete ticker and company suggestions.
/api/search
| Parameter | Type | Required | Description |
|---|---|---|---|
q
|
string | Yes | Company name or ticker query. |
GET /api/search?q=apple
/api/market-summary
Major indices and active market movers.
/api/market-summary
GET /api/market-summary
/api/news
Recent financial news articles.
/api/news
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol
|
string | Yes | Stock ticker symbol. |
GET /api/news?symbol=AAPL
Authentication
Authentication is currently not 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();
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-viewerView on GitHub →
Data Provider
Market data source.