GET v2/api/api-counts

Returns the last 12 week's counts (by user) of the number of calls made to each endpoint. This API call can only be made by a user with the role Administrator.

Response Information

This end-point returns a list of the last twelve weeks with week labels formatted in ISO 8601 week-numbering with a list of end-points containing a list of users with their count. This method can only be called by an Administrator, otherwise a 403:Forbidden is returned.

Response body formats

application/json, text/json

Sample:
{
  "Weeks": [
    {
      "Label": "sample string 1",
      "Start": "sample string 2"
    },
    {
      "Label": "sample string 1",
      "Start": "sample string 2"
    },
    {
      "Label": "sample string 1",
      "Start": "sample string 2"
    }
  ],
  "Data": {
    "sample string 1": [
      {
        "UserId": "3bea6ed7-6116-477c-af8e-bc2632ca632a",
        "Values": [
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          }
        ]
      },
      {
        "UserId": "3bea6ed7-6116-477c-af8e-bc2632ca632a",
        "Values": [
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          }
        ]
      },
      {
        "UserId": "3bea6ed7-6116-477c-af8e-bc2632ca632a",
        "Values": [
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          }
        ]
      }
    ],
    "sample string 2": [
      {
        "UserId": "3bea6ed7-6116-477c-af8e-bc2632ca632a",
        "Values": [
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          }
        ]
      },
      {
        "UserId": "3bea6ed7-6116-477c-af8e-bc2632ca632a",
        "Values": [
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          }
        ]
      },
      {
        "UserId": "3bea6ed7-6116-477c-af8e-bc2632ca632a",
        "Values": [
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          }
        ]
      }
    ],
    "sample string 3": [
      {
        "UserId": "3bea6ed7-6116-477c-af8e-bc2632ca632a",
        "Values": [
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          }
        ]
      },
      {
        "UserId": "3bea6ed7-6116-477c-af8e-bc2632ca632a",
        "Values": [
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          }
        ]
      },
      {
        "UserId": "3bea6ed7-6116-477c-af8e-bc2632ca632a",
        "Values": [
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          },
          {
            "Week": "sample string 1",
            "Value": 2
          }
        ]
      }
    ]
  }
}