FCS Stock API
The FCS Stock API delivers real-time stock market data for 100,000+ stocks from 75+ exchanges in 45+ countries, plus 35,000+ ETFs and funds and 1,500+ indices. Access live prices, historical data, technical indicators, and comprehensive financial metrics including income statements, cash flow, earnings reports, and balance sheets. Our stock API provides institutional-grade data: prices update every minute, the REST reply follows your plan cache (Stock Starter 15 minutes, Stock Enterprise 10 minutes, Stock Corporate no plan cache), and the WebSocket API streams in real time. Perfect for trading platforms, portfolio management, market analysis, and financial applications. The free plan (500 API calls per month) covers forex and crypto (stocks and indices need a paid plan). For a quick test you can call any example below with the demo key access_key=API_KEY, which returns a limited response. Sign up free, then compare the stock plans from $25/month.
Get Started
The FCS Stock API is designed for fast and easy integration with any programming language. Make HTTP requests to our API endpoints and receive responses in standard JSON format. Compatible with JavaScript (Ajax/Fetch), PHP (cURL or file_get_contents), Python (requests), Java/Android (HttpURLConnection), C# (HttpClient), Node.js (axios), and command-line tools like cURL.
Get up and running with the FCS Stock API in just 3 simple steps. Our API provides real-time and historical stock data for 100,000+ stocks from 45+ countries.
Step 1: Get Your API Key
Sign up for a free account and get your API key instantly. No credit card is needed for the free plan (500 requests per month), but it covers forex and crypto (stocks and indices need a paid plan), so stock requests like the one below need a stock plan from $25/month.
Step 2: Make Your First Request
Test the API with a simple GET request to fetch the latest Apple stock price:
GEThttps://api-v4.fcsapi.com/stock/latest?symbol=AAPL&access_key=API_KEYStep 3: Integrate & Build
Use the response data in your application. All responses are in JSON format with consistent structure across all endpoints.
Your API Key Location:
After registration, find your API key in the dashboard under "API Keys" section. Keep it secure and never expose it in client-side code.
API Request Credit Usage
All API endpoints count 1 credit per URL request, except the Latest API which counts 1 credit per 100 records returned. The smallest stock plan includes 15,000 API requests per month.
New to FCS Stock API?
Start with our Quick Start Guide to get up and running in minutes.
How credits count
- Only the Latest Price API counts 1 credit per 100 records returned.
- Credits are only counted when the response code is 200 and data is returned.
- API requests that return errors or empty responses do not count towards your usage.
- Log in to your dashboard to monitor your API usage.
- Credits reset each month on your billing date.
Best practices
- Use bulk requests (multiple symbols) to optimize credit usage.
- Cache responses for non-critical applications to reduce API calls.
- Handle rate limits gracefully with exponential backoff.
- Always check the status field before processing data.
- Send API requests using the POST method for better security.
Learn More about GET VS POST
API Endpoints
/stock/exchangesData SourcesExchanges and countries covered.POST/stock/indicesIndices ListStock market indices of any country.POST/stock/listStock ListAll stocks by country, sector or index.POST/stock/profileProfile DetailsCompany profile: sector, industry, employees and more.POST/stock/latestLatest PriceLatest stock prices: open, high, low, close, volume, change.POST/stock/indices_latestIndex Latest PriceLatest prices of stock market indices.POST/stock/historyHistory PriceHistorical prices of stocks and indices.POST/stock/earningsEarningsEPS and revenue, actuals and estimates.POST/stock/revenueRevenueRevenue by business segment and region.POST/stock/forecastForecastAnalyst price targets and estimates.POST/stock/dividendDividendsDividend dates, amounts, yield and frequency.POST/stock/balance_sheetBalance SheetBalance sheet statements, annual and interim.POST/stock/income_statementsIncome StatementsIncome statements, annual and interim.POST/stock/statisticsStatisticsKey statistics and financial ratios.POST/stock/cash_flowCash FlowCash flow statements, annual and interim.POST/stock/stock_data-All in one-Several financial endpoints in one call.POST/stock/advanceAdvanced QueryAll in one: filters, sorting, pagination, merging.POST/stock/advance?sort_byGainer/Loser/SortTop gainers, losers and movers.POST/stock/ma_avgMoving AveragesExponential (EMA) and Simple (SMA) moving average values.POST/stock/indicatorsTechnical IndicatorsRSI, MACD, Stochastic, Bollinger Bands and more.POST/stock/pivot_pointsPivot PointsSupport and resistance levels from pivot formulas.POST/stock/performancePerformance DataHighs/lows, returns over time and volatility.POST/stock/searchSearch APISearch stocks by company name or ticker.POST/stock/analyticsAnalyticsStock counts by country, exchange and sector.POST/stock/multi_urlMultiple / ParallelSeveral API calls in one parallel request.Parameters List
Authentication API KEY
Show more
Alternative Authentication: If you have a static IP address, you can whitelist it in your Account → Profile → IP Whitelist section to make requests without the access_key parameter.
Stock ticker symbols (comma-separated for multiple)
Show more
Formats Supported:
• Standard: AAPL, MSFT, TSLA
• Multiple symbols: AAPL,MSFT,TSLA
Finding Valid Symbols: Use our Stock List API to get all available symbols for your data.
Data type filter: stock,index,fund,structured,dr
Show more
Default: stock
Valid Values: stock, index, fund, structured, dr
Example: If you set type=stock, the API will only return stock symbols. If type=index, only index symbols will be returned.
Use Case: Perfect for applications that focus on specific markets or when you want to avoid mixing different asset types in your results.
Default:spot, Filter: spot, main, cfd, common, preferred
Show more
Default: null (returns all sub-types)
Valid Values: spot, main, cfd, common, preferred
Example: Setting sub_type=common will return only common stocks, while sub_type=preferred will return only preferred stocks.
Use Case: Ideal for investors or analysts who want to analyze performance or characteristics of a specific stock class without interference from other types.
Filter by country name
Show more
Default: none
Valid values: brazil, canada, china, denmark, finland, france, germany, hong-kong, india, indonesia, ireland, japan, malaysia, mexico, netherlands, pakistan, philippines, russia, saudi-arabia, singapore, south-africa, south-korea, spain, sweden, switzerland, thailand, turkey, united-arab-emirates, united-kingdom, united-states
Note: You can set 1 or more country names by comma-separated (e.g., "united-states,canada,japan")
Filter by stock market index IDs
Show more
Default: none
Valid values: any valid indices id as shown in "Indices" API
Note: You can set 1 or more indices id by comma-separated (e.g., "1,14,32"). If "Country" parameter exists, "indices" will be ignored.
Filter by market sector
Show more
Available sectors values are provided with "stock list API" response and can be retrieved from those endpoints.
Filter by exchange
Show more
Available exchanges values are provided with "stock list API" response and can be found in that endpoint's data.
Default:1h, Time Period for charts and analysis
Show more
Default: 1h
Valid Values: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w, month
Alternate values: 1, 5, 15, 30, 60, 120, 240, 300, 1440, 10080, 43200
Data Availability: Shorter timeframes have limited historical depth, while daily and higher timeframes go back several years.
Start date/time for historical data (Corporate plans only)
Show more
Default: none
Valid format 1: YYYY-MM-DD E.g: 2018-01-01
Valid format 2: Unix timestamp format E.g: 1661990400
Valid format 3: YYYY-MM-DDTHour:Min E.g: 2018-01-01T12:30
Note: When you do not set FROM and TO or length parameters, the system will return the latest 300 candles by default.
End date/time for historical data (Corporate plans only)
Show more
Same format options as "from" parameter
Note: When you do not set FROM and TO or length parameters, the system will return the latest results by default.
Default: Both, (annual/interim/both) Financial reporting period type
Show more
Default: both
Valid values: annual, interim, both
0|1 (return symbols extra details)
Show more
Default: 0
Valid Values: 0, 1
Profile Information Includes:
• Full instrument name
• Country/region information
• Asset type classification
• Trading specifications
• Decimal precision
Performance Tip: Set to false if you only need price data to reduce response size and improve speed, especially for bulk requests.
Filter stocks with JSON conditions
Show more
Available Operators:
- _eq → Matches exactly (array/string supported)
- _neq → Exclude matches (array/string supported)
- _gt → Above threshold
- _lt → Below threshold
- _gte → At or above threshold
- _lte → At or below threshold
- _between → Within range ("min,max")
- _contains → Text search (array supported)
{"active.c_gt":100,"active.chp_between":"5,10"} → Stocks priced above $100 with 5-10% daily change {"profile.country_eq":"US"} → Filter for U.S. listed stocks only {"profile.sector_neq":"Technology"} → Exclude technology sector {"profile.name_contains":"Bank"} → Stocks with "Bank" in company name Debug info available in response:
"filters" → {"applied": {...}, "ignored": [...]} Sort results by specific field or metric
Show more
Default: symbol (alphabetical)
Valid values: symbol, name, price, change, market_cap, volume, country
Order modifier: append
_desc or _asc to control direction. Examples:
sort_by=price_desc → Sorts results by highest price first sort_by=market_cap_asc → Sorts by smallest market cap first Use Case: Ideal when building leaderboards, performance tables, or ranked lists of stocks and indices.
Comma-separated list of APIs to merge into one response
Show more
Example: merge=latest,perf,tech merges three APIs for full stock overview.
Each merge adds +1 credit per 200 records.
Pagination page number
Show more
Number of records per page
Show more
Search within company names or symbols
Show more
Note: Use either `search` OR `symbol`, not both.
Find same stock cross-listed on other exchanges worldwide
Show more
similar=1 to discover where the same company's stock is traded on other exchanges or markets worldwide (e.g. NASDAQ:AAPL also trades as MIL:1AAPL, LSX:865985, XETRA:APC, etc.). Requirements:
• Query must return exactly 1 record — use a single
symbol=EXCHANGE:SYMBOL in the symbol param. •
merge must include both profile and meta (they supply type and currency for the lookup). • If either is missing, the response returns
info.similar_error with an explanation. Response Fields (inside
info):•
similar_direct — true: all results share one sub_type, returned as flat array. false: nested by sub_type key (e.g. {"spot":[...],"dr":[...]}). •
similar — array of cross-listed symbols. Each item contains: ticker, symbol, name, type, sub_type, currency, exchange, country, is_primaryExample:
{"symbol":"NASDAQ:AAPL","merge":"latest,profile,meta","similar":1}Response format type
Show more
Default: json
Available Formats:
• json - Standard JSON format (recommended)
• jsonp - JSON with padding for cross-domain requests
• array - PHP serialized array
Filter response fields by comma-separated keys
Show more
Default: none (returns all fields)
Valid values: any valid response field (e.g., price, volume, name, exchange)
Example:
filter=symbol,name,price,changeThis will return only those four fields for each record.
Performance Tip: Use filters when working with large datasets to minimize bandwidth usage and parsing time.
Indices IDs
default: 300, 1-10000, If set 500, Will return 500 candles
Mostly JS chart support candle data in this format, [1756893600,1.16, 1.17,1.13,1.16,0]
To get similar response, set is_chart=1
default plain, (plain/inherit), Plain return all data in plain array, format=inherit - return all data in nested array
Comma-separated list of endpoints to include: earnings, revenue, profile, dividends, balance_sheet, income_statements, statistics, cash_flow
Comma-separated column names to return (empty = all columns) (case-sensitive)
0|1 - Work with columns parameter. 0: flatten array, 1: keep nested structure
All stock/advance filters are supported. Combine `sort` with conditions like `limit=20` for best results.
Common URL base
Array of API endpoints
Your Public Key, instead of access_key. Only works from an Allowed Domain or an authorized server IP, and the token lasts the expiry set in your dashboard.
With access_key: validity in seconds, 30 to 86400 (default 3600), or a Unix timestamp. Ignored with public_key.
With access_key: the website this token is made for, for example customer.com. It must be ONE valid host (no list, no wildcard), otherwise the answer is error 112. Leave it out for a token that works from any website. Ignored with public_key (a browser on an Allowed Domain gets a token for its own website, a server let in by IP gets a plain token).