Usage

Month's usage

Total requests for a single month, with a per-day breakdown. Add group_by to also split the total by endpoint or status code.

get/usage/month/{month}

Request

  • Base URL: https://weatherapi.foreca.net
  • URL: https://weatherapi.foreca.net/usage/month/{month}
  • Auth: HTTP bearer

Path parameters

monthstring required

Month in YYYY-MM format (e.g. "2021-03").

Query parameters

group_bystring

Optional. Split the total into a breakdown array along one dimension. One of: endpoint, status_code.

Response

Success

hitsnumber

Example response

{
  "apis": [
    {
      "name": "Weather API",
      "hits": 32529
    }
  ],
  "hits": 32529,
  "daily": [
    {
      "date": "2021-03-01",
      "apis": [
        {
          "name": "Weather API",
          "hits": 1042
        }
      ]
    }
  ],
  "breakdown": [
    {
      "endpoint": "point",
      "hits": 31044
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.