Is there any rest API available to get the recent updates or news related to a site in SharePoint Online?
How To Read The SharePoint News Using Rest API In SPFx
I have found above post but it does not work for me as hitting the API's only gives error or irrelevant XML data.
So, I wanted to know if there is any way to get the news of SharePoint site using rest API ?
Updated:
API
_api/search/query?querytext='IsDocument:True AND FileExtension:aspx AND PromotedState:2
Error: