PostHog · Schema

TrendsFilter

A/B TestingAnalyticsFeature FlagsOpen-SourceProduct AnalyticsSession Recording

Properties

Name Type Description
aggregationAxisFormat object
aggregationAxisPostfix string
aggregationAxisPrefix string
breakdown_histogram_bin_count number
confidenceLevel number
decimalPlaces number
detailedResultsAggregationType object detailed results table
display object
excludeBoxPlotOutliers boolean
formula string
formulaNodes array List of formulas with optional custom names. Takes precedence over formula/formulas if set.
formulas array
goalLines array Goal Lines
hiddenLegendIndexes array
hideWeekends boolean
minDecimalPlaces number
movingAverageIntervals number
resultCustomizationBy object Wether result datasets are associated by their values or by their order.
resultCustomizations object Customizations for the appearance of result datasets.
showAlertThresholdLines boolean
showConfidenceIntervals boolean
showLabelsOnSeries boolean
showLegend boolean
showMovingAverage boolean
showMultipleYAxes boolean
showPercentStackView boolean
showTrendLines boolean
showValuesOnSeries boolean
smoothingIntervals integer
yAxisScaleType object
View JSON Schema on GitHub

JSON Schema

posthog-trendsfilter-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TrendsFilter",
  "title": "TrendsFilter",
  "additionalProperties": false,
  "properties": {
    "aggregationAxisFormat": {
      "default": "numeric",
      "allOf": [
        {
          "$ref": "#/components/schemas/AggregationAxisFormat"
        }
      ],
      "nullable": true
    },
    "aggregationAxisPostfix": {
      "default": null,
      "title": "Aggregationaxispostfix",
      "type": "string",
      "nullable": true
    },
    "aggregationAxisPrefix": {
      "default": null,
      "title": "Aggregationaxisprefix",
      "type": "string",
      "nullable": true
    },
    "breakdown_histogram_bin_count": {
      "default": null,
      "title": "Breakdown Histogram Bin Count",
      "type": "number",
      "nullable": true
    },
    "confidenceLevel": {
      "default": null,
      "title": "Confidencelevel",
      "type": "number",
      "nullable": true
    },
    "decimalPlaces": {
      "default": null,
      "title": "Decimalplaces",
      "type": "number",
      "nullable": true
    },
    "detailedResultsAggregationType": {
      "default": null,
      "description": "detailed results table",
      "allOf": [
        {
          "$ref": "#/components/schemas/DetailedResultsAggregationType"
        }
      ],
      "nullable": true
    },
    "display": {
      "default": "ActionsLineGraph",
      "allOf": [
        {
          "$ref": "#/components/schemas/ChartDisplayType"
        }
      ],
      "nullable": true
    },
    "excludeBoxPlotOutliers": {
      "default": true,
      "title": "Excludeboxplotoutliers",
      "type": "boolean",
      "nullable": true
    },
    "formula": {
      "default": null,
      "title": "Formula",
      "type": "string",
      "nullable": true
    },
    "formulaNodes": {
      "default": null,
      "description": "List of formulas with optional custom names. Takes precedence over formula/formulas if set.",
      "title": "Formulanodes",
      "items": {
        "$ref": "#/components/schemas/TrendsFormulaNode"
      },
      "type": "array",
      "nullable": true
    },
    "formulas": {
      "default": null,
      "title": "Formulas",
      "items": {
        "type": "string"
      },
      "type": "array",
      "nullable": true
    },
    "goalLines": {
      "default": null,
      "description": "Goal Lines",
      "title": "Goallines",
      "items": {
        "$ref": "#/components/schemas/GoalLine"
      },
      "type": "array",
      "nullable": true
    },
    "hiddenLegendIndexes": {
      "default": null,
      "title": "Hiddenlegendindexes",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "nullable": true
    },
    "hideWeekends": {
      "default": false,
      "title": "Hideweekends",
      "type": "boolean",
      "nullable": true
    },
    "minDecimalPlaces": {
      "default": null,
      "title": "Mindecimalplaces",
      "type": "number",
      "nullable": true
    },
    "movingAverageIntervals": {
      "default": null,
      "title": "Movingaverageintervals",
      "type": "number",
      "nullable": true
    },
    "resultCustomizationBy": {
      "default": "value",
      "description": "Wether result datasets are associated by their values or by their order.",
      "allOf": [
        {
          "$ref": "#/components/schemas/ResultCustomizationBy"
        }
      ],
      "nullable": true
    },
    "resultCustomizations": {
      "default": null,
      "description": "Customizations for the appearance of result datasets.",
      "title": "Resultcustomizations",
      "anyOf": [
        {
          "additionalProperties": {
            "$ref": "#/components/schemas/ResultCustomizationByValue"
          },
          "type": "object"
        },
        {
          "additionalProperties": {
            "$ref": "#/components/schemas/ResultCustomizationByPosition"
          },
          "type": "object"
        }
      ],
      "nullable": true
    },
    "showAlertThresholdLines": {
      "default": false,
      "title": "Showalertthresholdlines",
      "type": "boolean",
      "nullable": true
    },
    "showConfidenceIntervals": {
      "default": null,
      "title": "Showconfidenceintervals",
      "type": "boolean",
      "nullable": true
    },
    "showLabelsOnSeries": {
      "default": null,
      "title": "Showlabelsonseries",
      "type": "boolean",
      "nullable": true
    },
    "showLegend": {
      "default": false,
      "title": "Showlegend",
      "type": "boolean",
      "nullable": true
    },
    "showMovingAverage": {
      "default": null,
      "title": "Showmovingaverage",
      "type": "boolean",
      "nullable": true
    },
    "showMultipleYAxes": {
      "default": false,
      "title": "Showmultipleyaxes",
      "type": "boolean",
      "nullable": true
    },
    "showPercentStackView": {
      "default": false,
      "title": "Showpercentstackview",
      "type": "boolean",
      "nullable": true
    },
    "showTrendLines": {
      "default": null,
      "title": "Showtrendlines",
      "type": "boolean",
      "nullable": true
    },
    "showValuesOnSeries": {
      "default": false,
      "title": "Showvaluesonseries",
      "type": "boolean",
      "nullable": true
    },
    "smoothingIntervals": {
      "default": 1,
      "title": "Smoothingintervals",
      "type": "integer",
      "nullable": true
    },
    "yAxisScaleType": {
      "default": "linear",
      "allOf": [
        {
          "$ref": "#/components/schemas/YAxisScaleType"
        }
      ],
      "nullable": true
    }
  },
  "type": "object"
}

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/posthog-trendsfilter"
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.