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 ?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,499 questions
Microsoft Graph Site Lists API
Microsoft Graph Site Lists API
A Microsoft API that "supports access to SharePoint sites, lists, and drives; read-only support for site resources; read-write support for lists, listItems, and driveItems; and address resources by SharePoint ID, URL, or relative path.
295 questions
No comments
{count} votes

Accepted answer
  1. Srinivasa Rao Darna - MSFT 6,346 Reputation points
    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 16,981 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.