Fetching holdings/portfolio of mutual funds programmatically

Does anyone have a way to fetch mutual fund holdings programmatically?

I’m not talking about fetching my mutual fund holdings, am talking about fetching holdings of something like HDFC small cap fund, etc.

I found a way to scrap NAV from AMFI website. Would be helpful if something exists to fetch MF portfolio/holdings and their percentage allocation to each stock.