---
title: "Detailed Cost"
method: GET
path: "/aws/ec2/group/{groupId}/costs/detailed"
tags: ["Elastigroup AWS"]
---

# Detailed Cost

`GET /aws/ec2/group/{groupId}/costs/detailed`

## Request

- Base URL: `https://api.spotinst.io`
- URL: `https://api.spotinst.io/aws/ec2/group/{groupId}/costs/detailed`
- Auth: HTTP bearer

Get detailed financial information on a specific Elastigroup, for all lifecycles.

## Query parameters

- `fromDate` string, required
- `toDate` string, required
- `aggregationPeriod` string
- `accountId` string

## Parameters

- `#/paths/~1aws~1ec2~1group~1%7BgroupId%7D/put/parameters/0` (unresolved $ref)

## Response `200`

Detailed Cost Response

- object
  - `request` object: Original request properties
    - `id` string: Unique ID associated with this request
    - `url` string: The URL that was used for the request
    - `method` string: The HTTP **METHOD** used for the request
    - `timestamp` string: When the request was received by Spot
  - `response` object: Response package that includes, status, type and any relevant data.
    - `status` object
      - `code` integer: HTTP status code assigned to this response
      - `message` string: HTTP status message for the respective status code
    - `kind` string: The data type of each item in the response
    - `items` union[]: Array of data objects
      - union
        - object
          - `groupId` string
          - `instanceId` string
          - `spotInstanceRequestId` string
          - `instanceType` string
          - `availabilityZone` string
          - `running` object
            - `value` integer
            - `unit` string
          - `savings` object
            - `value` integer
            - `unit` string
          - `costs` object
            - `actual` number, float
            - `potential` number, float
        - object
          - `groupId` string
          - `instanceId` string
          - `spotInstanceRequestId` string
          - `instanceType` string
          - `availabilityZone` string
          - `running` object
            - `value` integer
            - `unit` string
          - `savings` object
            - `value` number, float
            - `unit` string
          - `costs` object
            - `actual` number, float
            - `potential` number, float
    - `count` integer: Size of the data object array

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/spot/apis/spot-by-flexera-api.md) - [All operations](https://skmtc.dev/spot/apis/spot-by-flexera-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spot/apis/spot-by-flexera-api/revisions/f7e206fa6474?raw)
