• Official comment



    there is a new feature on the /search endpoints which is not yet reflected in the documentation, but was implemented to address this issue.

    when you run a search request, the response header (and NOT the body of the response!) includes a custom field called 'X-Pw-Total '. the value of this field is the total number of entities in the search results. if you divide this number by your page size then you get the total number of pages you have to iterate thru.

    i hope this helps

  • Would be good to be able to get total number of pages, so we can get the actual pages asynchronously, which would make it much faster for us.

Please sign in to leave a comment.

Add Comment

Didn’t find what you were looking for?

Ask our community of experts on the Copper forum.

Submit a Post