Get usage overview

Retrieve your organization's usage and incurred cost across Better Stack products, itemized down to individual sources, applications, and billing line items. The usage API returns the same data as the Usage page in your billing settings.

The usage API requires a global API token.

This endpoint lists every product your organization uses, its incurred cost over the date range, and the dimensions you can query it by. The product id values, dimension names, and default_dimension values are the inputs for getting usage per product.

Time range defaults to the last 30 days when from and to are omitted and results are returned without pagination.

GET https://betterstack.com/api/v2/usage

Query parameters

from
string
to
string

Headers

Authorization
required string
200

Response body

{
  "meta": {
    "from": "2026-06-30",
    "to": "2026-07-29"
  },
  "data": [
    {
      "id": "logs",
      "type": "usage_product",
      "attributes": {
        "name": "Logs",
        "cost": 267.4,
        "default_dimension": "volume",
        "dimensions": [
          {
            "name": "volume",
            "label": "Ingested volume",
            "unit": "bytes"
          },
          {
            "name": "retention",
            "label": "Retention",
            "unit": "days"
          },
          {
            "name": "region",
            "label": "Regions",
            "unit": "text"
          },
          {
            "name": "cost",
            "label": "Incurred cost",
            "unit": "$"
          }
        ]
      }
    },
    {
      "id": "monitors",
      "type": "usage_product",
      "attributes": {
        "name": "Monitors",
        "cost": 81.25,
        "default_dimension": "Monitors",
        "dimensions": [
          {
            "name": "Monitors",
            "label": "Monitors",
            "unit": "count"
          },
          {
            "name": "cost",
            "label": "Incurred cost",
            "unit": "$"
          }
        ]
      }
    }
  ]
}
401

Response body

{
  "errors": "We could not authenticate your request. Please provide a valid Global API token."
}
429

Example cURL

Usage overview
curl --request GET \
  --url "https://betterstack.com/api/v2/usage" \
  --header "Authorization: Bearer $TOKEN"