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

# Count chargers

> The counts of the chargers `GET /chargers` lists with the same filters, in all, per
connection status and per EVSE status: a fleet's summary in one read. Each charger counts
once, whichever of your teams reach it; a token limited to picked teams and locations counts
the chargers of those teams and at those locations. Narrow it with `connection=online` to
leave out the last status a charger reported before it lost its connection.



## OpenAPI

````yaml api-reference/v4/v4.openapi.json GET /chargers/counts
openapi: 3.1.0
info:
  title: Plugchoice API
  description: >-
    Every request sends an access token as `Authorization: Bearer …`, unless an
    operation says otherwise.


    Errors are problems (RFC 9457, `application/problem+json`): `code` says what
    went wrong, and a failed validation lists the fields in `errors`.


    A list answers one page: `{"data": [...], "next_cursor": ...,
    "previous_cursor": ...}`. Pass a cursor back as `cursor` to get that page,
    and `limit` (1 to 100, default 25) for its size.


    Within v4, changes only add: new operations, new optional parameters, new
    fields and new enum values. Ignore fields you do not know, and accept enum
    values you do not know. Requests that send a field the operation does not
    know are refused, so a typo does not pass unnoticed.
  version: '4'
servers:
  - url: https://api.plugchoice.com/v4
security:
  - bearer: []
paths:
  /chargers/counts:
    get:
      tags:
        - chargers
      summary: How many chargers you reach
      description: >-
        The counts of the chargers `GET /chargers` lists with the same filters,
        in all, per

        connection status and per EVSE status: a fleet's summary in one read.
        Each charger counts

        once, whichever of your teams reach it; a token limited to picked teams
        and locations counts

        the chargers of those teams and at those locations. Narrow it with
        `connection=online` to

        leave out the last status a charger reported before it lost its
        connection.
      operationId: show_chargers_counts
      parameters:
        - name: team_id
          in: query
          description: 'Only the chargers this team reaches: one of yours.'
          required: false
          schema:
            type: string
            format: uuid
        - name: location_id
          in: query
          description: >-
            Only the chargers at this location. Repeat it for several:
            `location_id=…&location_id=…`.
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: located
          in: query
          description: >-
            `false`: only the chargers at no location; `true`: only those at
            one.
          required: false
          schema:
            type: boolean
        - name: search
          in: query
          description: >-
            Only chargers whose identity, serial number or reference (the one
            the charger shows)

            contains this text, ignoring case: 1 to 100 characters, with spaces
            around it removed.
          required: false
          schema:
            type: string
            maxLength: 100
            minLength: 1
        - name: model_id
          in: query
          description: >-
            Only chargers of this model, by the model's `id`. Repeat it for
            several.
          required: false
          schema:
            type: array
            items:
              type: string
        - name: firmware_version
          in: query
          description: >-
            Only chargers that reported this firmware version last, as
            `firmware_version` shows it:

            1 to 255 characters, with spaces around it removed. Repeat it for
            several.
          required: false
          schema:
            type: array
            items:
              type: string
              description: A firmware version, as a charger reports it.
              maxLength: 255
              minLength: 1
        - name: charger_id
          in: query
          description: >-
            Only this charger. Repeat it for several:
            `charger_id=…&charger_id=…`.
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: connection
          in: query
          description: |-
            Only chargers with this connection status. Repeat it for several:
            `connection=online&connection=offline`.
          required: false
          schema:
            type: array
            items:
              $ref: '#/components/schemas/ConnectionStatus'
        - name: status
          in: query
          description: |-
            Only chargers with an EVSE in this status. Repeat it for several:
            `status=charging&status=suspended_ev`.
          required: false
          schema:
            type: array
            items:
              $ref: '#/components/schemas/EvseStatus'
        - name: updated_since
          in: query
          description: |-
            Only chargers that changed at or after this time (RFC 3339, such as
            `2026-11-23T10:00:00Z`), a change to one of their EVSEs included.
          required: false
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: The counts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChargerCounts'
        default:
          description: >-
            A problem (RFC 9457). `code` says which; the field errors come with
            `validation_failed`.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - bearer:
            - chargers:read
