Hi @Tekin, Ender,
Per my test, I am unable to get the HTML headers of the pages have their headers collapsed by default. It turns out to be a by-design one. Graph api doesn't support to fetch the resource when they are collapsed.
It is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.