Empower your application with most reliable and secure Stock API.
Supported by over 30 exchange rate data sources, the FCS API delivers real-time Stock exchange rate data for 30+ countries and more than 25,000 stocks. With the best stock API, you can access the latest prices for all or specific stock pairs, retrieve historical stock information, analyze market trends with key technical indicators, and explore stock performance metrics, including company income, cash flow, earnings, and financial reports. Additionally, our live stock API ensures up-to-the-minute updates, while the free stock API option provides accessible stock market data for various financial applications.
All APIs endpoint count 1 credit per URL request. But Latest API endpoint count 1 credit per 100 record return.
Learn More about GET VS POST .
You're not logged in.
Get Your API KeyThis stock API is designed for fast access to our powerful tools. You can use any programming language to make a request to the API URL and receive a response in the standard JSON format. Languages such as Javascript (Ajax), PHP (Curl or file_get_contents), Java or Android (HttpURLConnection), C# (httpWebRequest), or CURL via the command line are all compatible for interacting with the API.
You need API key in order to access our database. Your API Key is the unique key that is passed into the API base URL's access_key parameter in order to authenticate with the FCS API.
https://fcsapi.com/api-v3/stock/Your-select-function/?access_key=Your_API_Key | Parameters | Details |
|---|---|
| access_key (required) | This is a required parameter. It's your unique access key used to authenticate and authorize your request. This key is specific to your account and should be kept secure. Valid value: API_KEY |
| country (required) | This parameter is required when using the "All Stocks list" API. It determines which country's stock market data you want to retrieve. The API supports 30 different countries worldwide, allowing you to access global market data. |
| indices_id (optional) | Use this parameter when you need all stocks or components from a specific stock market index (like S&P 500, FTSE 100, etc.). Instead of retrieving stocks by country, you can get all stocks that are part of a particular index. You can set 1 or more indices id to get all stocks from multiple indices id by comma-separated ids (e.g., "1,14,32"). If the "Country" parameter exists in URL than the "indices" parameter will be ignored - country takes precedence. |
| sector (optional) | This parameter allows you to filter stock listings by specific market sectors (such as Technology, Healthcare, Finance, etc.). This helps when you want to analyze or compare stocks within the same industry sector. |
| exchange (optional) | This parameter lets you filter your results by specific stock exchanges (like NYSE, NASDAQ, LSE, etc.). Useful when you want to focus on stocks from particular trading venues rather than by country or index. |
| symbol (required) | This parameter specifies the stock ticker symbol you want information about (like AAPL for Apple, MSFT for Microsoft). You must provide either a "symbol" or an "id" parameter in your request - at least one is required. If both are provided, the "id" parameter takes precedence. |
| id (optional) | An alternative identifier for stocks. Instead of using the stock symbol, you can use the stock's unique ID in the system. This is particularly useful when symbols might be ambiguous across different exchanges. |
| from (optional) | This parameter sets the start date for historical data queries. When you need historical price data or other time-series information, use this to define the beginning of your date range. Note: When you do not set FROM and TO parameters, the system will return the latest 300 candles (price data points). |
| to (optional) | This parameter sets the end date for historical data queries. It works in conjunction with the "from" parameter to define the complete time range for which you want historical data. Note: When you do not set FROM and TO parameters, the system will return the latest 100 results by default. |
| level (optional) | This parameter controls the volume of historical price data returned in a single request. Higher levels return more data points, allowing for more comprehensive historical analysis. |
| index_id (optional) | Use this parameter when you want to retrieve data for a specific market index (like S&P 500, Dow Jones, etc.) rather than individual stocks. This allows you to analyze index performance over time. |
| duration (optional) | This parameter specifies the reporting period type for financial data. It determines whether you want annual financial reports or interim (quarterly) financial reports for the securities. |
| period (optional) | This crucial parameter defines the time frame or interval for price data, charts, and technical indicators. It determines whether you want minute-by-minute data, hourly data, daily data, etc. Different analysis needs require different time periods. |
| output (optional) | This parameter controls the format of the API response data. You can choose the format that best integrates with your application or analysis tools. |
You can get all the list of supported indices in your favorite country. You can use these indices ids in the "All Stocks List" API. Enter your indice's country name to get all its indices list.
api_key = API_KEY country output https://fcsapi.com/api-v3/stock/indices?country=indonesia&access_key=API_KEY
| status: boolean The status of this request's response. | ||||
| code: integer The code of this request's response. | ||||
| msg: string The massage of this request's response. | ||||
response: array
| ||||
info: array
|
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
{
"index_id": 1113,
"index_name": "IDX Composite",
"full_name": "Jakarta Stock Exchange Composite Ind",
"country": "indonesia"
},
{
"index_id": 1114,
"index_name": "IDX Kompas 100",
"full_name": "IDX Kompas 100",
"country": "indonesia"
},
],
"info": {
"server_time": "2023-09-06 21:53:51 UTC",
"credit_count": 1
}
} You can get all list of our supported stocks names, ids, short name and country name.
api_key = API_KEY country indices_id sector exchange output https://fcsapi.com/api-v3/stock/list?country=united-states&access_key=API_KEY
https://fcsapi.com/api-v3/stock/list?sector=services,energy&access_key=API_KEY
https://fcsapi.com/api-v3/stock/list?exchange=nasdaq§or=services&access_key=API_KEY
https://fcsapi.com/api-v3/stock/list?indices_id=1,2,3&access_key=API_KEY
| status: boolean The status of this request's response. | |||||||
| code: integer The code of this request's response. | |||||||
| msg: string The massage of this request's response. | |||||||
response: array
| |||||||
info: array
|
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
{
"id": 1,
"name": "Boeing",
"short_name": "BA",
"country": "united-states"
"ccy": "USD",
"exch": "NYSE",
"sector": "Industrials"
}
],
"info": {
"server_time": "2023-09-06 21:53:51 UTC",
"credit_count": 1
}
} Access complete company information, such as their address, employee count, equity type, sector, and country of origin. You can fetch details for single or multiple stocks simultaneously by appending the stock symbols/IDs parameter to your API request, separated by commas.
1 credit count for each 100 record returned (rounded up).
api_key = API_KEY id symbol output Request by ID's'
https://fcsapi.com/api-v3/stock/profile?id=1&access_key=API_KEY
Request by short name
https://fcsapi.com/api-v3/stock/profile?symbol=TSLA,MSFT,FB,AAPL&access_key=API_KEY
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
{
"symbol": "BA",
"full_name": "Boeing Co",
"country": "united-states",
"sector": "Industrials",
"industry": "Aerospace & Defense",
"equity_type": "ORD",
"no_of_employee": 156000,
"isin": "",
"available_history": "1m, 5m, 15m, 30m, 1h, 2h, 4h, 5h, 1d, 1w, month",
"coins": "5 francs, 10 centimes, 2 francs, 1 ⁄ 2 francs, 20 centimes, 1 francs, 5 centimes",
"id": 1,
"exch": "NYSE",
"ccy": "USD"
}
],
"info": {
"server_time": "2023-03-18 12:15:11 UTC",
"credit_count": 1
}
} A key feature of the API is retrieving the latest stock prices. You can easily get prices for one or multiple stocks at once by adding the stock ID/symbol parameter to your API request, separating each symbol/ID with commas.
Prices update in every 30 seconds
1 credit count for each 100 record returned (rounded up).
api_key = API_KEY id symbol indices_id country sector exchange output Available exchages/sector names from specific country will return with API response, to get all countires, exchanges and sectors list. Click Here
Request by ID's' Multiple or Single
https://fcsapi.com/api-v3/stock/latest?id=1,2,3&access_key=API_KEY
Request by symbol Multiple or Single
https://fcsapi.com/api-v3/stock/latest?symbol=AMD,AAPL,MSFT,FB&access_key=API_KEY
Get Apple stock from specific exchange
https://fcsapi.com/api-v3/stock/latest?symbol=AAPL&exchange=nasdaq,mexico&access_key=API_KEY
| status: boolean The status of this request's response. | ||||||||||||
| code: integer The code of this request's response. | ||||||||||||
| msg: string The massage of this request's response. | ||||||||||||
response: array
| ||||||||||||
info: array
|
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
{
"id": 1,
"h": 1.06856,
"l": 1.06057,
"c": 1.06687,
"cty": "united-states",
"ccy": "USD",
"exch": "NYSE",
"ch": +0.00617,
"cp": "+0.58%",
"t": 1679086794,
"s": "BA",
"tm": "2023-03-17 20:59:54"
}
],
"info": {
"server_time": "2023-03-18 13:01:45 UTC",
"credit_count": 1
}
} You can easily fetch prices for single or multiple indices simultaneously. Just include the indices ID parameter in your API request, separating multiple IDs with commas.
1 credit count for each 100 record returned (rounded up).
api_key = API_KEY id country output Request by ID's' Multiple or Single
https://fcsapi.com/api-v3/stock/indices_latest?id=1&access_key=API_KEY
Request by country Multiple or Single
https://fcsapi.com/api-v3/stock/indices_latest?country=Japan,Turkey&access_key=API_KEY
| status: boolean The status of this request's response. | ||||||||||
| code: integer The code of this request's response. | ||||||||||
| msg: string The massage of this request's response. | ||||||||||
response: array
| ||||||||||
info: array
|
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
{
"id": 1,
"h": 1.06856,
"l": 1.06057,
"c": 1.06687,
"cty": "united-states",
"name": "Dow Jones",
"ch": +0.00617,
"cp": "+0.58%",
"t": 1679086794,
"tm": "2023-03-17 20:59:54"
}
],
"info": {
"server_time": "2023-03-18 13:01:45 UTC",
"credit_count": 1
}
} Access historical candle price data for a specific stock. For most stocks, historical rates are available starting from their earliest date. You can retrieve historical rates through the FCS API by appending a date (in YYYY-MM-DD format) to the base URL and choosing a time period {5m, 15m, 30m, 1h, 2h, 4h, 5h, 1d, 1w, month}.
api_key = API_KEY id symbol period from to level output Below API does not support multiple ids in URL as a parameter. Send only 1 ID/Symbol name at a time with the API request. Try Multi-URL API at once Goto Multiple API .
1 credit count for each 300 candles returned (rounded up).
API returns the previous 900 candle which is the latest. Use "Level" paramerter to control number of candles. level=1 return 300 candles,. level=2 return 600 candles, level=3 return 900 candles.
Latest 300 candles
https://fcsapi.com/api-v3/stock/history?id=1&period=1d&access_key=API_KEY
Between Specific Date-Time
https://fcsapi.com/api-v3/stock/history?symbol=IBM&from=2025-06-16&to=2025-12-16&period=1d&access_key=API_KEY
| status: boolean The status of this request's response. | |||||||
| code: integer The code of this request's response. | |||||||
| msg: string The massage of this request's response. | |||||||
response: array
| |||||||
info: array
|
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": {
"1679050800": {
"o": 1.06335,
"h": 1.064,
"l": 1.0616,
"c": 1.063,
"v": 1,
"t": 1679050800,
"tm": "2023-03-17 11:00:00"
}
},
"info": {
"id": 1,
"symbol": "BA",
"period": "1d",
"server_time": "2023-03-18 16:06:36 UTC",
"credit_count": 1
}
} When you need indices historical data, please set "indices_id" parameter rather then "id". Other setting will be same for history price data.
api_key = API_KEY indices_id period from to level output Below API does not support multiple ids in URL as a parameter. Send only 1 ID/Symbol name at a time with the API request. Try Multi-URL API at once Goto Multiple API .
1 credit count for each 300 candles returned (rounded up).
Latest 300 candles
https://fcsapi.com/api-v3/stock/history?indices_id=1&period=1d&access_key=API_KEY
Returns specific time period historical exchange rate data between two specified dates for all available symbols. Use FROM/TO parameters.
Between Specific Date-Time
https://fcsapi.com/api-v3/stock/history?indices_id=1&from=2025-06-16&to=2025-12-16&period=1d&access_key=API_KEY
| status: boolean The status of this request's response. | |||||||
| code: integer The code of this request's response. | |||||||
| msg: string The massage of this request's response. | |||||||
response: array
| |||||||
info: array
|
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": {
"1679050800": {
"o": 39972.44,
"h": 39977.69,
"l": 39864.67,
"c": 39879.16,
"v": "",
"t": 1679050800,
"tm": "2023-03-17 11:00:00"
}
},
"info": {
"id": 1,
"symbol": "",
"period": "1d",
"server_time": "2023-03-18 16:06:36 UTC",
"credit_count": 1
}
} You can get dividends last and historical data in single request. To do so, simply append the stock ID/symbol parameter to your API request.
api_key = API_KEY id symbol output API
https://fcsapi.com/api-v3/stock/dividend?id=1&access_key=API_KEY
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
"id": 1,
"symbol": "BA",
"data": {
"1581552000": {
"dividend_date": "2020-02-13",
"dividend": "2.055",
"type": "Quarterly",
"payment_date": "2020-03-06",
"yield": "2.37%",
"type_short": "3M"
}
}
],
"info": {
"server_time": "2023-03-18 16:06:36 UTC",
"credit_count": 1
}
} Get stock performance, when and how much stock price performs.
api_key = API_KEY id symbol indices_id country index_id sector exchange output Performance by id
https://fcsapi.com/api-v3/stock/performance?id=1&access_key=API_KEY
Performance by symbol
https://fcsapi.com/api-v3/stock/performance?symbol=TSLA,MSFT,FB&access_key=API_KEY
Performance by country
https://fcsapi.com/api-v3/stock/performance?country=germany§or=technology&access_key=API_KEY
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
{
"id": 1,
"symbol": "BA",
"exch": "NYSE",
"ccy": "USD",
"daily": 1.11,
"week": 3.64,
"month": 8.9,
"ytd": -29.16,
"year": -9.98,
"year3": -18.74
}
],
"info": {
"server_time": "2023-03-18 16:06:36 UTC",
"credit_count": 1
}
} Get stock fundamental to track stock performance for screening.
api_key = API_KEY id symbol indices_id country index_id sector exchange output Fundamental by id
https://fcsapi.com/api-v3/stock/fundamental?id=1&access_key=API_KEY
Fundamental by symbol
https://fcsapi.com/api-v3/stock/fundamental?symbol=TSLA,MSFT,FB&access_key=API_KEY
Fundamental by country
https://fcsapi.com/api-v3/stock/fundamental?country=germany§or=technology&access_key=API_KEY
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
{
"id": 1,
"symbol": "BA",
"exch": "NYSE",
"ccy": "USD",
"avg_vol_3m": "7.73M",
"market_cap": "111.1M",
"revenue": "76.4B",
"pe_ratio": -29.16,
"beta": 1.98
}
],
"info": {
"server_time": "2023-03-18 16:06:36 UTC",
"credit_count": 1
}
} Finance is a heart of stock, You can get all current and historical income of stock, Balance and cash flow.
Below are 4 different API sample URLs.
Below API does not support multiple ids in URL as a parameter. Send only 1 ID/Symbol name at a time with API request.
api_key = API_KEY id symbol duration output Income API
https://fcsapi.com/api-v3/stock/income?id=1&access_key=API_KEY
Balance API (4 month duration)
https://fcsapi.com/api-v3/stock/balance?id=1&duration=interim&access_key=API_KEY
Cash API
https://fcsapi.com/api-v3/stock/cash?id=1&access_key=API_KEY
Earning API
https://fcsapi.com/api-v3/stock/earning?id=1&access_key=API_KEY
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
"id": 1,
"symbol": "BA",
"type": "Income",
"duration": "Annual",
"data": {...}
}
],
"info": {
"server_time": "2023-03-18 16:06:36 UTC",
"credit_count": 1
}
} The Market Trend / Signals API is created for those who want to monitor market trends or develop stock indicators. Our Buy/Sell Signals and Indicators are derived from the last 300 candles within a defined time period. Explore the various types of signals or indicators data below.
A pivot point serves as a crucial support/resistance level, often used by traders to forecast market direction. It is determined by averaging key prices (high, low, close) from the prior trading period. This helps identify potential resistance and support zones in stock. Our pivot points, resistance, and support levels are derived from the previous high, open, and close prices.
Below API doesn't support multi-ids in URL as a parameter.
api_key = API_KEY id symbol period output API
https://fcsapi.com/api-v3/stock/pivot_points?id=1&period=1d&access_key=API_KEY
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": {
"pivot_point": {
"classic": {
"pp": 1.0746,
"R1": 1.0758,
"R2": 1.077,
"R3": 1.0782,
"S1": 1.0734,
"S2": 1.0722,
"S3": 1.071
},
"fibonacci": {...},
"camarilla": {...},
"woodie": {...},
"demark": {...}
},
"overall": {
"summary": "Neutral",
"msg": "summary based on all SMA,EMA,Pivot Points and indicators"
},
},
"info": {
"id": 1,
"decimal": 4,
"symbol": "BA",
"period": "1d",
"disclaimer": "...",
"update": "18 seconds ago",
"update_time": "2024-05-09 10:12:01 UTC",
"server_time": "2024-05-09 10:12:19 UTC",
"credit_count": 1
}
} The Moving Average (MA) is a key trend indicator used to evaluate market value based on past (5, 10, 20, 50, 100, 200) candles. We calculate both Simple Moving Average (SMA) and Exponential Moving Average (EMA) values, based on the time frame you choose, such as 5 minutes or 7 days. Simply include the period parameter in the URL to access this data. The response contains both SMA and EMA values for your analysis.
Below API does not support multiple ids in URL as a parameter. Send only 1 ID/Symbol name at a time with API request. Try Multi-URL API at once Goto Multiple API .
api_key = API_KEY id symbol period output API
https://fcsapi.com/api-v3/stock/ma_avg?id=1&period=1d&access_key=API_KEY
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": {
"count": {
"Total_Buy": 4,
"Total_Sell": 6,
"Total_Neutral": 2
},
"ma_avg": {
"SMA": {
"MA5": {
"v": 0.95641,
"s": "Buy"
},
"MA10": {
"v": 0.95591,
"s": "Buy"
},
"MA20": {...},
"MA50": {...},
"MA100": {...},
"MA200": {...}
},
"EMA": {...},
"summary": "Neutral"
},
"overall": {
"summary": "Neutral",
"msg": "summary based on all SMA,EMA,Pivot Points and indicators"
}
},
"info": {
"id": 2,
"decimal": 4,
"symbol": "BA",
"period": "1d",
"disclaimer": "...",
"update": "just now",
"update_time": "2023-08-30 18:46:14 UTC",
"server_time": "2023-08-30 18:46:14 UTC",
"credit_count": 1
}
} Technical indicators are derived from leading stock indicators such as MA, RSI, STOCH, ATR, and more. In exchange, you'll receive the most up-to-date values for these essential indicators. latest data point provides information for a given exchange pairof currencyand the latest informationfor a specified currency pair.
Below API does not support multiple ids in URL as a parameter. Send only 1 ID/Symbol name at a time with API request. Try Multi-URL API at once Goto Multiple API .
api_key = API_KEY id symbol period output API
https://fcsapi.com/api-v3/stock/indicators?id=1&access_key=API_KEY
API by symbol
https://fcsapi.com/api-v3/stock/indicators?symbol=MSFT&access_key=API_KEY
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": {
"count": {
"Total_Buy": 7,
"Total_Sell": 0,
"Total_Neutral": 0
},
"indicators": {
"RSI14": {
"v": 51.9678,
"s": "Buy"
},
"STOCH9_6": {
"v": 43.0012,
"s": "Buy"
},
"STOCHRSI14": {...},
"MACD12_26": {...},
"WilliamsR": {...},
"CCI14": {...},
"ATR14": {...},
"UltimateOscillator": {...},
"ROC": {...},
"summary": "Strong Buy"
},
"overall": {
"summary": "Neutral",
"msg": "summary based on all SMA,EMA,Pivot Points and indicators"
}
},
"info": {
"id": 2,
"decimal": 4,
"symbol": "BA",
"period": "1d",
"disclaimer": "...",
"update": "just now",
"update_time": "2023-08-30 19:14:02 UTC",
"server_time": "2023-08-30 19:14:02 UTC",
"credit_count": 1
}
} Signal indicators are derived from leading chart tools like MA, RSI, STOCH, ATR, and more. These indicators are the backbone of effective and lucrative stock trading strategies. Built to deliver real-time technical values, the response will provide you with key indicator results to inform your decisions.
api_key = API_KEY id symbol country sector indices_id index_id output Technical API
https://fcsapi.com/api-v3/stock/technicals?id=1&access_key=API_KEY
All Stocks by indices
It will return all stocks from Nasdaq index
https://fcsapi.com/api-v3/stock/technicals?indices_id=1,2&access_key=API_KEY
Index Technical
It will only return technical of Nasdaq only
https://fcsapi.com/api-v3/stock/technicals?index_id=1,2&access_key=API_KEY
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
{
"id": 1,
"hourly": "Strong Buy",
"daily": "Strong Buy",
"weekly": "Strong Sell",
"monthly": "Strong Sell",
"symbol": "BA",
"exch": "NYSE",
"ccy": "USD"
}
],
"info": {
"server_time": "2023-08-30 19:25:37 UTC",
"credit_count": 1
}
} You can search any currency with similar words, search query will find in full name and short name. Response Return upto 20 result.
api_key = API_KEY s = Any words to search strict = any valid value Default: 0
Valid Values: 0, 1
0: search if any word exist
1: search if all words exist
type = any valid value Default: both
Valid Values: index, stock, both
output API
https://fcsapi.com/api-v3/stock/search?s=General+Electric&access_key=API_KEY
{
"status": true,
"code": 200,
"msg": "Successfully",
"response": [
{
"id": 1287,
"name": "General Electric",
"short_name": "GE",
"full_name": "General Electric Company",
"type": "stock"
"country": "United States",
"locality": "Boston",
"exch": "NYSE",
"ccy": "USD"
}
],
"info": {
"server_time": "2023-09-06 21:53:51 UTC",
"credit_count": 1
}
} This API gives you full report of country. How many stocks in each country, how many stocks in each exchange or sectors. You also use this API to get countries name and exchanges names or exchange country name.
api_key = API_KEY output API
https://fcsapi.com/api-v3/stock/analytics?access_key=API_KEY {
"status": true,
"code": 200,
"msg": "Successfully",
"response": {
"country": {
"united-states": 6
},
"exchanges": {
"NYSE": 3,
"NASDAQ": 2
}
},
"info": {
"server_time": "2023-09-06 21:53:51 UTC",
"credit_count": 1
}
} Stock Prices, Profile, Market trends and signals, and historical data are not designed for trading purpose, These signals are only for education or noncommercial purpose use. Data contained in this application/website is not necessarily real-time nor accurate and so prices may not be accurate and may differ from the actual market price, meaning prices are indicative and not appropriate for trading purposes. Therefore we doesn`t bear any responsibility for any trading losses you might incur as a result of using this data.