How to get Sensex options data using the Data API?

I just purchased the data api subscription. I know little to nothing about coding but I have managed to extract historical nifty options data using chatgpt. However, the reason I purchased the subcription was to get sensex options data, which I’m rather unsure how to get? Any help will be appreciated.

Hey @Aryan_Balar ,

We want to inform you that in order to fetch the sensex option data. Below is the request structure for the same.

{
“exchangeSegment”: “BSE_FNO”,
“interval”: “1”,
“securityId”: 51,
“instrument”: “OPTIDX”,
“expiryFlag”: “MONTH”,
“expiryCode”: 1,
“strike”: “ATM”,
“drvOptionType”: “CALL”,
“requiredData”: [“close”],
“fromDate”: “2025-12-01”,
“toDate”: “2025-12-05”
}

You may make required changes in the required data field as per your requirement and run the same.

Also , you may refer our Api documentation for endpoint and request structure Expired Options Data - DhanHQ Ver 2.0 / API Document