# PageId always numeric?

**URL:** <https://community.developer.atlassian.com/t/pageid-always-numeric/51182>\
**Category:** Confluence Cloud\
**Tags:** pagination, rest-api\
**Created:** [August 20, 2021, 3:43pm UTC](https://community.developer.atlassian.com/t/pageid-always-numeric/51182 "2021-08-20T15:43:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rnunez](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rnunez](https://community.developer.atlassian.com/u/rnunez)\
**Post date:** [August 20, 2021, 3:43pm UTC](https://community.developer.atlassian.com/t/pageid-always-numeric/51182/1 "2021-08-20T15:43:46Z")

</div>

This may seem to be a dumb question, but I need to know if PageIds for Confluence pages are always numeric? I have only seen so far PageIds as numeric but wanted to make sure and its important to me to know since I will be storing PageIds in a database and need to decide the data type for the column. Thanks.

---

<div class="post-metadata">

**Author:** ![dmorrow](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/dmorrow/32/35895_2.png) [@dmorrow](https://community.developer.atlassian.com/u/dmorrow)\
**Post date:** [August 23, 2021, 3:29am UTC](https://community.developer.atlassian.com/t/pageid-always-numeric/51182/2 "2021-08-23T03:29:43Z")

</div>

Hi @rnunez ,

I’ve only observed positive integer IDs, however, to be safe I’ve created [CONFCLOUD-72640](https://jira.atlassian.com/browse/CONFCLOUD-72640) so the Confluence team documents the format.

Regards,  
Dugald

---

<div class="post-metadata">

**Author:** ![rnunez](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rnunez](https://community.developer.atlassian.com/u/rnunez)\
**Post date:** [August 23, 2021, 12:29pm UTC](https://community.developer.atlassian.com/t/pageid-always-numeric/51182/3 "2021-08-23T12:29:08Z")

</div>

Thank you Dugald!

---

<div class="post-metadata">

**Author:** ![anon96974232](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anon96974232](https://community.developer.atlassian.com/u/anon96974232)\
**Post date:** [August 23, 2021, 11:48pm UTC](https://community.developer.atlassian.com/t/pageid-always-numeric/51182/4 "2021-08-23T23:48:25Z")

</div>

Hello @dmorrow

All the existing documentation I’ve seen for the Confluence REST API says that queries that pass or return the pageid as a parameter should supply the value as a _string_, not an _integer_.

However, documentation for PageManager says that the parameter is the type _long_, so I’m guessing there is an intermediate conversion between the REST API and PageManager to transform the string into a long integer for storage.
