Forum Discussion
roshan08
Sep 13, 2023Copper Contributor
API to pull all news post from sharepoint online site
Hi Team, Can we have API to pull all news post or all .aspx pages from sharepoint site.
ganeshsanap
Sep 14, 2023MVP
- Where are you trying to pull the news posts, SPFx or Power Automate/Apps or anywhere else?
- What information related to news posts do you need, page name/other column values, etc.?
You can use generic SharePoint REST API like below to get the page items from Site pages library:
<siteUrl>/_api/Web/Lists/getByTitle('Site Pages')/items?$select=*
Reference: How to fetch only Site Pages and not page templates from Site Pages library using REST call?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.