stockanalysis.com APIstockanalysis.com ↗
Access stock quotes, income statements, statistics, IPO calendars, and pre-market movers from StockAnalysis.com via a structured JSON API.
curl -X GET 'https://api.parse.bot/scraper/038c400f-48f4-4b33-a649-2d971f2d7d73/search_stocks?query=AAPL' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for stocks and ETFs by keyword (company name or ticker symbol). Returns results across multiple global exchanges including US, international, and ETF listings.
| Param | Type | Description |
|---|---|---|
| queryrequired | string | Search keyword — a company name or ticker symbol (e.g. 'AAPL', 'Microsoft', 'Tesla'). |
{
"type": "object",
"fields": {
"count": "integer — number of matching results",
"query": "string — the search keyword echoed back",
"results": "array of matching stocks/ETFs, each with symbol, name, type, price, and market_cap"
},
"sample": {
"data": {
"count": 25,
"query": "AAPL",
"results": [
{
"name": "Apple Inc.",
"type": "Stock",
"price": 280.14,
"symbol": "AAPL",
"market_cap": 4114515909840
},
{
"name": "Apple Inc.",
"type": "Stock",
"price": 212.16,
"symbol": "@swx/AAPL",
"market_cap": 3206401103379
},
{
"name": "Kurv Yield Premium Strategy Apple (AAPL) ETF",
"type": "ETF",
"price": 24.37,
"symbol": "!AAPY",
"market_cap": 5358826
}
]
},
"status": "success"
}
}About the stockanalysis.com API
This API provides 7 endpoints covering real-time stock quotes, detailed financial statements, curated stock lists, IPO calendars, and pre-market session movers from StockAnalysis.com. The get_stock_financials_income endpoint returns full income statement data — revenue, gross profit, net income, EPS, and margins — organized by fiscal year, while get_stock_statistics delivers over a dozen categorized metric groups including valuation, dividends, short selling, and analyst forecasts.
Stock Quotes and Search
The search_stocks endpoint accepts a company name or ticker symbol and returns a ranked list of matches with symbol, name, type, price, and market cap across US and international exchanges plus ETFs. For a specific ticker, get_stock_overview returns an abbreviated real-time quote object: fields p (price), cp (change percent), v (volume), h52/l52 (52-week range), ms (market status), and exchange (ex). The ms field is useful for determining whether a quote reflects an open or closed session.
Financials and Statistics
get_stock_financials_income returns a financialData object keyed by fiscal year, with arrays for metrics like revenue, grossProfit, netIncome, epsBasic, and operating income. The head object includes the statement title and a canonical URL; details provides the fiscal year range and last trading day. get_stock_statistics structures data into named section objects — valuation, ratios, shares, dividends, balanceSheet, cashFlow, incomeStatement, and more — each containing a text summary and a data array of labeled metric entries covering things like P/E, forward P/E, enterprise value, and short interest.
Lists, IPOs, and Pre-Market Movers
get_stock_list fetches a curated stock list by URL slug (e.g. mega-cap-stocks, most-shorted-stocks), returning each entry's symbol, name, market cap, price, change, and revenue. get_ipo_calendar returns upcoming IPOs bucketed into thisWeek, nextWeek, and later, each entry including price range, shares offered, exchange, and estimated market cap. get_market_movers_premarket surfaces top pre-market gainers, losers, and most active stocks with premarket price, change percent, volume, and market cap; the active array may be empty outside active pre-market hours.
- Screen mega-cap or most-shorted stocks using
get_stock_listwith curated slugs and filter by market cap or revenue - Track IPO pipeline by pulling this week's and next week's offerings with price ranges and estimated valuations from
get_ipo_calendar - Build a pre-market watchlist by monitoring top gainers and losers with premarket change percent and volume from
get_market_movers_premarket - Compare multi-year income trends for a ticker by extracting annual revenue and EPS arrays from
get_stock_financials_income - Populate a stock screener with valuation and short-selling metrics using the categorized sections from
get_stock_statistics - Display a real-time quote widget using the abbreviated fields from
get_stock_overview, including 52-week range and market status - Build a ticker search autocomplete using
search_stocksresults that include type classification (stock vs. ETF) across global exchanges
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does StockAnalysis.com have an official developer API?+
What does `get_stock_statistics` return beyond basic valuation?+
valuation (market cap, enterprise value) and ratios (P/E, forward P/E, P/S), it includes dividends, shortSelling, analystForecasts, stockSplit, financialPosition, financialEfficiency, taxes, and stockPrice sections — each with a text summary and a labeled data array.Does `get_stock_financials_income` return quarterly data?+
period field in the response. Quarterly breakdowns are not exposed. You can fork this API on Parse and revise it to add a quarterly income statement endpoint.Are balance sheet and cash flow statements available?+
get_stock_statistics endpoint includes summary-level balanceSheet and cashFlow sections with key metrics, but full-statement line-item detail for those two statements is not currently covered. You can fork the API on Parse and revise it to add dedicated balance sheet and cash flow statement endpoints.Is the pre-market movers data available at all hours?+
get_market_movers_premarket endpoint is accessible at any time, but the active array (most active pre-market stocks) may return empty outside actual pre-market trading hours. The gainers and losers objects include query metadata that reflects when the data was last updated.