NSE BSE live rates api

How can I get a free API or link to access NSE/BSE stock live rates and historical data, including yearly, monthly, weekly, or intraday open, high, low, and close prices, for use on our website and desktop software?

I am aware of Tickertape’s embed code, but it provides data in a sticker format, which cannot be analyzed or stored in a database.

What are the best possible solutions?