Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we get pageid based on page title

Sundar sarma
Contributor
February 23, 2023

Is it possible to get page id based on page title.

im my java application i am calling confluence rest api to get the pages.

So i want to get pageid if i pass that respective page title

 

 

 

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Champion
February 24, 2023

Hi @Sundar sarma ,

the following rest api https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-get allows you to pass parameter title and will receive all the related page information including page id.

Hope this helps,

Fabio

Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2025

The REST API has been changed to a new version, and the old version (referenced in the parent comment) has been removed. This is the new API call:

https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-get

So the REST call would be:

https://<your-site>.atlassian.net/wiki/api/v2/pages?title=<page title>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events