> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /eprel/products/stats

> Count the registered models of one EPREL product group by energy class, without pulling the models themselves. Returns one breakdown per energy-class scale the group's regulation defines — a few groups carry several, because separate scales apply to different appliance families within them — with the label, its official colour and the number of models in it, plus the matching total. Accepts the same energy class, supplier and group-specific filters as the product search, so the breakdown can be taken over any slice of the register.

**Price:** 1 credit

**⚠️ Common errors:** 422: A filter key or energy-class letter the chosen product_group does not publish.



## OpenAPI

````yaml /openapi/gov-public-sector.json post /api/eprel/products/stats
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/eprel/products/stats:
    post:
      tags:
        - /eprel
      summary: /eprel/products/stats
      description: >-
        Count the registered models of one EPREL product group by energy class,
        without pulling the models themselves. Returns one breakdown per
        energy-class scale the group's regulation defines — a few groups carry
        several, because separate scales apply to different appliance families
        within them — with the label, its official colour and the number of
        models in it, plus the matching total. Accepts the same energy class,
        supplier and group-specific filters as the product search, so the
        breakdown can be taken over any slice of the register.


        **Price:** 1 credit


        **⚠️ Common errors:** 422: A filter key or energy-class letter the
        chosen product_group does not publish.
      operationId: __api_eprel_products_stats_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EprelProductsStatsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EprelEnergyClassStats'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EprelProductsStatsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        product_group:
          $ref: '#/components/schemas/EprelProductGroup'
        energy_class:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
        supplier:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        include_old_products:
          type: boolean
          default: false
        filters:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
      type: object
      required:
        - product_group
    EprelEnergyClassStats:
      properties:
        '@type':
          type: string
          default: EprelEnergyClassStats
        product_group:
          type: string
        model_count:
          type: integer
          default: 0
        total_model_count:
          type: integer
          default: 0
        model_count_with_old_products:
          type: integer
          default: 0
        scales:
          items:
            $ref: '#/components/schemas/EprelEnergyClassScale'
          type: array
          default: []
      type: object
      required:
        - product_group
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    EprelProductGroup:
      type: string
      enum:
        - airconditioners
        - dishwashers
        - dishwashers2019
        - electronicdisplays
        - hotwaterstoragetanks
        - lamps
        - lightsources
        - localspaceheaters
        - ovens
        - professionalrefrigeratedstoragecabinets
        - rangehoods
        - refrigeratingappliances
        - refrigeratingappliances2019
        - refrigeratingappliancesdirectsalesfunction
        - residentialventilationunits
        - smartphonestablets20231669
        - solidfuelboilerpackages
        - solidfuelboilers
        - spaceheaterpackages
        - spaceheaters
        - spaceheatersolardevice
        - spaceheatertemperaturecontrol
        - televisions
        - tumbledriers
        - tumbledryers20232534
        - tyres
        - washerdriers
        - washerdriers2019
        - washingmachines
        - washingmachines2019
        - waterheaterpackages
        - waterheaters
        - waterheatersolardevices
    EprelEnergyClassScale:
      properties:
        '@type':
          type: string
          default: EprelEnergyClassScale
        scale:
          anyOf:
            - type: string
            - type: 'null'
        metric:
          anyOf:
            - type: string
            - type: 'null'
        model_count:
          type: integer
          default: 0
        classes:
          items:
            $ref: '#/components/schemas/EprelEnergyClassCount'
          type: array
          default: []
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
    EprelEnergyClassCount:
      properties:
        '@type':
          type: string
          default: EprelEnergyClassCount
        energy_class:
          type: string
        color:
          anyOf:
            - type: string
            - type: 'null'
        model_count:
          type: integer
          default: 0
      type: object
      required:
        - energy_class
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````