---
title: "Search and aggregate Calculator Result"
method: POST
path: "/app/v1/calculator_results"
tags: ["calculator_results"]
---

# Search and aggregate Calculator Result

`POST /app/v1/calculator_results`

## Request body

- object
  - `page` number — Which page to return
  - `page_size` number — How many items to list in a page
  - `sort_by` string — any field from group_by param
  - `sort_direction` 'asc' | 'desc' — Sort direction
  - `filter` CalculatorResultFilterFields
    - `equipment.custom_attributes` object
    - `equipment.id` string
    - `equipment.name` string
    - `equipment.status` 'active' | 'inactive' | 'deprecated'
    - `equipment.type.id` string
    - `equipment.type.name` string
    - `equipment.facility.custom_attributes` object
    - `equipment.facility.id` string
    - `equipment.facility.name` string
    - `equipment.facility.status` string
    - `estimation_method.id` string
    - `estimation_method.name` string
    - `estimation_method.entity_id` string
    - `estimation_method.analytics_library_id` string
    - `estimation_method.analytics_calculator_id` string
    - `estimation_method.created_at` string
    - `estimation_method.created_by` string
    - `estimation_method.updated_at` string
    - `estimation_method.updated_by` string
    - `flow.id` string
    - `flow.name` string
    - `flow.status` 'active' | 'inactive'
    - `flow.type` string — Use `id` value of any index in `GET /v1/flow_types`
    - `flow.product_type` string — Use `id` value of any index in `GET /v1/product_types`
    - `flow.product_category` string — Use `id` value of any index in `GET /v1/product_categories`
    - `flow.custom_attributes` CustomAttributes
    - `flow.associated_facility_id` string, uuid
    - `flow.associated_equipment_id` string, uuid
    - `flow.equipment.custom_attributes` object
    - `flow.equipment.id` string
    - `flow.equipment.name` string
    - `flow.equipment.status` 'active' | 'inactive' | 'deprecated'
    - `flow.equipment.type.id` string
    - `flow.facility.custom_attributes` object
    - `flow.facility.id` string
    - `flow.facility.name` string
    - `flow.facility.status` string
    - `entity_type` string
    - `entity_id` string, uuid
    - `reporting_group` string
    - `measurement_type` string
    - `year_month` string
  - `group_by` string[]

## Response `200`

successful operation

- PagedAggregatedCalculatorResults
  - `page_number` number
  - `page_size` number
  - `total_entries` number
  - `total_pages` number
  - `data` AggregatedCalculatorResult[]
    - `id` string, uuid
    - `calculator_run_id` string, uuid
    - `result_category` string
    - `measurement_unit` string
    - `measurement_value` number
    - `estimation_method_id` string, uuid
    - `year_month` string
    - `equipment` EquipmentBasic
      - `custom_attributes` CustomAttributes
      - `effective_date` string
      - `id` string, uuid
      - `latitude` number, nullable — latitude on the Earth
      - `longitude` number, nullable — longitude on the Earth
      - `name` string
      - `type` EquipmentTypeShallow
        - `id` string
        - `name` string

---

[API](https://skmtc.net/validere/apis/carbonhub-api.md) · [All operations](https://skmtc.net/validere/apis/carbonhub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/validere/carbonhub-api/revisions/053edab62415/schema)
