1 Reply Latest reply on Mar 23, 2016 5:28 AM by jlevi

    Is there a way to fetch the number of documents in a space using the REST API?

    Jeff Shurtliff

      Hi everyone,

       

      I apologize if I just missed this in the documentation, but is there a way to fetch the number of documents (or even content items in general) within a space using the REST API?


      For example, I am trying to create a script that returns metrics (e.g. # of likes, # of bookmarks, etc.) for content in specific spaces.  However, because paginated lists are returned, I would like to find a way to get the total number of documents in a space so that I don't have to guess when setting up a loop to roll through the paginated items.  I was hoping to find a field such as contentCount or something similar under the Spaces entity but I'm not finding anything that appears to be relevant.

       

      Does anyone know if this is possible?