components:
  schemas:
    ConnectionStatus:
      type: string
      description: >-
        Whether the charger is connected now. Accept values you do not know:
        more may come.
      enum:
        - online
        - offline
        - never_seen
    EvseStatus:
      type: string
      description: >-
        What an EVSE is doing, as its charger reports it. OCPP 1.6 chargers
        report all but

        `occupied`; OCPP 2.x chargers report `available`, `occupied`,
        `reserved`, `unavailable` and

        `faulted`. Accept values you do not know: more may come.
      enum:
        - available
        - preparing
        - charging
        - suspended_ev
        - suspended_evse
        - finishing
        - occupied
        - reserved
        - unavailable
        - faulted
    ChargerCounts:
      type: object
      description: >-
        How many chargers a list of chargers holds, in all and per status. A
        count per EVSE status

        counts the chargers with an EVSE in that status, as the list's `status`
        filter keeps them: a

        charger with EVSEs in two statuses counts in both, and one whose EVSE
        reports a status this

        API does not know counts in none of them. More counts may come as
        statuses are added.
      required:
        - charger_count
        - online_charger_count
        - offline_charger_count
        - never_seen_charger_count
        - available_charger_count
        - preparing_charger_count
        - charging_charger_count
        - suspended_ev_charger_count
        - suspended_evse_charger_count
        - finishing_charger_count
        - occupied_charger_count
        - reserved_charger_count
        - unavailable_charger_count
        - faulted_charger_count
      properties:
        available_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers with an EVSE free for a new vehicle: what
            `status=available` lists.
        charger_count:
          type: integer
          format: int64
          description: The chargers the list holds.
        charging_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers with an EVSE charging a vehicle: what `status=charging`
            lists.
        faulted_charger_count:
          type: integer
          format: int64
          description: 'The chargers with a broken EVSE: what `status=faulted` lists.'
        finishing_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers with an EVSE whose transaction ended while the vehicle
            is still plugged in:

            what `status=finishing` lists.
        never_seen_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers that never connected: what `connection=never_seen`
            lists.
        occupied_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers with an EVSE a vehicle is plugged in to (OCPP 2.x):
            what `status=occupied`

            lists.
        offline_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers that lost their connection: what `connection=offline`
            lists.
        online_charger_count:
          type: integer
          format: int64
          description: 'The chargers connected now: what `connection=online` lists.'
        preparing_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers with an EVSE about to start a transaction: what
            `status=preparing` lists.
        reserved_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers with an EVSE held for one card: what `status=reserved`
            lists.
        suspended_ev_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers with an EVSE whose vehicle pauses the charge: what
            `status=suspended_ev`

            lists.
        suspended_evse_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers with an EVSE that pauses the charge itself: what
            `status=suspended_evse`

            lists.
        unavailable_charger_count:
          type: integer
          format: int64
          description: >-
            The chargers with an EVSE taken out of use: what
            `status=unavailable` lists.
    Problem:
      type: object
      description: An error response body (RFC 9457).
      required:
        - type
        - title
        - status
        - code
      properties:
        code:
          type: string
          description: >-
            The kind of problem, for code to act on, such as
            `validation_failed`. Treat a code you do

            not know by the status.
        detail:
          type: string
          description: >-
            What went wrong with this request, when there is more to say than
            the title; left out

            when there is not.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/FieldError'
          description: >-
            With `validation_failed`: the fields that broke a rule; left out
            when there are none.
        status:
          type: integer
          format: int32
          description: The HTTP status code.
          minimum: 0
        title:
          type: string
          description: A short summary of the kind of problem.
        type:
          type: string
          description: >-
            The page that explains this kind of problem: its `code` with
            hyphens, as

            `https://developer.plugchoice.com/api/errors/validation-failed`.
    FieldError:
      type: object
      description: One field that broke a rule.
      required:
        - field
        - code
        - message
      properties:
        code:
          type: string
          description: >-
            The rule it broke, for code to act on: `missing_field`,
            `unknown_field`, `invalid_type`,

            `invalid`, or `taken` (a value that must be unique, such as a card's
            id at a location,

            and is not).
        field:
          type: string
          description: >-
            Where the field is in the request, such as `name` or
            `connectors[0].max_current`.
        message:
          type: string
          description: What is wrong, in English.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        An access token from `accounts.plugchoice.com`, for a personal API
        token, a person signed in through an app, or an OAuth client.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.