How to get SharePoint modern page content using Graph API?

Venkadesh Sundaramurthy 21 Reputation points
2022-08-15T21:08:54.04+00:00

I can get SharePoint modern Page content through SharePoint REST API using below endpoint but I'm looking for GRAPH API endpoint to achieve the same result.
/_api/web/lists/getbytitle('Site%20Pages')/items?$select=CanvasContent1
Could someone assist on this ?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,452 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,521 questions
0 comments No comments
{count} votes

Accepted answer
  1. Srinivasa Rao Darna 6,686 Reputation points Microsoft Vendor
    2022-08-16T14:00:20.697+00:00

    Hi @Venkadesh Sundaramurthy ,

    Graph APIs for SitePage is available in /beta, refer to documentation sitepage-list.

    GET /sites/{site-id}/pages  
    

    APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 30,666 Reputation points Microsoft Vendor
    2022-08-16T02:06:52.733+00:00

    Hi @Venkadesh Sundaramurthy ,
    You can use following url to get items

    GET https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?expand=fields(select=Column1,Column2)  
    

    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.


    0 comments No comments