Forum Discussion

Tarundeep's avatar
Tarundeep
Copper Contributor
Feb 25, 2019
Solved

How to get all pages under "sitePages" using SharePoint REST API in modern sites ?

I have created number of pages under "/SitePages" and want to retrieve them using SharePoint REST API.

The below one's doesn't work

_api/web/lists/getbytitle('SitePages')/Items

_api/web/lists/getbytitle('Pages')/Items

 

  • Got It -- Resolved --

    /_api/Web/Lists(guid'SomeGUID')

    /_api/Web/Lists(guid'SomeGUID')/Items(19)?$select=ID,Title

Resources