Searching for content with the REST API and CQL always limits results to 50
Platform Notice: Server and Data Center Only. This article only applies to Atlassian products on the server and data center platforms.
Searching for content using the REST API and Confluence Query Language (CQL) always returns a maximum of 50 results, despite increasing the limit parameter. For example:
When using the rest/api/content/search endpoint with CQL, there are limits hardcoded in the backend that govern how many results will be returned based on expansions that are requested. When the "body" expansion is specified, the limit is set to 50. If no expansions are specified, results are limited to 1000. And if other expansions besides "body" are specified, the limit is set to 200.
Do not specify "body" expansion when using the endpoint. Using the example above, the request would look like this:
That will return a maximum of 200 results.