Is there a way to retrieve the amount of storage used and the quota limit for the Site Collection using the JSOM client or the REST web services?

  • I'm searching for the same thing but in SharePoint 2010 – Mariusz Ignatowicz Aug 9 '16 at 15:07

The REST query


will return the following:

    "d": {
        "Usage": {
            "__metadata": {
                "type": "SP.UsageInfo"
            "Bandwidth": "0",
            "DiscussionStorage": "0",
            "Hits": "0",
            "Storage": "354721461",
            "StoragePercentageUsed": 0.0330360104329884,
            "Visits": "0"

Storage will give us "Storage Used"(in Bytes) not the "Total Storage" you can calculate the amount of storage used based on Storage and StoragePercentageUsed

  • This only gets the site collection size. On all subsites it returns the same number... any idea how we can get the size of each subsite? – JJD May 2 '17 at 14:04
  • how can i get the "Maximum storage allowed " – Imen Turki Sep 25 at 14:30
  • I get permission denied. I am trying to get data for a site i belong to – aWebDeveloper Sep 26 at 9:31

How to access information about site collection usage via CSOM

SP.UsageInfo object provides fields that are used to access information about site collection usage.

var context = new SP.ClientContext.get_current();
var site = context.get_site();
    function() {

        var siteUsageInfo = site.get_usage();                   

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.