π’ Public APIs
Get stocks
The API endpoint allows you to retrieve a list of stocks listed on NSE [National Stock Exchange of India]. The data you get is a snapshot taken on 28th Dec 2023 & not live from stock exchange. Upon accessing this endpoint, you will receive a response containing a collection of randomly selected stocks.
get/public/stocks
Request
- Base URLhttps://api.freeapi.app/api/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pagestring
Example:1
limitstring
Example:2
incstring
Example:Symbol,Name,MarketCap,CurrentPrice
querystring
Example:tata
Response
Get stocks
Example response
{
"data": {
"currentPageItems": 10,
"data": [
{
"Name": "Tata Chemicals Limited",
"Symbol": "TATACHEM",
"ListingDate": "01-Apr-99",
"ISIN": "INE092A01019",
"MarketCap": "βΉ 28,355 Cr.",
"CurrentPrice": "βΉ 1,113",
"HighLow": "βΉ 1,123 / 912",
"StockPE": 14.4,
"BookValue": "βΉ 840",
"DividendYield": "1.54 %",
"ROCE": "11.6 %",
"ROE": "12.0 %",
"FaceValue": "βΉ 10.0"
},
{
"Name": "Tata Coffee Limited",
"Symbol": "TATACOFFEE",
"ListingDate": "16-Feb-00",
"ISIN": "INE493A01027",
"MarketCap": "βΉ 5,993 Cr.",
"CurrentPrice": "βΉ 321",
"HighLow": "βΉ 322 / 199",
"StockPE": 33.4,
"BookValue": "βΉ 99.3",
"DividendYield": "0.93 %",
"ROCE": "9.78 %",
"ROE": "10.1 %",
"FaceValue": "βΉ 1.0"
}
],
"limit": 10,
"page": 1,
"totalItems": 20,
"totalPages": 2
},
"message": "Books fetched successfully",
"statusCode": 200,
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.