---
updatedAt: 2025-06-05T21:48:49.000Z
agentTools:
  projectIndex: https://docs.cloudloop.com/llms.txt
---

# Get Usage

Retrieve itemised usage for Subscriber in given month

> 🚧 Year/Month
>
> This is based on your billing day with us (which may not necessarily align to calendar months).
>
> For example, if your billed from us on the 17th, then Year = 2023, Month = 1 would relate to period:
>
> **17/Jan/2023 00:00:00** to **16/Feb/2023 23:59:59**

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "cloudloop",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.cloudloop.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/Certus/GetUsage": {
      "get": {
        "summary": "Get Usage",
        "description": "Retrieve itemised usage for Subscriber in given month",
        "operationId": "get-usage-1",
        "parameters": [
          {
            "name": "subscriber",
            "in": "query",
            "description": "CloudLoop Subscriber Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 2023
            }
          },
          {
            "name": "month",
            "in": "query",
            "description": "1-12",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"usage\": [\n    {\n      \"at\": \"2023-02-08T00:00:00\",\n      \"cost\": 10.000,\n      \"agreement\": \"MJaKzYmyeDdjGPBaqkBLrlVqgZxNXApv\",\n      \"size\": 123,\n      \"contract\": \"aJYXyvGekqxMKAWvAnzbRDgVQZOwmdpN\",\n      \"billedSize\": 1,\n      \"id\": \"ejoGRxQrXpzkPJEgmnydwYZbqmDagNAl\",\n      \"sessionRating\": \"ROUNDED\",\n      \"type\": \"CERTUS_STREAMING_14\",\n      \"sessionDuration\": 23\n    }\n  ]\n}"
                  },
                  "Incomplete Request": {
                    "value": "{\n  \"at\": 1525425009448,\n  \"error\": \"DispatcherInputException\"\n}\n"
                  },
                  "Service Unavailable": {
                    "value": "{\n  \"at\": 1527861082868,\n  \"error\": \"DispatcherUnavailableException\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "usage": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "at": {
                                "type": "string",
                                "example": "2023-02-08T00:00:00"
                              },
                              "cost": {
                                "type": "integer",
                                "example": 10,
                                "default": 0
                              },
                              "agreement": {
                                "type": "string",
                                "example": "MJaKzYmyeDdjGPBaqkBLrlVqgZxNXApv"
                              },
                              "size": {
                                "type": "integer",
                                "example": 123,
                                "default": 0
                              },
                              "contract": {
                                "type": "string",
                                "example": "aJYXyvGekqxMKAWvAnzbRDgVQZOwmdpN"
                              },
                              "billedSize": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "id": {
                                "type": "string",
                                "example": "ejoGRxQrXpzkPJEgmnydwYZbqmDagNAl"
                              },
                              "sessionRating": {
                                "type": "string",
                                "example": "ROUNDED"
                              },
                              "type": {
                                "type": "string",
                                "example": "CERTUS_STREAMING_14"
                              },
                              "sessionDuration": {
                                "type": "integer",
                                "example": 23,
                                "default": 0
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Incomplete Request",
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "example": 1525425009448,
                          "default": 0
                        },
                        "error": {
                          "type": "string",
                          "example": "DispatcherInputException"
                        }
                      }
                    },
                    {
                      "title": "Service Unavailable",
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "example": 1527861082868,
                          "default": 0
                        },
                        "error": {
                          "type": "string",
                          "example": "DispatcherUnavailableException"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```