---
title: "Count local resources"
method: POST
path: "/tools/count-resources"
tags: ["System"]
---

# Count local resources

`POST /tools/count-resources`

This URI can be used to count the resources that are matching criteria on the content of the local Orthanc server, in a way that is similar to tools/find

## Request body

- object
  - `Full` boolean — If set to `true`, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
  - `Labels` string[] — List of strings specifying which labels to look for in the resources (new in Orthanc 1.12.0)
  - `LabelsConstraint` string — Constraint on the labels, can be `All`, `Any`, or `None` (defaults to `All`, new in Orthanc 1.12.0). From 1.12.11: using `None` together with an empty list of labels looks for the resources that do not have any labels attached.
  - `Level` string — Level of the query (`Patient`, `Study`, `Series` or `Instance`)
  - `MetadataQuery` object — Associative array containing the filter on the values of the metadata (new in Orthanc 1.12.5)
  - `ParentPatient` string — Limit the reported resources to descendants of this patient (new in Orthanc 1.12.5)
  - `ParentSeries` string — Limit the reported resources to descendants of this series (new in Orthanc 1.12.5)
  - `ParentStudy` string — Limit the reported resources to descendants of this study (new in Orthanc 1.12.5)
  - `Query` object — Associative array containing the filter on the values of the DICOM tags
  - `Short` boolean — If set to `true`, report the DICOM tags in hexadecimal format

## Response `200`

- unknown

---

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