API Reference
Search

Search

GET Allows you to determine what emission factors are available to be used in your estimates.

You can search for free-text queries with the query parameter, or filter by parameters such as category, source, region, year calculation_method, source_lca_activity or id.

If you are using the query parameter, the results will be returned in order of how well they match your free-text query.

This endpoint is paginated, and will return current_page and last_page so you can determine which page you are on. You switch pages by using the page query parameter.

https://api.climatiq.io/data/v1/search

Request

Request parametersShould be sent as an URL-encoded query string
    • data_versionrequired string

      The required Data Version string for this request.

    • querystring

      A free-text query that will match ids, names, descriptions, etc. of emission factors. This uses fuzzy matching, so your query does not need to be precise. Spaces need to be encoded as + or %20

    • activity_idstring

      Filter by the id of a specific activity. Multiple emission factors might share the same activity. You may specify an asterisk (*) at the end of the activity id to act as a wildcard character, matching any ids that begin with the string before the asterisk.

    • idstring

      Filter by the id of a specific emission factor. As IDs are unique, this will only ever return a maximum of 1 emission factor. If using id, the emission factor will only be returned if it was not added later than the provided data version.

    • categorystring

      Filters by emission factor category

    • sectorstring

      Filters by emission factor sector

    • sourcestring

      Filters emission factors by data source

    • source_datasetstring

      Filters emission factors by a given dataset from a source

    • yearinteger

      Filters emission factors by the year in which the emission factor is considered most relevant, according to the source.

    • regionstring

      Filters emission factors by geographic region to which it applies. You may specify an asterisk (*) at the end of the region to act as a wildcard character, matching any regions, such as sub-regions, that begin with the string before the asterisk.

    • unit_typestring

      Filters emission factors by what unit (such as money, energy or volume) the factor accepts.

    • source_lca_activitystring

      The Life Cycle Assessment (LCA) activity with which this factor is associated.

    • calculation_methodstring

      The calculation method that is used to calculate the emission factor. Can be either ar4, ar5 or ar6. Not providing a value means that this defaults to the latest calculation methodology the source supports. Learn more about calculation methods here.

    • allowed_data_quality_flagsarray of strings
      Default value: View defaults

      A list of data quality flags that you are willing to allow for this query. You can provide a comma-separated list of data quality flags you want to allow, or the value none if you only want emission factors without detected data quality issues. See the guide on data quality flags for more information.

    • access_typestring

      Filters by the access type of the emission factors. Allowed values are public, private and premium

    • pageinteger
      Default value: 1

      Which page of results to retrieve.

    • results_per_pageinteger
      Default value: 20

      How many results to return per page. Max is 500.

curl --request GET \
--url 'https://api.climatiq.io/data/v1/search?query=light+duty+trucks&data_version=^6&year=2021&results_per_page=1' \
--header "Authorization: Bearer $CLIMATIQ_API_KEY" \

Response

The response includes a paginated list of emission factors filtered by the request parameters above.

Response parameters
    • resultsarray

      A list of emission factors for this page.


      results[x].idstring

      The unique ID describing this particular emission factor.


      results[x].activity_idstring

      The ID describing the activity that this emission factor applies to. Multiple emission factors can share the same activity_id, e.g. if they are from a different source or apply to a different region.


      results[x].access_typestring

      Whether or not the data is publicly available or private to your project. Can be either private or public. Public emission factors are available to all, while private emission factors are only accessible to you.


      results[x].namestring

      Emission factor name.


      results[x].categorystring

      Emission factor category.


      results[x].sectorstring

      Emission factor sector.


      results[x].sourcestring

      Emission factor publisher.


      results[x].source_linkstring

      Link to emission factor publisher.


      results[x].uncertaintynumber or null

      Emission factor uncertainty factor (%).


      results[x].yearnumber

      The year in which the emission factor is considered most relevant, according to the source.


      results[x].year_releasednumber

      The year in which the emission factor was released by the source.


      results[x].regionstring

      Geographic region to which the emission factor applies (UN/LOCODE).


      results[x].region_namestring

      Geographic region to which the emission factor applies (in English).


      results[x].descriptionstring

      Emission factor description.


      results[x].unitstring

      The unit in which the factor field is expressed.


      results[x].unit_typestring

      The Unit types that this emission factor accepts.


      results[x].source_lca_activitystring

      Which LCA activity the emission factor corresponds to. Read more about life cycle assessments here.


      results[x].supported_calculation_methodsarray of strings

      The methods of CO2e calculation supported for this emission factor.


      results[x].factornumber or null

      CO2e emission factor value, expressed in kgCO2e emitted per unit of activity provided in the unit field. This is available as add-on. Reach out to our team to know more. Otherwise the value is null for the community plan. You can use the estimate endpoint to calculate the emissions generated by specifying this factor.


      results[x].factor_calculation_method"ar4", "ar5", "ar6" or null

      Indicates which conversion values were used (IPCC 4th, 5th or 6th Assessment Report) to generate the returned CO2e emission factor. If factor is null, this is also null.


      results[x].factor_calculation_origin"climatiq", "source" or null

      Indicates whether the CO2e emission factor provided in this response was provided by the source or calculated by Climatiq. If factor is null, this is also null.


      results[x].constituent_gasesconstituent gases

      Indicates which gases the CO2e emission factor is composed of.


      results[x].data_versiondata version information

      Gives relevant data version information about this emission factor, such as if it has a newer version available, or has been deprecated.


      results[x].data_version_informationobject

      This field is deprecated and should not be used. Refer to the data_version field instead.

    • current_pagenumber

      The current page you have retrieved.

    • last_pagenumber

      The last page that there are results for.

    • total_resultsnumber

      How many results there are in total across all pages.

    • possible_filtersobject

      A list of potential filters you can use to further narrow down your query. See below.

