---
title: "List total number of services for each environment of the project"
method: GET
path: "/project/{projectId}/environment/stats"
tags: ["Environments"]
---

# List total number of services for each environment of the project

`GET /project/{projectId}/environment/stats`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/project/{projectId}/environment/stats`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/project/:projectId/environment/stats/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of environment ids, and for each its total numberof services

## Path parameters

- `projectId` string, uuid, required

## Response `200`

Get number of services

- EnvironmentStatsResponseList
  - `results` EnvironmentStats[]
    - `id` string, uuid, required
    - `service_total_number` number

## Other responses

- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
