Downloading stocks listed in Index

Is there any way to download stocks list under INDEX for example, NIFTY50, BANK NIFY, NIFTYMIDCAP and so on using FYERS API.

I know there is csv file and Json file which contains all the stocks, but I couldn't find a way to extract stocks name and symbol based on index? Can someone please help.

if not possible through FYERS API then please let me know any other way.

4 replies