{
"current_page": 1,
"last_page": 3,
"total_results": 3,
"results": [
{
"activity_id": "commercial_vehicle-vehicle_type_truck_light-fuel_source_na-engine_size_na-vehicle_age_na-vehicle_weight_na",
"id": "05d034db-dfe7-462e-9a19-a69ecd65a114",
"name": "Light-Duty Truck",
"category": "Vehicles",
"sector": "Transport",
"source": "EPA",
"source_link": "https://www.epa.gov/climateleadership/ghg-emission-factors-hub",
"source_dataset": "GHG Emission Factors Hub",
"uncertainty": null,
"year": 2021,
"year_released": 2021,
"region": "US",
"region_name": "United States of America (the)",
"description": "Emission intensity of light duty truck (includes full-size pickup trucks/full-size vans/extended-length SUVs with wheelbase greater than 121 inches). Retrieved from the EPA's GHG Emission Factors Hub (xlsx).",
"unit_type": "Distance",
"unit": "kg/mile",
"source_lca_activity": "use_phase",
"data_quality_flags": [],
"access_type": "public",
"supported_calculation_methods": [
"ar4",
"ar5",
"ar6"
],
"factor": 0.4671,
"factor_calculation_method": "ar6",
"factor_calculation_origin": "climatiq",
"constituent_gases": {
"co2e_total": null,
"co2e_other": null,
"co2": 0.464,
"ch4": 0.000012,
"n2o": 0.00001
},
"data_version": {
"status": "up_to_date"
},
"data_version_information": {
"status": "up_to_date"
}
}
],
"possible_filters": {
"year": [
2021
],
"source": [
{
"source": "EPA",
"datasets": [
"GHG Emission Factors Hub"
]
},
{
"source": "GHG Protocol",
"datasets": [
"GHG Emissions Calculation Tool"
]
}
],
"region": [
{
"id": "US",
"name": "United States of America (the)"
}
],
"category": [
"Fuel",
"Vehicles"
],
"sector": [
"Energy",
"Transport"
],
"unit_type": [
"Distance",
"Volume"
],
"source_lca_activity": [
"fuel_combustion",
"use_phase"
],
"access_type": [
"public"
],
"data_quality_flags": [
"notable_methodological_variance"
]
}
}

possible_filters

The field possible_filters includes aggregated metadata about the results of your search request, to help you to choose further filters which would narrow down your results.

Most of the fields (year, category, sector, unit_type, source_lca_activity, access_type) contain a list enumerating each of the values present for the given field in the response. The values can be used verbatim in those fields of the search request to narrow down the results. If there is only one value, all results have the same value for this field.

The values of region contain a JSON object, the id field is the ISO 3166-1 alpha-2 code (opens in a new tab) for the country and can be used as the value for further filtering, the name is provided for the convenience of interactive apps to show the full name of the country.

The source contain a JSON object, the source field inside it is the source name, corresponding to the source for an emission factor. The datasets field is what datasets that belong to this particular source, is a valid source_dataset filter for this query.

data_quality_flags is named differently from its search request parameter equivalent allowed_data_quality_flags as it can't be used in the same way as the other filters.

  • Each emission factor can have multiple, or (usually) no data quality flags, so each of your results may have the same 2 flags, then if you select only one of them you would have no more results.
  • When a search doesn't specify an allowed_data_quality_flags list, we allow some flags by default. See here for more information about data quality. Also see the documentation for the search request above for how to use allowed_data_quality_flags while searching.

If you're curious about how to use possible_filters to narrow down your searches, the search refinement how-to has you covered.

Constituent Gases

The constituent gases model explains which constituent gases the source of the data considers to be part of their calculations. These values might be null for one of several reasons:

  • The source does not provide data at the constituent gas level.
  • The source is a premium dataset, and part of the commercial terms dictate we cannot reveal this number.
  • You do not have a commercial agreement with Climatiq to view this data.

The constituent gases also depend on the calculation methodology chosen, displayed as factor_calculation_method in the search results. If you filter on different calculation methodologies, you might see different constituent gas values. Learn more about calculation methods and constituent gases here

Attribute
co2e_total number or null
The total amount of GHG emitted per unit of activity expressed as kgCO2e, as reported by the source. It is null for Climatiq-performed calculations.
co2e_other number or null
The total amount of GHG emitted that are not CO2, CH4 or N20 - expressed in kgCO2e emitted per unit of activity, as reported by the source.
co2 number or null
The amount of carbon dioxide (CO2) emitted per unit of activity expressed as kgCO2, as reported by the source.
ch4 number or null
The amount of methane (CH4) emitted per unit of activity expressed as kgCH4, as reported by the source.
n2o number or null
The amount of nitrous oxide (N2O) emitted per unit of activity expressed as kgN2O, as reported by the source.

Data Version Information

The data_version object explains whether this emission factor has been modified in a later data version. The object contains a status field that contains one of three string values:

  • up_to_date: This is the latest version of this emission factor. If this is the case, the data_version object will not contain any additional information.
  • replaced: There is a more recent emission factor available. Note that if an emission factor has been replaced multiple times this will give information about the next emission factor in the chain, not the most current one. The following fields are also available:
    • replaced_in will provide the data release where this emission factor has been replaced.
    • replaced_by will provide the ID of the newer version of the emission factor that replaced it time throughout data versions, this will give information about the next emission factor in the chain, not the most current one.
  • removed: This emission factor has been removed in a newer data release, without being replaced by something else. The following field is also available:
    • removed_in will list the data release where this emission factor was removed.