statsig Metrics API

Access and manage metric definitions and metric sources used in experiment analysis.

Business capability
Product Usage Analytics BC-4280.30

Operations 22

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /metrics List metric definitions · List all metrics #
Ask an LLM
“Which metrics are defined in my Statsig project?”
“Can I page through all our metric definitions?”
Tell an agent
List all metrics in my project.
Show page {page} of metrics, {limit} per page.
GET /metrics/{id} Get a metric's definition · Get a metric #
Ask an LLM
“How is a specific metric defined?”
“Can I look up one metric's definition by name?”
Tell an agent
Show the definition of metric {id}.
Get metric {id}.
GET /console/v1/metrics Read a metric's value for one day · Read Single Metric Value #
Ask an LLM
“What was a metric's value on a specific date?”
“Can I pull a single day's value for one metric and type?”
Tell an agent
Get the value of metric {id} on {date}.
Read metric {id} for {date}.
POST /console/v1/metrics Create a metric · Create Metric #
Ask an LLM
“Can I define a new ratio or funnel metric through the API?”
“Can I set whether an increase or decrease is good for a new metric?”
Tell an agent
Create metric {name} of type {type}.
Create a {type} metric {name} computed from events {metricEvents}.
GET /console/v1/metrics/{id} Read a metric definition via Console API v1 · Read Metric Definition #
Ask an LLM
“Can the Console API v1 return a metric's full definition by its ID?”
“Is a given metric verified or read-only?”
Tell an agent
Read metric definition {id} from the v1 console.
Check whether metric {id} is verified, read-only or permanent.
POST /console/v1/metrics/{id} Update a metric's definition · Update a metric #
Ask an LLM
“Can I mark an existing metric as verified?”
“Can I schedule warehouse native reloads for a metric at a set hour?”
Tell an agent
Set the verified flag on metric {id} to {isVerified}.
Schedule reloads of metric {id} at UTC hour {scheduledReloadHour} on days {scheduledReloadDays}.
DELETE /console/v1/metrics/{id} Delete a metric · Delete a metric #
Ask an LLM
“Can I permanently delete a metric definition?”
“Is deleting a metric irreversible?”
Tell an agent destructive · confirm first
Delete metric {id}.
Permanently remove metric {id} from the project.
PUT /console/v1/metrics/{id}/cancel_archive Cancel a scheduled metric archive · Cancel archive a metric #
Ask an LLM
“Can I stop a metric that's scheduled for archiving from being archived?”
“Is there a way to call off a pending metric archive?”
Tell an agent
Cancel the scheduled archive of metric {id}.
Keep metric {id} active by cancelling its pending archive.
GET /console/v1/metrics/{id}/experiments List experiments that use a metric · Lineage: List experiments related to Metric #
Ask an LLM
“Which experiments use a particular metric?”
“Can I see only the experiments in a given status that track a metric?”
Tell an agent
List experiments that use metric {id}.
Show experiments with status {status} that track metric {id}.
POST /console/v1/metrics/{id}/reload Reload a metric's data · Reload metric data #
Ask an LLM
“Can I trigger a recomputation of a metric's data?”
“Is an incremental reload possible instead of a full one?”
Tell an agent
Reload data for metric {id}.
Reload metric {id} incrementally ({incremental}).
PUT /console/v1/metrics/{id}/schedule_archive Schedule a metric for archiving · Schedule a metric archive #
Ask an LLM
“Can I schedule an unused metric to be archived?”
“Is there a way to queue a metric for archive rather than archiving it now?”
Tell an agent
Schedule metric {id} for archive.
Queue metric {id} to be archived.
GET /console/v1/metrics/{id}/sql Get the SQL behind a metric · Get SQL for a metric #
Ask an LLM
“What SQL does Statsig run to compute a metric?”
“Can I see the generated query for a metric?”
Tell an agent
Show the SQL for metric {id}.
Get the query that computes metric {id}.
PUT /console/v1/metrics/{id}/unarchive Unarchive a metric · Unarchive a metric #
Ask an LLM
“Can I bring back a metric that was archived?”
“Is restoring an archived metric possible?”
Tell an agent
Unarchive metric {id}.
Restore archived metric {id}.
GET /console/v1/metrics/{name}/{type} Look up a metric by name and type · Read Metric Definition by Name #
Ask an LLM
“Can I find a metric's definition when I know its name and type but not its ID?”
“What is the definition of the metric with a given name and type?”
Tell an agent
Get the metric named {name} of type {type}.
Look up metric definition by name {name} and type {type}.
GET /console/v1/metrics/list Search and filter the metric catalog · List all Metrics #
Ask an LLM
“Can I include hidden metrics when listing our metrics?”
“Which metrics match a search term like checkout?”
Tell an agent
List metrics matching {filters}.
List metrics tagged {tags} with hidden metrics set to {showHiddenMetrics}.
POST /console/v1/metrics/metric_source Create a metric source from SQL · Create Metric Source #
Ask an LLM
“Can I define a metric source from a SQL query in our warehouse?”
“Which column mappings does a new metric source need?”
Tell an agent
Create metric source {name} from SQL {sql} with timestamp column {timestampColumn} and ID mapping {idTypeMapping}.
Validate new metric source {name} without saving: SQL {sql}, dry run {dryRun}.
GET /console/v1/metrics/metric_source/{name} Read a metric source · Read Metric Source #
Ask an LLM
“What SQL and column mappings does a metric source use?”
“Can I view one metric source's configuration by name?”
Tell an agent
Show metric source {name}.
Get the SQL and ID mapping of metric source {name}.
POST /console/v1/metrics/metric_source/{name} Update a metric source · Update Metric Source #
Ask an LLM
“Can I change the SQL behind an existing metric source?”
“Can I disable CURE for every metric built on a source?”
Tell an agent
Update metric source {name} to use SQL {sql}, timestamp {timestampColumn}, ID mapping {idTypeMapping}.
Turn off CURE on metric source {name} with {disableCURE}, keeping SQL {sql}, timestamp {timestampColumn} and ID mapping {idTypeMapping}.
DELETE /console/v1/metrics/metric_source/{name} Delete a metric source · Delete Metric Source #
Ask an LLM
“Can I remove a metric source we no longer query?”
“Is deleting a metric source permanent?”
Tell an agent destructive · confirm first
Delete metric source {name}.
Permanently remove metric source {name}.
GET /console/v1/metrics/metric_source/{name}/metrics List metrics built on a metric source · Read Metric Source Metrics #
Ask an LLM
“Which metrics are built on top of a particular metric source?”
“What depends on a metric source before I change it?”
Tell an agent
List metrics that use metric source {name}.
Show page {page} of metrics built from source {name}.
GET /console/v1/metrics/metric_source/list List metric sources · List metric source #
Ask an LLM
“Which metric sources are set up in our project?”
“Can I page through every metric source?”
Tell an agent
List all metric sources.
Show page {page} of metric sources, {limit} per page.
GET /console/v1/metrics/values List all metric values for a date · List All Metric Values #
Ask an LLM
“What values did all our metrics have on a given day?”
“Can I filter the daily metric values by metric name or type?”
Tell an agent
List all metric values for {date}.
Show values of metric {metricName} of type {metricType} on {date}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/statsig:statsig-metrics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

statsig-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Statsig Metrics API
  version: '1.0'
  description: 'Operations tagged Metrics across 2 of this provider''s published API definitions: statsig-console-api-openapi.yml, statsig-metrics-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://statsigapi.net/console/v1
  description: Statsig Console API Server
- url: https://statsigapi.net
tags:


# --- truncated at 32 KB (231 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/statsig/refs/heads/main/openapi/statsig-metrics-api-openapi.yml