Finance
StockAnalysis Scraper
stockanalysis.com
StockAnalysis.com publishes fundamentals for US and international stocks in a clean, consistent layout, which makes it a good source for financial statements. ScrapeUnblocker serves it through one plugin endpoint that returns clean JSON, so a financial statements scraper is one API call instead of a parser to maintain. stockanalysis-stock takes a ticker or an exchange and ticker such as LON:VOD and returns the live quote, overview figures such as market cap, revenue, net income, EPS, P/E, dividend, analyst rating and price target, the company profile and recent news, together with the income statement, balance sheet and cash flow as far as the site shows them to free visitors, annual or quarterly. Each line item keeps its own id and title, with values aligned to the listed periods.
What you can extract
- Live price, change, day and 52-week ranges, volume and market state
- Market cap, revenue, net income, EPS, P/E and forward P/E
- Dividend per share, yield, ex-dividend date and earnings date
- Analyst rating, rating counts and price target
- Income statement, balance sheet and cash flow, line by line, annual or quarterly
- Sector, industry, employees, IPO date and description
- Recent news with source, link and publication time
Dedicated endpoints
/finance/stockanalysis-stock A stock with its financial statements
One symbol: a US ticker such as AAPL, or exchange and ticker for an international listing such as LON:VOD. period is annual or quarterly. Returns quote, overview (marketCap, revenue, netIncome, eps, peRatio, forwardPE, dividendPerShare, dividendYieldPercent, beta, analystRating, priceTarget, earningsDate), profile, analysts and news, plus incomeStatement, balanceSheet and cashFlow as far as the site shows them to free visitors. Each statement has periods, newest first, and rows with values in the same order; a row in percent carries unit percent. ETFs return the overview without statements. unavailable names any statement that could not be read. proxy_country is optional.
How to scrape it
curl -X POST \
-H "X-ScrapeUnblocker-Key: $SU_API_KEY" \
"https://api.scrapeunblocker.com/finance/stockanalysis-stock?symbol=AAPL"import requests
resp = requests.post(
"https://api.scrapeunblocker.com/finance/stockanalysis-stock",
headers={"X-ScrapeUnblocker-Key": SU_API_KEY},
params={"symbol": "AAPL"},
)
print(resp.text)import { ScrapeUnblockerClient } from 'scrapeunblocker';
const su = new ScrapeUnblockerClient({ apiKey: process.env.SU_API_KEY });
const stock = await su.stockanalysisStock('AAPL', { period: 'quarterly' });
console.log(stock); Requests are POST and take their parameters in the query string. Browser rendering always happens - there is no flag to enable.
Example response
{
"symbol": "AAPL",
"name": "Apple",
"fullName": "Apple Inc.",
"type": "stock",
"exchange": "NASDAQ",
"currency": "USD",
"quote": { "price": 349.9, "change": 7.53, "changePercent": 2.2, "volume": 12489740, "marketState": "open", "time": "2026-11-09T16:30:53Z" },
"overview": { "marketCap": 5080000000000, "revenue": 478830000000, "netIncome": 132180000000, "eps": 8.98, "peRatio": 38.96, "forwardPE": 37.23, "dividendPerShare": 1.08, "dividendYieldPercent": 0.31, "analystRating": "Buy", "priceTarget": 340.47, "earningsDate": "2026-11-02" },
"incomeStatement": {
"period": "annual",
"currency": "USD",
"periods": [
{ "label": "TTM", "fiscalYear": "2026", "fiscalQuarter": "Q4" },
{ "label": "2026-09-26", "endDate": "2026-09-26", "fiscalYear": "2026", "fiscalQuarter": "Q4" }
],
"rows": [
{ "id": "revenue", "title": "Revenue", "values": [478834000000, 478834000000] },
{ "id": "grossMargin", "title": "Gross Margin", "values": [48.79, 48.79], "unit": "percent" }
]
},
"balanceSheet": { "period": "annual", "currency": "USD", "periods": [], "rows": [] },
"cashFlow": { "period": "annual", "currency": "USD", "periods": [], "rows": [] },
"url": "https://stockanalysis.com/stocks/aapl/"
} Frequently asked questions
Is it legal to scrape StockAnalysis?
Collecting publicly available market data is lawful in many jurisdictions, but the rules depend on your country, the data you collect and how you use it. ScrapeUnblocker returns the public data the site shows; what you collect and how you use it is your responsibility. It is not investment advice.
How do I scrape StockAnalysis without getting blocked?
The plugins read each page through ScrapeUnblocker's fetch chain, over rotating ISP exits, and retry a refused read on a fresh exit. In ScrapeUnblocker's benchmark it returned data on 99.9% of 1,093 calls (1,093 stocks, all different targets), averaging 2.5 seconds per call. A further 7 targets the site itself had no data for are not counted.
How much financial history do I get?
What the site shows to free visitors, which covers the recent annual and quarterly periods. Each statement lists its periods newest first, and availablePeriods gives the total the site holds for that company, so you can see how much history exists.
Are international stocks covered?
Yes. Use the exchange and ticker the site uses, such as LON:VOD, TSX:RY or HKG:0700. US tickers need no exchange. ETFs such as SPY return the overview without statements, since funds have none.
How much does it cost to scrape StockAnalysis?
Each stock is one request, including the overview and all three statements. 1 request = 1 credit, EUR 1.00 per 1,000 on pay as you go, down to about EUR 0.55 per 1,000 on the Ultimate plan. Blocks and timeouts are not billed, and the free trial includes 500 requests with no card.
Related scrapers
StockAnalysis and other names and marks of stockanalysis.com belong to their owner and are used here only to identify the website this API works with. ScrapeUnblocker is an independent service, not affiliated with, endorsed by or sponsored by the owner of stockanalysis.com.
Start scraping this site today
Free tier included. No credit card required to test it.