Skip to main content

Get an emission estimate calculated using a specific emission factor

Path Parameters
idstringrequired

The estimate's unique identifier

Returns
massobjectrequired

metadataobject

An arbitrary dictionary (key-value pairs) to store application-specific information.

Lune doesn't use this information for order processing. Its purpose is for the API clients to be able to attach arbitrary information (to an order for example) and then retrieve it.


idempotency_keystring

Account-unique identifier provided by the client.

idempotency_key has two purposes:

  1. Clients can safely retry estimate requests without accidentally performing the same operation multiple times.
  2. Clients can use idempotency_key to reconcile estimates with entities on their system.

idstringrequired

The emission calculation unique identifier


quoterequired

requestobjectrequired

emission_factorobjectrequired
  • GET /estimates/emission-factor/{id}
  • curl 'https://api.lune.co/v1/estimates/emission-factor/Vxg3b7MoBkrNQA328Rgpnvmw1J8a6Lqj' \
      -H 'Authorization: Bearer <API_KEY>'
  • Response
  • {
      "mass": {
        "amount": "1.040105",
        "unit": "t"
      },
      "emission_factor": {
        "id": "rKqngNM0G65a9p474WYDQ4xdXWBe82JV",
        "name": "Basic iron and steel and of ferro-alloys and first products thereof",
        "region": "United States of America",
        "source": "exiobase",
        "created_at": "2023-05-05T17:42:20.751Z",
        "gas_emissions": {
          "co2e": "0.738411878489"
        },
        "numerator_unit": "kg",
        "source_version": "3.8.2",
        "denominator_unit": "EUR",
        "publication_year": "2021"
      },
      "request": {
        "activity": {
          "unit": "USD",
          "value": "1525.45"
        },
        "emission_factor_id": "rKqngNM0G65a9p474WYDQ4xdXWBe82JV",
        "metadata": {}
      },
      "metadata": {},
      "id": "ljmkOq7vXd238gAE9WALWQ8ZGVD5ExNz",
      "quote": {
        "bundles": [
          {
            "bundle_id": "q9aKx7b6nNXMk3Yv3pD1mlW5Od2eLZE8",
            "quantity": "0.988099",
            "unit_price": "6.5",
            "bundle_name": "Conserving forests in Asia",
            "offset_cost": "6.43",
            "gross_unit_price": "7.22",
            "insufficient_available_quantity": null
          },
          {
            "bundle_id": "xWaKJL3okjD46VpJ4yGXnQNZRe1vzP0w",
            "quantity": "0.052005",
            "unit_price": "250",
            "bundle_name": "Ocean Carbon Removal",
            "offset_cost": "13.01",
            "gross_unit_price": "277.78",
            "insufficient_available_quantity": null
          }
        ],
        "currency": "USD",
        "requested_value": null,
        "estimated_quantity": "1.040104",
        "requested_quantity": "1.040105",
        "estimated_commission": "2.17",
        "estimated_total_cost": "21.59",
        "estimated_offset_cost": "19.42"
      }
    }