Alasco Annual Consumption API

**Annual Consumption** is the system-computed consumption per meter and calendar year, including emission factors and tenant allocations. The figures are derived from readings rather than written directly; you can read them and update the market-based emission factor.

Business capability
Climate & Carbon Management BC-740.20

Operations 2

GET /consumption/annual/ Get Annual Consumption #
PATCH /consumption/annual/{annual_consumption_id}/ Update Annual Consumption #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/alasco-annual-consumption-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

alasco-annual-consumption-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: '## Introduction


    You can use the Alasco API to integrate your application with Alasco.'
  title: ESG Annual Consumption API
  version: '1.0'
  x-logo:
    url: https://assets-global.website-files.com/656ef2eb27ad41897248f866/659eebec190ae7aaf4162f09_Logotype_Alasco_white_RGB%202.png
servers:
- url: https://api.alasco.de/esg/v1
tags:
- description: '**Annual Consumption** is the system-computed consumption per meter and calendar year, including emission factors and tenant allocations. The figures are derived from readings rather than written directly; you can read them and update the market-based emission factor.'
  name: Annual Consumption
paths:
  /consumption/annual/:
    get:
      operationId: get_annual_consumption_consumption_annual__get
      parameters:
      - description: External ID of the building.
        in: query
        name: external_building_id
        required: true
        schema:
          description: External ID of the building.
          title: External Building Id
          type: string
      - description: The calendar year to retrieve consumption for.
        in: query
        name: year
        required: true
        schema:
          description: The calendar year to retrieve consumption for.
          title: Year
          type: integer
      - description: Optional. Filter results to the consumption entry for a specific meter, identified by its external ID. Filtering by null is not supported- omit this parameter to get all entries.
        in: query
        name: external_meter_id
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional. Filter results to the consumption entry for a specific meter, identified by its external ID. Filtering by null is not supported- omit this parameter to get all entries.
          title: External Meter Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnnualConsumptionListResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - API Key: []
      - API Token: []
      summary: Get Annual Consumption
      tags:
      - Annual Consumption
  /consumption/annual/{annual_consumption_id}/:
    patch:
      operationId: update_annual_consumption_consumption_annual__annual_consumption_id___patch
      parameters:
      - in: path
        name: annual_consumption_id
        required: true
        schema:
          format: uuid
          title: Annual Consumption Id
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnnualConsumptionPatchPayload'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnnualConsumptionResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - API Key: []
      - API Token: []
      summary: Update Annual Consumption
      tags:
      - Annual Consumption
