---
title: "Get Costs Per Account"
method: GET
path: "/gcp/gce/costs"
tags: ["Insights Service"]
---

# Get Costs Per Account

`GET /gcp/gce/costs`

Retrieve costs up to one year back per specified account over a specified time period.

## Query parameters

- `accountId` string
- `fromDate` string
- `toDate` string

## Response `200`

Costs Per Account Response

- object
  - `request` object
    - `id` string
    - `url` string
    - `method` string
    - `timestamp` string
  - `response` object
    - `kind` string
    - `items` object[]
      - `preemptible` object
        - `runningHours` number — The sum of preemptible running hours.
        - `actualCosts` number — The actual cost of the preemptible instances.
        - `potentialCosts` number — The OD cost of the running preemptible instances.
        - `savingsPercentage` number — The total savings percentage.
    - `count` integer

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/versions/2e5445f30576/schema)
