Skip to main content

Get index list

The Get Index List APIs provide you with the ability to discover all index names and retrieve the corresponding scrip code necessary for obtaining the index value.

Method: POST

https://connect.thefirstock.com/api/V3/indexList

Request details

ParameterDescription Data typesExample
userIdUser Id of the login userString"AA1999"
exchangeExchangeString"NSC"
jKeyKey Obtained on login success.String"d9b4e1b1c79042476fd9
611eed81003b2dc34c3f1
3b0b60a4842fd5a24c9f3f2"
curl --location 'https://connect.thefirstock.com/api/V3/indexList' \
--header 'Content-Type: application/json' \
--data '{
"userId": "AA123",
"jKey": "e6a211bea63adff386578988e1cf4a9521c4744e6a39ad63174c8797e2af8c38",
"exchange": "NSE"
}

Success response details

ParameterDescriptionData typesExamples
statusSuccessString"Success"
valuesArray Of Basket, Criteria pair.String[ "idxname":"HangSeng BeES-NAV",
"token": "26016" "token": "26000"]
data.requestTimeIt will be present only on successful response.String"16:38:31 17-01-2023"

Basket, Criteria pair Object

ParameterDescriptionData TypeExample
value.idxnameIndex NameString "HangSeng BeES-NAV"
value.tokenIndex token used to subscribeString "26016"

Failure response details

ParameterDescriptionData TypeExample
statusFailedString"Failed"
codeHTTP CodeString"401"
nameType of errorString"INVALID_USERID"
error.fieldError fieldString"userid"
error.messageError messageString"userid parameter is invalid"

Sample response

{
"status": "Success",
"data": {
"requestTime": "12:04:58 16-02-2023",
"values": [
{
"idxname": "HangSeng BeES-NAV",
"token": "26016"
},
{
"idxname": "India VIX",
"token": "26017"
},
{
"idxname": "Nifty 50",
"token": "26000"
},
{
"idxname": "Nifty IT",
"token": "26008"
},
{
"idxname": "Nifty Next 50",
"token": "26013"
},
{
"idxname": "Nifty Bank",
"token": "26009"
},
{
"idxname": "Nifty 500",
"token": "26004"
},
{
"idxname": "Nifty 100",
"token": "26012"
},
{
"idxname": "Nifty Midcap 50",
"token": "26014"
},
{
"idxname": "Nifty Realty",
"token": "26018"
},
{
"idxname": "Nifty Infra",
"token": "26019"
},
{
"idxname": "Nifty Energy",
"token": "26020"
},
{
"idxname": "Nifty FMCG",
"token": "26021"
},
{
"idxname": "Nifty MNC",
"token": "26022"
},
{
"idxname": "Nifty Pharma",
"token": "26023"
},
{
"idxname": "Nifty PSE",
"token": "26024"
},
{
"idxname": "Nifty PSU Bank",
"token": "26025"
},
{
"idxname": "Nifty Serv Sector",
"token": "26026"
},
{
"idxname": "Nifty Auto",
"token": "26029"
},
{
"idxname": "Nifty Metal",
"token": "26030"
},
{
"idxname": "Nifty Media",
"token": "26031"
},
{
"idxname": "Nifty 200",
"token": "26033"
},
{
"idxname": "Nifty Div Opps 50",
"token": "26034"
},
{
"idxname": "Nifty Commodities",
"token": "26035"
},
{
"idxname": "Nifty Consumption",
"token": "26036"
},
{
"idxname": "Nifty Fin Service",
"token": "26037"
},
{
"idxname": "Nifty50 Div Point",
"token": "26038"
},
{
"idxname": "Nifty100 Liq 15",
"token": "26040"
},
{
"idxname": "Nifty CPSE",
"token": "26041"
},
{
"idxname": "Nifty GrowSect 15",
"token": "26001"
},
{
"idxname": "Nifty50 PR 2x Lev",
"token": "26002"
},
{
"idxname": "Nifty50 PR 1x Inv",
"token": "26042"
},
{
"idxname": "Nifty50 TR 2x Lev",
"token": "26043"
},
{
"idxname": "Nifty50 TR 1x Inv",
"token": "26044"
},
{
"idxname": "Nifty50 Value 20",
"token": "26045"
},
{
"idxname": "Nifty Mid Liq 15",
"token": "26046"
},
{
"idxname": "Nifty Pvt Bank",
"token": "26047"
},
{
"idxname": "NIFTY100 Qualty30",
"token": "26048"
},
{
"idxname": "NIFTY MIDCAP 100",
"token": "26011"
},
{
"idxname": "NIFTY SMLCAP 100",
"token": "26032"
},
{
"idxname": "Nifty GS 8 13Yr",
"token": "26049"
},
{
"idxname": "Nifty GS 10Yr",
"token": "26050"
},
{
"idxname": "Nifty GS 10Yr Cln",
"token": "26051"
},
{
"idxname": "Nifty GS 4 8Yr",
"token": "26052"
},
{
"idxname": "Nifty GS 11 15Yr",
"token": "26053"
},
{
"idxname": "Nifty GS 15YrPlus",
"token": "26054"
},
{
"idxname": "Nifty GS Compsite",
"token": "26055"
},
{
"idxname": "NIFTY50 EQL Wgt",
"token": "26056"
},
{
"idxname": "NIFTY100 EQL Wgt",
"token": "26057"
},
{
"idxname": "NIFTY100 LowVol30",
"token": "26058"
},
{
"idxname": "NIFTY Alpha 50",
"token": "26059"
},
{
"idxname": "NIFTY MIDCAP 150",
"token": "26060"
},
{
"idxname": "NIFTY SMLCAP 50",
"token": "26061"
},
{
"idxname": "NIFTY SMLCAP 250",
"token": "26062"
},
{
"idxname": "NIFTY MIDSML 400",
"token": "26063"
},
{
"idxname": "NIFTY200 QUALTY30",
"token": "26064"
},
{
"idxname": "Nifty FinSrv25 50",
"token": "26065"
},
{
"idxname": "NIFTY AlphaLowVol",
"token": "26066"
},
{
"idxname": "Nifty200Momentm30",
"token": "26067"
},
{
"idxname": "Nifty100ESGSecLdr",
"token": "26068"
},
{
"idxname": "NIFTY HEALTHCARE",
"token": "26069"
},
{
"idxname": "NIFTY CONSR DURBL",
"token": "26070"
},
{
"idxname": "NIFTY OIL AND GAS",
"token": "26071"
},
{
"idxname": "NIFTY500 MULTICAP",
"token": "26072"
},
{
"idxname": "NIFTY LARGEMID250",
"token": "26073"
},
{
"idxname": "NIFTY MID SELECT",
"token": "26074"
},
{
"idxname": "NIFTY TOTAL MKT",
"token": "26075"
},
{
"idxname": "NIFTY MICROCAP250",
"token": "26076"
},
{
"idxname": "NIFTY IND DIGITAL",
"token": "26077"
},
{
"idxname": "NIFTY100 ESG",
"token": "26078"
},
{
"idxname": "NIFTY M150 QLTY50",
"token": "26079"
},
{
"idxname": "NIFTY INDIA MFG",
"token": "26080"
}
]
}
}