Skip to main content
GET
/
usage
/
metrics
cURL
curl "https://api.growthbook.io/api/v1/usage/metrics?ids=met_123,fact_456" \
  -u secret_abc123DEF456:
{
  "metricUsage": [
    {
      "metricId": "<string>",
      "error": "<string>",
      "experiments": [
        {
          "experimentId": "<string>",
          "experimentStatus": "draft",
          "lastSnapshotAttempt": "2023-11-07T05:31:56Z"
        }
      ],
      "lastSnapshotAttempt": "2023-11-07T05:31:56Z"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://growthbook-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

curl https://api.growthbook.io/api/v1 \
-H "Authorization: Bearer secret_abc123DEF456"

Query Parameters

ids
string
required

List of comma-separated metric IDs (both fact and legacy) to get usage for, e.g. ids=met_123,fact_456

Response

200 - application/json

Success

metricUsage
object[]
required