---
title: "Datacount"
method: GET
path: "/api/new_mdm/data_count/"
tags: ["MDM NEW"]
---

# Datacount

`GET /api/new_mdm/data_count/`

**Function**: `DataCount`
**Type**: API Endpoint (GET)

**Purpose**:
Retrieves the total count of data from the specified table in the customer database.

**URL**:
`GET /api/new_mdm/data_count/`

**Request Headers**:
- `Customer-Key` (str, required): A base64-encoded string identifying the customer and database.
- `Table-Name` (str, required): The name of the table to retrieve data from.

**Response**:
Returns a JSON object containing the total count of data.

**Exceptions**:
- Raises a 400 HTTPException for invalid customer key.
- Raises a 500 HTTPException for server-side errors.

## Headers

- `Customer-Key` string, required
- `Table-Name` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) · [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/leapsurgebi/leapsurgeapi/revisions/5a6b1464bfeb/schema)
