---
title: "Retrieve counts of tests that use any of the provided data tables"
method: POST
path: "/dataTables/usedBy/count/batch"
tags: ["DataTable"]
---

# Retrieve counts of tests that use any of the provided data tables

`POST /dataTables/usedBy/count/batch`

Used to retrieve the count of tests that use each of the provided data tables in a single request

## Request body

- DataTableUsedByCountBatchRequest — Request body for batch DataTable used-by count query
  - `data_table_ids` string[], required — Array of DataTable IDs to find used-by counts for

## Response `200`

Map of data table IDs to their usage counts

- DataTableUsedByCountBatchResult — Result containing counts of tests using each data table
  - `counts` object — Map of data table IDs to the count of tests using each data table

## Other responses

- `400` — Invalid request - too many data table IDs or invalid IDs
- `default` — Unknown error

---

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