SP.UsageInfo.storage property (sp.js)
Gets a value that specifies the total amount of disk space, in bytes, currently being used by the site collection.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.UsageInfo.get_storage ()
Return value
Type: Number