Analystock API Documentation

🔹 Basis Data

Endpoint:
GET /api_query/instruments/

List all instruments with their characteristics (e.g., name, symbol, sector...)

Example Fetch:
fetch('https://www.analystock.ai/api/api_query/instruments/?api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/sectors/

Get all available sectors

fetch('https://www.analystock.ai/api/api_query/sectors/?api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/subindustries/

Get all sub-industries

fetch('https://www.analystock.ai/api/api_query/subindustries/?api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/currencies/

List all supported currencies

fetch('https://www.analystock.ai/api/api_query/currencies/?api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/countries/

List all countries available

fetch('https://www.analystock.ai/api/api_query/countries/?api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/exchanges/

Get all stock exchanges

fetch('https://www.analystock.ai/api/api_query/exchanges/?api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/foreign_exchanges/

List all foreign exchange rate pairs

fetch('https://www.analystock.ai/api/api_query/foreign_exchanges/?api_key=YOUR_KEY')
Example Response:
Show Result

🔹 Fundamental

GET /api_query/instruments_ratios/

Retrieve valuation ratios (e.g., P/E ratio, EV/EBITDA...)

fetch('https://www.analystock.ai/api/api_query/instruments_ratios/?tickers=AAPL,MSFT,CVX&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/instruments_key_metrics/

Get core financial metrics (revenue, EBITDA, etc.)

fetch('https://www.analystock.ai/api/api_query/instruments_key_metrics/?tickers=AAPL,MSFT,CVX&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/instruments_growth/

Return growth figures like revenue growth, earnings growth, etc.

fetch('https://www.analystock.ai/api/api_query/instruments_growth/?tickers=AAPL,MSFT,CVX&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/instruments_balance_sheet/

Get detailed balance sheet data

fetch('https://www.analystock.ai/api/api_query/instruments_balance_sheet/?tickers=AAPL,MSFT,CVX&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/instruments_income_statement/

Get income statement for a company

fetch('https://www.analystock.ai/api/api_query/instruments_income_statement/?tickers=AAPL,MSFT,CVX&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/instruments_cf_statement/

Get the cash flow statement

fetch('https://www.analystock.ai/api/api_query/instruments_cf_statement/?tickers=AAPL,MSFT,CVX&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/instruments_hlights/

Summary highlights for a specific company

fetch('https://www.analystock.ai/api/api_query/instruments_hlights/?tickers=AAPL,MSFT,CVX&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/instruments_sector_hlights/

Get sector average highlights

fetch('https://www.analystock.ai/api/api_query/instruments_sector_hlights/?sector=1&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/instruments_all_hlights/?api_key=YOUR_KEY'

Get both company and sector highlights

fetch('https://www.analystock.ai/api/api_query/instruments_all_hlights/')
Example Response:
Show Result

🔹 Market Data

GET /api_query/instruments_quotes/

Real-time stock quotes and prices

fetch('https://www.analystock.ai/api/api_query/instruments_quotes/?tickers=AAPL,MSFT,CVX&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/price_histo/

Retrieve historical price data

fetch('https://www.analystock.ai/api/api_query/price_histo/?tickers=AAPL,MSFT,CVX&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/price_histo_dates/

Retrieve historical price data between two dates

fetch('https://www.analystock.ai/api/api_query/price_histo_dates/?tickers=AAPL,MSFT,CVX&start_date=2025-04-25&end_date=2025-05-07&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/fx_histo/

Get historical foreign exchange rates between two dates

fetch('https://www.analystock.ai/api/api_query/fx_histo_dates/?tickers=EURUSD=X&start_date=2025-04-25&end_date=2025-05-07&api_key=YOUR_KEY')
Example Response:
Show Result

🔹 Earnings

GET /api_query/earnings/

Access upcoming and past earnings announcements

fetch('https://www.analystock.ai/api/api_query/earnings/?ticker=UNH&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/earnings_calendar/

Access upcoming earnings calendar

fetch('https://www.analystock.ai/api/api_query/earnings_calendar/?api_key=YOUR_KEY&geozone=EMEA&nb_days_fwd=15&mktcap_category=L')
Example Response:
Show Result
GET /api_query/histo_stock_comment/

Get past commentary for stocks

fetch('https://www.analystock.ai/api/api_query/histo_stock_comment/?tickers=UNH,AAPL&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/all_last_stock_comment/

Get Last commentary for All stocks

fetch('https://www.analystock.ai/api/api_query/all_last_stock_comment/?api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/market_update/

General market update and commentary

fetch('https://www.analystock.ai/api/api_query/market_update/?api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/stock_sentiment/

Sentiment score on specific stock

fetch('https://www.analystock.ai/api/api_query/stock_sentiment/?ticker=MSFT&api_key=YOUR_KEY')
Example Response:
Show Result

🔹 Screener

GET /api_query/screener_view/

Filtered view of instruments based on criteria

fetch('https://www.analystock.ai/api/api_query/screener_view/?api_key=YOUR_KEY'&args)
Example Response:
Show Result
GET /api_query/get_my_screener/

Get results of one of your saved screeners

fetch('https://www.analystock.ai/api/api_query/get_my_screener/?api_key=YOUR_KEY'&screener_id)
Example Response:
Show Result
GET /api_query/last_a_score_all/

Latest A-Score for all instruments

fetch('https://www.analystock.ai/api/api_query/last_a_score_all/?api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/histo_a_score/

A-Score historical data

fetch('https://www.analystock.ai/api/api_query/histo_a_score/?tickers=AAPL,MSFT&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/last_secto_a_score/

Latest A-Score per sector

fetch('https://www.analystock.ai/api/api_query/last_secto_a_score/?sector=1&api_key=YOUR_KEY')
Example Response:
Show Result
GET /api_query/country_a_score/

Return A-Score averaged by country

fetch('https://www.analystock.ai/api/api_query/country_a_score/?country_code=US&api_key=YOUR_KEY')
Example Response:
Show Result