---
title: "Count entity records"
method: GET
path: "/api/apps/{app_id}/entities/{entity_name}/count"
---

# Count entity records

`GET /api/apps/{app_id}/entities/{entity_name}/count`

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns how many production records an entity holds.

The count covers the records the calling credential can read, so an entity whose row-level security rules narrow reads returns a smaller number than the entity actually holds. An entity with no `rls` rules returns its full count.

Don't pass `User` as the `entity_name`. To count the app's users, use [Count app users](/api-reference/count-app-users) instead.

## Path parameters

- `entity_name` string, required — Name of the entity, exactly as [List entity schemas](/api-reference/list-entity-schemas) reports it.
- `app_id` string, required — ID of the app whose entity records you want to count.

## Response `200`

Successful Response

- EntityCountResponse — The number of records stored in one of an app's entities.
  - `count` integer, required — Number of records you can read in this entity.

## Other responses

- `401` — Missing or invalid credentials.
- `403` — You don't have editor access to this app.
- `404` — App not found, or the app has no entity with this name.
- `429` — Rate limit exceeded. This endpoint allows 100 requests per minute per app, shared with the app's other entity listing calls.

---

[API](https://skmtc.dev/adexad/apis/base44-app-management-api.md) · [All operations](https://skmtc.dev/adexad/apis/base44-app-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/adexad/base44-app-management-api/revisions/7f5ce8287501/schema)
