Amplitude · JSON Structure

Amplitude Cohort Structure

Schema for an Amplitude behavioral cohort representing a group of users defined by shared behavioral patterns or properties.

Type: object Properties: 9 Required: 2
A/B TestingAnalyticsExperimentationFeature FlagsProduct AnalyticsUser Behavior

Amplitude Cohort is a JSON Structure definition published by Amplitude, describing 9 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id name description size lastComputed archived owner appId definition

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amplitude/refs/heads/main/json-structure/amplitude-cohort-structure.json",
  "name": "Amplitude Cohort",
  "description": "Schema for an Amplitude behavioral cohort representing a group of users defined by shared behavioral patterns or properties.",
  "type": "object",
  "required": [
    "id",
    "name"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for the cohort."
    },
    "name": {
      "type": "string",
      "description": "The name of the cohort.",
      "minLength": 1,
      "maxLength": 255
    },
    "description": {
      "type": "string",
      "description": "A description of the cohort and the behavioral pattern it captures."
    },
    "size": {
      "type": "int32",
      "description": "The number of users currently in the cohort.",
      "minimum": 0
    },
    "lastComputed": {
      "type": "datetime",
      "description": "The date and time the cohort membership was last computed."
    },
    "archived": {
      "type": "boolean",
      "description": "Whether the cohort has been archived."
    },
    "owner": {
      "type": "string",
      "format": "email",
      "description": "The email address of the cohort owner."
    },
    "appId": {
      "type": "int32",
      "description": "The Amplitude project ID the cohort belongs to."
    },
    "definition": {
      "$ref": "#/$defs/CohortDefinition"
    }
  },
  "definitions": {
    "CohortDefinition": {
      "name": "CohortDefinition",
      "type": "object",
      "description": "The behavioral definition that determines cohort membership.",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of cohort definition.",
          "enum": [
            "behavioral",
            "property",
            "uploaded"
          ]
        },
        "events": {
          "type": "array",
          "description": "Array of event conditions that define behavioral cohort membership.",
          "items": {
            "$ref": "#/$defs/EventCondition"
          }
        },
        "properties": {
          "type": "array",
          "description": "Array of user property conditions for property-based cohorts.",
          "items": {
            "$ref": "#/$defs/PropertyCondition"
          }
        }
      }
    },
    "EventCondition": {
      "name": "EventCondition",
      "type": "object",
      "description": "A condition based on user event behavior.",
      "properties": {
        "event_type": {
          "type": "string",
          "description": "The event type the condition evaluates."
        },
        "operator": {
          "type": "string",
          "description": "The comparison operator.",
          "enum": [
            "is",
            "is_not",
            "contains",
            "does_not_contain",
            "greater_than",
            "less_than"
          ]
        },
        "value": {
          "description": "The value to compare against."
        }
      }
    },
    "PropertyCondition": {
      "name": "PropertyCondition",
      "type": "object",
      "description": "A condition based on user properties.",
      "properties": {
        "property": {
          "type": "string",
          "description": "The user property name."
        },
        "operator": {
          "type": "string",
          "description": "The comparison operator.",
          "enum": [
            "is",
            "is_not",
            "contains",
            "does_not_contain",
            "set",
            "not_set",
            "greater_than",
            "less_than"
          ]
        },
        "value": {
          "description": "The value to compare against."
        }
      }
    }
  }
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/amplitude-cohort-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?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.