How much storage a project uses, and its limits.

Read usage

GET/v1/projects/{project}/usage

Needs Storage buckets: View.

{
  "bytesStored": 48213,
  "bytesReserved": 0,
  "objectCount": 1,
  "buckets": 1,
  "plan": {
    "code": "free",
    "name": "Free"
  },
  "limits": {
    "bytes": 1000000000,
    "buckets": 10,
    "fileBytes": 100000000,
    "resizesPerMonth": 200
  }
}
bytesStoredinteger

The size of every file in the project, in bytes.

bytesReservedinteger

Room held for uploads in progress. It is released when they finish, fail, or are cancelled.

objectCountinteger

How many files the project holds.

bucketsinteger

How many buckets the project holds.

plan.codestring

The project's Storage plan: free, pro or scale.

plan.namestring

The plan's name, for showing to people.

limits.bytesinteger

The most the project can store, counting uploads in progress. In every limit, 0 means no limit.

limits.bucketsinteger

The most buckets the project can hold.

limits.fileBytesinteger

The largest file you can upload.

limits.resizesPerMonthinteger

How many new resized images the project can make each month.

Last updated