---
title: "Count a table's records, as the builder"
description: "How many rows match, for the same view, filter and search a list would use."
canonical: "https://grid82.com/docs/builder-api/data/records-count"
updated: "2026-11-13"
---

# Count a table's records, as the builder

`GET https://studio.grid82.app/v1/apps/{appId}/tables/{tableId}/records/count`

How many rows match, for the same view, filter and search a list would use.

Requires the `records:read` scope. Operation `apps.records.count`. MCP tool `apps_records_count`. CLI: `grid82 apps records count` (`npx grid82`).

## Path parameters

| Name      | Type   | Required | Description |
| --------- | ------ | -------- | ----------- |
| `appId`   | string | yes      |             |
| `tableId` | string | yes      |             |

## Query parameters

| Name     | Type   | Required | Description            |
| -------- | ------ | -------- | ---------------------- |
| `viewId` | string | no       | Up to 64 characters.   |
| `search` | string | no       | Up to 200 characters.  |
| `filter` | string | no       | Up to 4000 characters. |
| `sorts`  | string | no       | Up to 1000 characters. |
| `where`  | string | no       | Up to 4000 characters. |

**Authorizations**

- `Authorization` (bearer, in header, required)

## Response

**200**: Success

- `data` (`object`, required)
- `data.count` (`number`, required)

```json
{
  "data": {
    "count": 123.45
  }
}
```

**4XX**: Refused

- `error` (`object`, required)
- `error.code` (`enum<string>`, required, one of: `not_found, forbidden, unauthenticated, validation_failed, conflict, rate_limited, payment_required, not_implemented, internal`)
- `error.message` (`string`, required)
- `error.details` (`Record<string, unknown>`)

```json
{
  "error": {
    "code": "not_found",
    "message": "<string>",
    "details": {}
  }
}
```

**Example request**

```bash
curl --request GET \
  --url 'https://studio.grid82.app/v1/apps/<appId>/tables/<tableId>/records/count' \
  --header 'Authorization: Bearer <token>'
```
