How to get storage size of a study

Hi, is there a way to fetch the storage size of any study stored in Orthanc PACS?

Hello,

You are looking for “/studies/…/statistics” URI. For instance:

$ curl https://demo.orthanc-server.com/studies/e98b9ac7-dd31ac
{
“CountInstances” : 166,
“CountSeries” : 1,
“DicomDiskSize” : “87460012”,
“DicomDiskSizeMB” : 83,
“DicomUncompressedSize” : “87460012”,
“DicomUncompressedSizeMB” : 83,
“DiskSize” : “89640436”,
“DiskSizeMB” : 85,
“UncompressedSize” : “89640436”,
“UncompressedSizeMB” : 85
}

Sébastien-

Sorry, the command line was truncated:

$ curl https://demo.orthanc-server.com/studies/e98b9ac7-dd31ac40-ff046cb2-f0400d30-12f81d85/statistics

Thank you Sebastien.