I'm attempting to search for pages in a personal space with date filtering using the Confluence REST API on Cloud, but I'm getting empty results with all approaches I've tried.
Note: spaceKey refers to the personal space key.
What works on Data Center:
GET /rest/api/content/search?cql=type=page AND space="~spaceKey" AND lastModified > "2026-02-01"This works perfectly on Data Center.
What I've tried on Cloud (all fail with empty results):
cqlcontext:/wiki/rest/api/content/search?cql=type="page" AND lastModified > "2026-02-01"&cqlcontext={"spaceKey":"~spaceKey"}/search endpoint:/wiki/rest/api/search?cql=type=page AND space="~spaceKey" AND lastModified > "2026-01-02"space in CQL:/wiki/rest/api/content/search?cql=space="~spaceKey" AND type="page" AND lastModified > "2026-02-01"Could someone help me understand what I might be missing to make personal space search work on Cloud? Any guidance on the correct approach would be greatly appreciated.
Thanks in advance!
Welcome to the community.
I am able to search against personal spaces using a more simple query -
https://xxxx.atlassian.net/wiki/rest/api/content/search?cql=title=test&spaces=~xxxxx
This works for me.
I have tried this too. but unfortunately the response is still empty.
the response:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your API call is incorrect.
You should use it like:
https://xxxx.atlassian.net/wiki/rest/api/content/search?cql= title=%xxxx%20xxxx%22&spaces=spaces=~xxxxxxxxxxx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the API call you suggested. This time the response was not empty, however it returned pages that are not in my personal space (so the space scoping doesn’t seem to be applied correctly).
From my side, it looks like a Confluence Cloud-specific issue. The same approach works on Data Center, so I would expect the Cloud API to behave the same way—at minimum it shouldn’t return results from other spaces when restricting to a personal space.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry I see an issue in the example I provided.
https://xxxx.atlassian.net/wiki/rest/api/content/search?cql= title=%xxxx%20xxxx%22&spaces=~xxxxxxxxxxx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried https://xxxx.atlassian.net/wiki/rest/api/content/search?cql= title=%xxxx%20xxxx%22&spaces=~xxxxxxxxxxx too but unfortunately still same, empty result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you use it as your example, there is a space between cql= and title.
I use a similar cql as this of my personal space on a cloud Confluence free instance and this works.
My usage (anonymised my details):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have noticed the space between cql= and title. I did try your last api call, however the result is still empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can't see what you are doing exactly, but it's working on my end and this is done on a free instance, so on a paid it should work.
What do you expect as results?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.