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
| Method | URL |
|---|---|
| GET | {{hosturl}}/nontransactional/:comid/:versionid/getIndexSectorList |
🛣️ Path Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| comid | string | Yes | Tenant id | 1404 |
| versionid | string | Yes | API version identifier | v1 |
🔑 Header Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| Authorization | string | Bearer token for authentication | {{access_token}} |
🟢 Success Response - 200 OK
| Field | Type | Description | Example |
|---|---|---|---|
| status | boolean | Indicates whether the request was successful | true |
| result | array | A 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:
| Field | Type | Description | Example |
|---|---|---|---|
| Name | string | Display name of the Index or Sector | "Nifty 50", "Banks" |
| Flag | integer | Indicates whether the entry is an Index (1) or a Sector (2) | 1 |
| nMktSegId | integer | Market Segment ID. | 1 (NSE), 8 (BSE) |
| Exchange | string | Exchange to which this entry belongs | "NSE", "BSE" |
| Code | string | Internal 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"
}
]
]
}