components:
  schemas:
    AnnualConsumptionMarketBasedEmissionUpdate:
      properties:
        is_renewable:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Renewable
        market_based_emission_factor:
          anyOf:
          - type: number
          - pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            type: string
          - type: 'null'
          title: Market Based Emission Factor
      title: AnnualConsumptionMarketBasedEmissionUpdate
      type: object
    AnnualConsumptionResponse:
      properties:
        data:
          $ref: '#/components/schemas/AnnualConsumptionData'
        errors:
          anyOf:
          - items:
              $ref: '#/components/schemas/Error'
            type: array
          - type: 'null'
          title: Errors
        included:
          anyOf:
          - items:
              $ref: '#/components/schemas/BaseDataSchema'
            type: array
          - type: 'null'
          title: Included
        links:
          anyOf:
          - $ref: '#/components/schemas/Links'
          - type: 'null'
      required:
      - data
      title: AnnualConsumptionResponse
      type: object
    Links:
      properties:
        next:
          anyOf:
          - type: string
          - type: 'null'
          title: Next
        prev:
          anyOf:
          - type: string
          - type: 'null'
          title: Prev
      required:
      - next
      - prev
      title: Links
      type: object
    AnnualConsumptionAttributes:
      properties:
        category:
          $ref: '#/components/schemas/Utility'
          description: '**Category** · **Kategorie**'
        completeness:
          anyOf:
          - pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            type: string
          - type: 'null'
          description: '**Completeness** · **Vollständigkeit**'
          title: Completeness
        consumption:
          anyOf:
          - pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            type: string
          - type: 'null'
          description: '**Consumption** · **Verbrauch**'
          title: Consumption
        cooling_system:
          anyOf:
          - $ref: '#/components/schemas/CoolingSystem'
          - type: 'null'
          description: '**Cooling system** · **Kühlsystem**'
        emission_factor:
          anyOf:
          - $ref: '#/components/schemas/EmissionFactorAttributes'
          - type: 'null'
          description: '**Emission factor** · **Emissionsfaktor**'
        external_meter_id:
          description: '**External meter ID** · **Externe Zähler-ID**'
          title: External Meter Id
          type: string
        heating_system:
          anyOf:
          - $ref: '#/components/schemas/HeatingSystem'
          - type: 'null'
          description: '**Heating system** · **Heizsystem**'
        name:
          anyOf:
          - type: string
          - type: 'null'
          description: '**Name** · **Name**'
          title: Name
        procured_by:
          anyOf:
          - $ref: '#/components/schemas/ProcuredBy'
          - type: 'null'
          description: '**Procured by** · **Beschafft durch**'
        source:
          anyOf:
          - $ref: '#/components/schemas/ConsumptionSource'
          - type: 'null'
          description: '**Source** · **Quelle**'
        tenants:
          description: '**Tenants** · **Mieter**'
          items:
            $ref: '#/components/schemas/TenantSummaryAttributes'
          title: Tenants
          type: array
        units:
          $ref: '#/components/schemas/Units'
          description: '**Units** · **Einheiten**'
        year:
          description: '**Year** · **Jahr**'
          title: Year
          type: integer
      required:
      - name
      - year
      - category
      - source
      - procured_by
      - consumption
      - units
      - completeness
      - heating_system
      - cooling_system
      - emission_factor
      - external_meter_id
      - tenants
      title: AnnualConsumptionAttributes
      type: object
    AnnualConsumptionListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/AnnualConsumptionData'
          title: Data
          type: array
        errors:
          anyOf:
          - items:
              $ref: '#/components/schemas/Error'
            type: array
          - type: 'null'
          title: Errors
        included:
          anyOf:
          - items:
              $ref: '#/components/schemas/BaseDataSchema'
            type: array
          - type: 'null'
          title: Included
        links:
          anyOf:
          - $ref: '#/components/schemas/Links'
          - type: 'null'
      required:
      - data
      title: AnnualConsumptionListResponse
      type: object
    AnnualConsumptionData:
      properties:
        attributes:
          $ref: '#/components/schemas/AnnualConsumptionAttributes'
        id:
          format: uuid
          title: Id
          type: string
        relationships:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Relationships
        type:
          const: ANNUAL_CONSUMPTION
          default: ANNUAL_CONSUMPTION
          title: Type
          type: string
      required:
      - id
      - attributes
      title: AnnualConsumptionData
      type: object
    ConsumptionSource:
      enum:
      - meter
      - estimate
      - manualEntry
      title: ConsumptionSource
      type: string
    EmissionFactorAttributes:
      properties:
        location_based:
          description: '**Location-based** · **Standortbasiert**'
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Location Based
          type: string
        market_based:
          anyOf:
          - $ref: '#/components/schemas/MarketBasedFactorAttributes'
          - type: 'null'
          description: '**Market-based** · **Marktbasiert**'
      required:
      - location_based
      - market_based
      title: EmissionFactorAttributes
      type: object
    HeatingSystem:
      enum:
      - ELECTRICITY
      - OIL
      - GAS
      - DISTRICT_HEATING
      - WOOD_CHIPS
      - WOOD_PELLETS
      - HEAT_PUMP
      - UNKNOWN
      title: HeatingSystem
      type: string
    Error:
      properties:
        code:
          anyOf:
          - type: string
          - type: 'null'
          title: Code
        detail:
          anyOf:
          - type: string
          - type: 'null'
          title: Detail
        source:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Source
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
      title: Error
      type: object
    TenantSummaryAttributes:
      properties:
        external_id:
          description: '**External tenant ID** · **Externe Mieter-ID**'
          title: External Id
          type: string
        name:
          description: '**Name** · **Name**'
          title: Name
          type: string
      required:
      - external_id
      - name
      title: TenantSummaryAttributes
      type: object
    MarketBasedFactorAttributes:
      properties:
        is_renewable:
          anyOf:
          - type: boolean
          - type: 'null'
          description: '**Is renewable** · **Erneuerbar**'
          title: Is Renewable
        value:
          description: '**Value** · **Wert**'
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Value
          type: string
      required:
      - value
      - is_renewable
      title: MarketBasedFactorAttributes
      type: object
    CoolingSystem:
      enum:
      - DISTRICT
      - LOCAL_DISTRICT
      title: CoolingSystem
      type: string
    AnnualConsumptionPatchPayload:
      properties:
        data:
          $ref: '#/components/schemas/AnnualConsumptionPatchPayloadData'
      required:
      - data
      title: AnnualConsumptionPatchPayload
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
      - loc
      - msg
      - type
      title: ValidationError
      type: object
    Utility:
      enum:
      - HEATING
      - ELECTRICITY
      - WATER
      - COOLING
      title: Utility
      type: string
    Units:
      enum:
      - CUBIC_METERS
      - KILOWATT_HOURS
      - MEGAWATT_HOURS
      - KILOJOULES
      - MEGAJOULES
      - GIGAJOULES
      - BRITISH_THERMAL_UNITS
      title: Units
      type: string
    ResourceType:
      enum:
      - BUILDING
      - UTILITY_METER
      - UTILITY_METER_IMPORT
      - UTILITY_METER_READING
      - CONSUMPTION_INTERVAL
      - UTILITY_DATA_BATCH_INFO
      - AUDIT_LOG
      - USER_AUDIT_LOG
      - DOCUMENT_EVENT
      - FILE
      - FILE_EXTERNAL_ID
      - FILE_METADATA
      - ANALYSIS_RESULT
      - TENANT
      - TENANT_ATTACHMENT
      - CUSTOM_DATA_GROUP_INSTANCE
      - ANNUAL_CONSUMPTION
      - TENANT_CONSUMPTION_LINK
      title: ResourceType
      type: string
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    BaseDataSchema:
      properties:
        attributes:
          anyOf:
          - {}
          - type: 'null'
          title: Attributes
        id:
          format: uuid
          title: Id
          type: string
        relationships:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Relationships
        type:
          $ref: '#/components/schemas/ResourceType'
      required:
      - id
      - type
      title: BaseDataSchema
      type: object
    AnnualConsumptionPatchPayloadData:
      properties:
        attributes:
          $ref: '#/components/schemas/AnnualConsumptionMarketBasedEmissionUpdate'
        type:
          const: ANNUAL_CONSUMPTION
          title: Type
          type: string
      required:
      - type
      - attributes
      title: AnnualConsumptionPatchPayloadData
      type: object
    ProcuredBy:
      enum:
      - LANDLORD
      - TENANT
      title: ProcuredBy
      type: string
  securitySchemes:
    API_Key:
      description: '

        The Alasco API uses a combination of API keys and API tokens to authenticate requests. The API key

        needs to be sent in a header field called `X-API-KEY`.

        '
      in: header
      name: X-API-KEY
      type: apiKey
    API_Token:
      description: '

        In addition to an API key, one has to specify an API token. There can be one or more tokens in use

        for the same API key. The token needs to be sent in a header field called `X-API-TOKEN`.

        Right now, it''s not possible to create API keys and API tokens from within Alasco.

        If you are interested in using the Alasco API, please reach out to the

        [support team](mailto:support@alasco.de). They will assist you in generating a key and token pair.

        '
      in: header
      name: X-API-TOKEN
      type: apiKey