Skip to main content

Get Index Sector List

This API retrieves the list of available Indices and Sectors based on the exchange. The response contains details such as the Index/Sector Name, Market Segment ID (nMktSegId), Exchange, and other related information.

This API is primarily used to populate the Index/Sector selection options.

API Flow

This is Step 1 of the Screener API sequence. Call this API first to obtain the mktSegId and indexSector values required for the final Get Analytics Data call.

🔗 Endpoint

MethodURL
GET{{hosturl}}/nontransactional/:comid/:versionid/getIndexSectorList

🛣️ Path Parameters

ParameterTypeRequiredDescriptionExample
comidstringYesTenant id1404
versionidstringYesAPI version identifierv1

🔑 Header Parameters

ParameterTypeDescriptionExample
AuthorizationstringBearer token for authentication{{access_token}}

🟢 Success Response - 200 OK

FieldTypeDescriptionExample
statusbooleanIndicates whether the request was successfultrue
resultarrayA nested array of Index/Sector objects grouped by exchange. First array contains NSE data, second contains BSE data.See below

📘 Result Object Fields

Each object within the result array contains the following fields:

FieldTypeDescriptionExample
NamestringDisplay name of the Index or Sector"Nifty 50", "Banks"
FlagintegerIndicates whether the entry is an Index (1) or a Sector (2)1
nMktSegIdintegerMarket Segment ID.1 (NSE), 8 (BSE)
ExchangestringExchange to which this entry belongs"NSE", "BSE"
CodestringInternal code identifying the Index or Sector"20559", "00000006"

📋 Sample Request URL

GET {{hosturl}}/nontransactional/1404/v1/getIndexSectorList

📋 Sample Response

{
"status": true,
"result": [
[
{
"Name": "Nifty 50",
"Flag": 1,
"nMktSegId": 1,
"Exchange": "NSE",
"Code": "20559"
},
{
"Name": "Banks",
"Flag": 2,
"nMktSegId": 1,
"Exchange": "NSE",
"Code": "00000006"
}
],
[
{
"Name": "SENSEX",
"Flag": 1,
"nMktSegId": 8,
"Exchange": "BSE",
"Code": "20558"
},
{
"Name": "Banks",
"Flag": 2,
"nMktSegId": 8,
"Exchange": "BSE",
"Code": "00000006"
}
]
]
}