Hi @Anto Thomas ,
Thank you for posting in this community.
I found that at most I can only get the inner html of the webpart in the section. Regarding section, the official does not provide more attributes for this API for us to use.
As you mentioned, SharePoint REST API. It is also only works for simple pages that have plain text. Nor can get Section name.
And I noticed that some end users have also proposed the same request, 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.