Analytics & Reporting

Get aggregated emissions data

Retrieve aggregated and summarized emissions data with advanced filtering, grouping, and analytics capabilities.

This endpoint provides powerful data aggregation features:

  • Flexible column selection: Choose from available fields including derived fields like month, year, quarter
  • Advanced filtering: Filter by emission scope (1, 2, 3), data type, facilities, files, dates, and more
  • Multiple export formats: Get results in JSON or CSV format
  • Async processing: Large CSV exports are processed asynchronously with status tracking
  • Sorting and pagination: Sort results and paginate through large datasets

Perfect for creating dashboards, reports, and analytics applications.

post/export/emission/aggregated

Request

  • Base URL
    https://api.unravelcarbon.com/api/v1
  • Auth
    HTTP bearer

Headers

Authorizationstring required
Example:Bearer <your_api_key>

Bearer token (API Key)

Request body

columnsstring[] required

Columns to include in response

format'json' | 'csv'

Export format

per_pageinteger

Number of records per page

pageinteger

Page number for pagination

sort_by'total_emission' | 'scope_category' | 'data_type' | 'date' | 'file_name' | 'uploader' | 'month' | 'year' | 'quarter' | 'business_facility_name' | 'city' | 'country' | 'company'

Field to sort by

sort_order'asc' | 'desc'

Sort order

scopeinteger[]

Filter by emission scope (1, 2, 3)

data_typestring[]

Filter by data type

scope_categorystring[]

Filter by scope category

business_facility_namestring[]

Filter by business facility name

subfacility_codestring[]

Filter by subfacility code

file_namestring[]

Filter by file name

uploaderstring[]

Filter by uploaded from email

date_fromstring date

Filter by start date

date_tostring date

Filter by end date

Response

Aggregated emissions data

countinteger

Total number of records

pageinteger

Current page number

per_pageinteger

Number of records per page

formatstring

Response format

Example response

{
  "data": [
    {
      "date": "2025-01-13",
      "year": 2025,
      "month": "2025-01",
      "quarter": 1,
      "file_name": "uc_20250603062403.csv",
      "business_facility_name": "UC_CORP",
      "company": "Demo Corporation",
      "uploader": "system@unravelcarbon.com",
      "total_emission": 0.7749856676879998,
      "data_type": "scope2_electricity",
      "scope_category": "Fuel and energy related",
      "city": "None",
      "country": "Singapore",
      "subfacility_code": "BF0"
    }
  ],
  "count": 27,
  "page": 1,
  "per_page": 1,
  "format": "json"
}

Changes

No recorded changes to this operation across all 4 revisions of this API.