---
title: "Get contract size"
method: GET
path: "/bus/contract/{id}/size"
tags: ["bus"]
---

# Get contract size

`GET /bus/contract/{id}/size`

Returns the size of the contract as reported by the file contract revision, as well as the amount of data that can be removed from the contract through pruning.

## Path parameters

- `id` string, required — A unique identifier for a file contract

## Response `200`

Contract size information

- ContractSize
  - `prunable` integer — The amount of data that can be pruned from a contract
  - `size` integer — The total size of a contract

## Other responses

- `400` — Contract not found
- `500` — Internal server error

---

[API](https://skmtc.net/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.net/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/revisions/184a3d5207da/schema)
