Confluence search API `/rest/api/content/search` returns 0 pages

I’m using confluence search API /rest/api/content/search to retrieve pages of a confluence workspace but I am receive 0 pages. If I use the cql query in the UI, I get the results.
Here is the API I am using:
https://{site}/wiki/rest/api/content/search?limit=100&start=0&cql=(space.key={workspaceID} AND type=page)&expand=ancestors,


Despite the example shown in the REST API docs, the CQL must be URL encoded. Otherwise, the parameter parser can’t understand what is a parameter vs what is CQL because both use the = symbol.

Try (be sure to remove my extra white space provided only for readability):