---
title: "Get costs for an Environment"
method: GET
path: "/costs/environments/{environmentId}"
tags: ["Cost"]
---

# Get costs for an Environment

`GET /costs/environments/{environmentId}`

## Path parameters

- `environmentId` string, required

## Query parameters

- `timespan` 'DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'YEAR'
- `granularity` 'DAILY' | 'HOURLY'

## Response `200`

- object[]
  - `date` string
  - `total` object, required
    - `AWS` number
    - `GCP` number
    - `AZURE` number
  - `id` string
  - `isStale` boolean

---

[API](https://skmtc.dev/envzero/apis/env0-api.md) · [All operations](https://skmtc.dev/envzero/apis/env0-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/envzero/env0-api/revisions/513441cbe9dc/schema)
