Access version history of a Sharepoint page using graph API

Virender Kumar 0 Reputation points
2025-04-24T23:20:27.6866667+00:00

I've been using Graph API to access specific Sharepoint sites within my organization for a while. Recently, I've come across a requirement where I have to extract the content of the latest published version of a page. The existing API spec i.e. /sites/{site_id}/pages/{page_id} gives me the details of the latest version of a page. I've observed pages which have gone from a published state to a draft/checked out state as someone checked them out for editing. For these particular cases, I'm not able to go back in the version history and retrieve the last published state of the page.
I went through the documentation but can't find anything that can help me do this.

Any help would be greatly appreciated!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,590 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.