Optimizely · Schema

Metric

A metric used to measure experiment results

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing

Properties

Name Type Description
event_id integer The event ID this metric tracks
aggregator string How to aggregate the metric
field string The field to aggregate on
scope string The scope of the metric
winning_direction string The direction that indicates improvement
View JSON Schema on GitHub

JSON Schema

optimizely-metric-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Metric",
  "title": "Metric",
  "type": "object",
  "description": "A metric used to measure experiment results",
  "properties": {
    "event_id": {
      "type": "integer",
      "format": "int64",
      "description": "The event ID this metric tracks"
    },
    "aggregator": {
      "type": "string",
      "description": "How to aggregate the metric",
      "enum": [
        "unique",
        "count",
        "sum"
      ]
    },
    "field": {
      "type": "string",
      "description": "The field to aggregate on"
    },
    "scope": {
      "type": "string",
      "description": "The scope of the metric",
      "enum": [
        "visitor",
        "session",
        "event"
      ]
    },
    "winning_direction": {
      "type": "string",
      "description": "The direction that indicates improvement",
      "enum": [
        "increasing",
        "decreasing"
      ]
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/optimizely-metric"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.