Analytics & Reporting

Get raw emissions data

Retrieve raw emissions data with filtering, pagination, and export capabilities.

This endpoint provides access to granular emissions data across all categories and data types. You can:

  • Filter by data type: Use data_type(required) parameter to get specific emission categories
  • Filter by date range: Use date_from and date_to for time-based filtering
  • Filter by facilities: Use facility_ids to get data for specific locations
  • Filter by scope: Use scope parameter (1, 2, 3) for emission scope filtering
  • Filter by subfacility code: Use subfacility_code parameter to filter specific subfacilities
  • Export to CSV: Set format=csv to get a download link for spreadsheet analysis

The response includes detailed emission records with all relevant fields for the selected data type.

get/emissions/raw/

Request

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

Query parameters

date_fromstring date

Start date (ISO 8601)

date_tostring date

End date (ISO 8601)

facility_idsstring

Comma-separated facility (OrgStruct) IDs

categorystring

Emission category (e.g., "Fuel combustion")

data_typestring required

Data type/job type (e.g., trx, waste, emp_com, see /emissions/categories)

subfacility_codestring

Subfacility code filter

pageinteger

Page number (default: 1)

limitinteger

Items per page (default: 100, max: 1000)

updated_sincestring date-time

Only records updated after this timestamp (ISO 8601)

updated_tostring date-time

Only records updated before this timestamp (ISO 8601)

format'json' | 'csv'

Set to 'csv' to receive a download link for CSV export

columnsstring

Comma-separated list of column names to include in the response (e.g., "date,total_emission,business_facility_name,subfacility_code")

Headers

Authorizationstring required
Example:Bearer <your_api_key>

Bearer token (API Key)

Response

Raw emissions data

countinteger
pageinteger
limitinteger

Example response

{
  "data": [
    {
      "_id": "689efca0ff6d9052499764cb",
      "updated_at": "2025-08-15 09:23:44.605000",
      "date": "2024-02-01 00:00:00",
      "scope": 3,
      "total_emission": 39.61534179891021,
      "scope_category": "NA",
      "transaction_id": "38412847182318237.505663970",
      "secondary_transaction_id": "505663970",
      "business_model": "Indent",
      "item_description": "Crew Fashion T-Shirts",
      "supplier": "64a9483931a5c3dd041a0138",
      "total_price": 23.885944614465927,
      "currency": "USD",
      "units": 1,
      "unit_emission": 1.658521044,
      "item_emission_factor_unit": "kg CO2-e/USD",
      "spend_category": "Textiles and textile products",
      "match": "exiobase",
      "product_category": "Clothing - Men",
      "material_composition_breakdown": [],
      "act_measure_unit": "PC",
      "act_measure_value": 293,
      "item_unit_weight": 0.15,
      "manufacturer_name": "Adidas",
      "manufacturer_location_of_origin": "Singapore",
      "item_ef_source": "411",
      "item_ef_name": "Wearing apparel; furs",
      "item_match_granularity": "category",
      "item_location_granularity": "continent",
      "business_facility_name": "Mercutio Office",
      "company": "Alpha Squad Inc",
      "uploader": "system@unravelcarbon.com"
    }
  ],
  "count": 1,
  "page": 1,
  "limit": 100
}

Changes

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