Google Analytics · Schema

MetricFilter

MetricFilter specifies the filter on a metric.

AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine-LearningAttribution

Properties

Name Type Description
comparisonValue string The value to compare against.
metricName string The metric that will be filtered on. A metricFilter must contain a metric name. A metric name can be an alias earlier defined as a metric or it can also be a metric expression.
not boolean Logical `NOT` operator. If this boolean is set to true, then the matching metric values will be excluded in the report. The default is false.
operator string Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the comparisonValue, the default is `EQUAL`. If the operator is `IS_MISSING`, checks if the metric is missing and would ignore the comparisonValue.
View JSON Schema on GitHub

JSON Schema

google-analytics-metricfilter-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MetricFilter",
  "title": "MetricFilter",
  "description": "MetricFilter specifies the filter on a metric.",
  "properties": {
    "comparisonValue": {
      "description": "The value to compare against.",
      "type": "string",
      "example": "example_value"
    },
    "metricName": {
      "description": "The metric that will be filtered on. A metricFilter must contain a metric name. A metric name can be an alias earlier defined as a metric or it can also be a metric expression.",
      "type": "string",
      "example": "Example Name"
    },
    "not": {
      "description": "Logical `NOT` operator. If this boolean is set to true, then the matching metric values will be excluded in the report. The default is false.",
      "type": "boolean",
      "example": true
    },
    "operator": {
      "description": "Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the comparisonValue, the default is `EQUAL`. If the operator is `IS_MISSING`, checks if the metric is missing and would ignore the comparisonValue.",
      "enum": [
        "OPERATOR_UNSPECIFIED",
        "EQUAL",
        "LESS_THAN",
        "GREATER_THAN",
        "IS_MISSING"
      ],
      "type": "string",
      "example": "OPERATOR_UNSPECIFIED"
    }
  },
  "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/google-analytics-metricfilter"
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.