---
updatedAt: 2025-11-11T22:56:08.000Z
agentTools:
  projectIndex: https://pegasus.digitalcomtech.com/llms.txt
---

# Counters - View counters

View a vehicle's counters & user counters

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Pegasus Cloud IoT API",
    "description": "Pegasus IoT Cloud API reference documentation. [Github Repo](https://github.com/dctdevelop/pegasus) / [Release notes](https://github.com/dctdevelop/pegasus/tree/master/releases)",
    "contact": {
      "email": "developer@digitalcomtech.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.0.12"
  },
  "servers": [
    {
      "url": "https://api.pegasusgateway.com",
      "description": "Production server"
    },
    {
      "url": "https://auth.pegasusgateway.com",
      "description": "Authentication server"
    }
  ],
  "tags": [
    {
      "name": "Counters"
    }
  ],
  "paths": {
    "/vehicles/{id}/counters": {
      "get": {
        "tags": [
          "Counters"
        ],
        "summary": "Counters - View counters",
        "description": "View a vehicle's counters & user counters",
        "operationId": "getVehicleCounters",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Vehicle ID",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "number"
            },
            "example": 5824
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/responseVehicleCounters200"
                }
              }
            }
          }
        },
        "security": [
          {
            "apikeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "responseVehicleCounters200": {
        "type": "object",
        "properties": {
          "user": {
            "type": "array",
            "items": {
              "type": "object",
              "example": "{\"description\": \"Maintenance\",\"set_at\": 1618593310.28889,\"counter\": \"dev_ign\",\"value\": 1007376,\"offset\": -1254648,\"id\": 0}"
            }
          },
          "vehicle": {
            "$ref": "#/components/schemas/responseVehicleCounters200_vehicle"
          }
        }
      },
      "responseVehicleCounters200_vehicle": {
        "type": "object",
        "properties": {
          "plain": {
            "type": "object",
            "example": "{\"dev_idle\": 1932594,\"dev_ospeed\": 21020,\"dev_orpm\": 0,\"dev_dist\": 285200,\"dev_ign\": 2262024}"
          },
          "counters": {
            "type": "object",
            "example": "{\"dev_idle\": {\"_epoch\": 1644076526.382583,\"value\": 1932594},\"evtime\": 1646237206,\"_vid\": 5824,\"dev_ospeed\": {\"_epoch\": 1646237208.656725,\"value\": 21020},\"_epoch\": 1656691837.040715,\"dev_orpm\": {\"_epoch\": 1575416754.698374,\"value\": 0},\"dev_dist\": {\"_epoch\": 1656709533.742061,\"value\": 285200},\"dev_ign\": {\"_epoch\": 1644076648.89905,\"value\": 2262024}}"
          }
        }
      }
    },
    "securitySchemes": {
      "apikeyAuth": {
        "type": "apiKey",
        "name": "authenticate",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```