curl -X POST https://api.growthbook.io/api/v1/fact-metrics/fact_1234/analysis \
-d '{"lookbackDays":90}' \
-u secret_abc123DEF456:{
"metricAnalysis": {
"id": "<string>",
"status": "<string>",
"settings": {}
}
}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.
If using Bearer auth, pass the Secret Key as the token:
curl https://api.growthbook.io/api/v1 \
-H "Authorization: Bearer secret_abc123DEF456"The fact metric id to analyze
The identifier type to use for the analysis. If not provided, defaults to the first available identifier type in the fact table.
Number of days to look back for the analysis. Defaults to 30.
1 <= x <= 999999The type of population to analyze. Defaults to 'factTable', meaning the analysis will return the metric value for all units found in the fact table.
factTable, segment The ID of the population (e.g., segment ID) when populationType is not 'factTable'. Defaults to null.
We support passing in adhoc filters for an analysis that don't live on the metric itself. These are in addition to the metric's filters. To use this, you can pass in an array of Fact Table Filter Ids.
We support passing in adhoc filters for an analysis that don't live on the metric itself. These are in addition to the metric's filters. To use this, you can pass in an array of Fact Table Filter Ids.
Whether to use a cached query if one exists. Defaults to true.
Success
Show child attributes
curl -X POST https://api.growthbook.io/api/v1/fact-metrics/fact_1234/analysis \
-d '{"lookbackDays":90}' \
-u secret_abc123DEF456:{
"metricAnalysis": {
"id": "<string>",
"status": "<string>",
"settings": {}
}
}