Elastic · Schema

_types.aggregations.Aggregate

SearchAnalyticsObservabilitySecurityVisualizationCloudMonitoring
View JSON Schema on GitHub

JSON Schema

elastic-types-aggregations-aggregate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-types-aggregations-aggregate-schema.json",
  "title": "_types.aggregations.Aggregate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-search-api-openapi.yml#/components/schemas/_types.aggregations.Aggregate",
  "oneOf": [
    {
      "$ref": "#/$defs/_types.aggregations.CardinalityAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.HdrPercentilesAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.HdrPercentileRanksAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.TDigestPercentilesAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.TDigestPercentileRanksAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.PercentilesBucketAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.MedianAbsoluteDeviationAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.MinAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.MaxAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.SumAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.AvgAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.WeightedAvgAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.ValueCountAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.SimpleValueAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.DerivativeAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.BucketMetricValueAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.ChangePointAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.StatsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.StatsBucketAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.ExtendedStatsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.ExtendedStatsBucketAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.CartesianBoundsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.CartesianCentroidAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.GeoBoundsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.GeoCentroidAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.HistogramAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.DateHistogramAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.AutoDateHistogramAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.VariableWidthHistogramAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.StringTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.LongTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.DoubleTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.UnmappedTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.LongRareTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.StringRareTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.UnmappedRareTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.MultiTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.MissingAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.NestedAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.ReverseNestedAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.GlobalAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.FilterAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.ChildrenAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.ParentAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.SamplerAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.UnmappedSamplerAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.GeoHashGridAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.GeoTileGridAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.GeoHexGridAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.RangeAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.DateRangeAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.GeoDistanceAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.IpRangeAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.IpPrefixAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.FiltersAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.AdjacencyMatrixAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.SignificantLongTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.SignificantStringTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.UnmappedSignificantTermsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.CompositeAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.FrequentItemSetsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.TimeSeriesAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.ScriptedMetricAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.TopHitsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.InferenceAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.StringStatsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.BoxPlotAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.TopMetricsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.TTestAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.RateAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.CumulativeCardinalityAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.MatrixStatsAggregate"
    },
    {
      "$ref": "#/$defs/_types.aggregations.GeoLineAggregate"
    }
  ],
  "$defs": {
    "_global.explain.Explanation": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.explain.ExplanationDetail"
          }
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "description",
        "details",
        "value"
      ]
    },
    "_global.explain.ExplanationDetail": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.explain.ExplanationDetail"
          }
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "description",
        "value"
      ]
    },
    "_global.search._types.Hit": {
      "type": "object",
      "properties": {
        "_index": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.IndexName"
            }
          ]
        },
        "_id": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Id"
            }
          ]
        },
        "_score": {
          "oneOf": [
            {
              "type": "number"
            },
            {
              "type": [
                "string",
                "null"
              ]
            }
          ]
        },
        "_explanation": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.explain.Explanation"
            }
          ]
        },
        "fields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "highlight": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "inner_hits": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_global.search._types.InnerHitsResult"
          }
        },
        "matched_queries": {
          "oneOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "object",
              "additionalProperties": {
                "type": "number"
              }
            }
          ]
        },
        "_nested": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.NestedIdentity"
            }
          ]
        },
        "_ignored": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ignored_field_values": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "_shard": {
          "type": "string"
        },
        "_node": {
          "type": "string"
        },
        "_routing": {
          "type": "string"
        },
        "_source": {
          "type": "object"
        },
        "_rank": {
          "type": "number"
        },
        "_seq_no": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.SequenceNumber"
            }
          ]
        },
        "_primary_term": {
          "type": "number"
        },
        "_version": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.VersionNumber"
            }
          ]
        },
        "sort": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.SortResults"
            }
          ]
        }
      },
      "required": [
        "_index"
      ]
    },
    "_global.search._types.HitsMetadata": {
      "type": "object",
      "properties": {
        "total": {
          "description": "Total hit count information, present only if `track_total_hits` wasn't `false` in the search request.",
          "oneOf": [
            {
              "$ref": "#/$defs/_global.search._types.TotalHits"
            },
            {
              "type": "number"
            }
          ]
        },
        "hits": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.Hit"
          }
        },
        "max_score": {
          "oneOf": [
            {
              "type": "number"
            },
            {
              "type": [
                "string",
                "null"
              ]
            }
          ]
        }
      },
      "required": [
        "hits"
      ]
    },
    "_global.search._types.InnerHitsResult": {
      "type": "object",
      "properties": {
        "hits": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.HitsMetadata"
            }
          ]
        }
      },
      "required": [
        "hits"
      ]
    },
    "_global.search._types.NestedIdentity": {
      "type": "object",
      "properties": {
        "field": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Field"
            }
          ]
        },
        "offset": {
          "type": "number"
        },
        "_nested": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.NestedIdentity"
            }
          ]
        }
      },
      "required": [
        "field",
        "offset"
      ]
    },
    "_global.search._types.TotalHits": {
      "type": "object",
      "properties": {
        "relation": {
          "description": "\n\nSupported values include:\n  - `eq`: Accurate\n  - `gte`: Lower bound, including returned events or sequences\n\n",
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.TotalHitsRelation"
            }
          ]
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "relation",
        "value"
      ]
    },
    "_global.search._types.TotalHitsRelation": {
      "type": "string",
      "enum": [
        "eq",
        "gte"
      ]
    },
    "_spec_utils.Void": {
      "description": "The absence of any type. This is commonly used in APIs that don't return a body.\n\nAlthough \"void\" is generally used for the unit type that has only one value, this is to be interpreted as\nthe bottom type that has no value at all. Most languages have a unit type, but few have a bottom type.\n\nSee https://en.m.wikipedia.org/wiki/Unit_type and https://en.m.wikipedia.org/wiki/Bottom_type",
      "type": "object"
    },
    "_types.CartesianPoint": {
      "type": "object",
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "required": [
        "x",
        "y"
      ]
    },
    "_types.CoordsGeoBounds": {
      "type": "object",
      "properties": {
        "top": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        },
        "left": {
          "type": "number"
        },
        "right": {
          "type": "number"
        }
      },
      "required": [
        "top",
        "bottom",
        "left",
        "right"
      ]
    },
    "_types.DurationLarge": {
      "description": "A date histogram interval. Similar to `Duration` with additional units: `w` (week), `M` (month), `q` (quarter) and\n`y` (year)",
      "type": "string"
    },
    "_types.EpochTimeUnitMillis": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.UnitMillis"
        }
      ]
    },
    "_types.Field": {
      "description": "Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.",
      "type": "string"
    },
    "_types.FieldValue": {
      "description": "A field value.",
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "boolean"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "_types.GeoBounds": {
      "description": "A geo bounding box. It can be represented in various ways:\n- as 4 top/bottom/left/right coordinates\n- as 2 top_left / bottom_right points\n- as 2 top_right / bottom_left points\n- as a WKT bounding box",
      "oneOf": [
        {
          "$ref": "#/$defs/_types.CoordsGeoBounds"
        },
        {
          "$ref": "#/$defs/_types.TopLeftBottomRightGeoBounds"
        },
        {
          "$ref": "#/$defs/_types.TopRightBottomLeftGeoBounds"
        },
        {
          "$ref": "#/$defs/_types.WktGeoBounds"
        }
      ]
    },
    "_types.GeoHash": {
      "type": "string"
    },
    "_types.GeoHashLocation": {
      "type": "object",
      "properties": {
        "geohash": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.GeoHash"
            }
          ]
        }
      },
      "required": [
        "geohash"
      ]
    },
    "_types.GeoHexCell": {
      "description": "A map hex cell (H3) reference",
      "type": "string"
    },
    "_types.GeoLine": {
      "description": "A GeoJson GeoLine.",
      "type": "object",
      "properties": {
        "type": {
          "description": "Always `\"LineString\"`",
          "type": "string"
        },
        "coordinates": {
          "description": "Array of `[lon, lat]` coordinates",
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        }
      },
      "required": [
        "type",
        "coordinates"
      ]
    },
    "_types.GeoLocation": {
      "description": "A latitude/longitude as a 2 dimensional point. It can be represented in various ways:\n- as a `{lat, long}` object\n- as a geo hash value\n- as a `[lon, lat]` array\n- as a string in `\"<lat>, <lon>\"` or WKT point formats",
      "oneOf": [
        {
          "$ref": "#/$defs/_types.LatLonGeoLocation"
        },
        {
          "$ref": "#/$defs/_types.GeoHashLocation"
        },
        {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        {
          "type": "string"
        }
      ]
    },
    "_types.GeoTile": {
      "description": "A map tile reference, represented as `{zoom}/{x}/{y}`",
      "type": "string"
    },
    "_types.Id": {
      "type": "string"
    },
    "_types.IndexName": {
      "type": "string"
    },
    "_types.LatLonGeoLocation": {
      "type": "object",
      "properties": {
        "lat": {
          "description": "Latitude",
          "type": "number"
        },
        "lon": {
          "description": "Longitude",
          "type": "number"
        }
      },
      "required": [
        "lat",
        "lon"
      ]
    },
    "_types.Metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "_types.SequenceNumber": {
      "type": "number"
    },
    "_types.SortResults": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/_types.FieldValue"
      }
    },
    "_types.TopLeftBottomRightGeoBounds": {
      "type": "object",
      "properties": {
        "top_left": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.GeoLocation"
            }
          ]
        },
        "bottom_right": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.GeoLocation"
            }
          ]
        }
      },
      "required": [
        "top_left",
        "bottom_right"
      ]
    },
    "_types.TopRightBottomLeftGeoBounds": {
      "type": "object",
      "properties": {
        "top_right": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.GeoLocation"
            }
          ]
        },
        "bottom_left": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.GeoLocation"
            }
          ]
        }
      },
      "required": [
        "top_right",
        "bottom_left"
      ]
    },
    "_types.UnitMillis": {
      "description": "Time unit for milliseconds",
      "type": "number"
    },
    "_types.VersionNumber": {
      "type": "number"
    },
    "_types.WktGeoBounds": {
      "type": "object",
      "properties": {
        "wkt": {
          "type": "string"
        }
      },
      "required": [
        "wkt"
      ]
    },
    "_types.aggregations.AbstractChangePoint": {
      "type": "object",
      "properties": {
        "p_value": {
          "type": "number"
        },
        "change_point": {
          "type": "number"
        }
      },
      "required": [
        "p_value",
        "change_point"
      ]
    },
    "_types.aggregations.AdjacencyMatrixAggregate": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.aggregations.MultiBucketAggregateBaseAdjacencyMatrixBucket"
        },
        {
          "type": "object"
        }
      ]
    },
    "_types.aggregations.AdjacencyMatrixBucket": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.aggregations.MultiBucketBase"
        },
        {
          "type": "object",
          "properties": {
            "key": {
              "type": "string"
            }
          },
          "required": [
            "key"
          ]
        }
      ]
    },
    "_types.aggregations.AggregateBase": {
      "type": "object",
      "properties": {
        "meta": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Metadata"
            }
          ]
        }
      }
    },
    "_types.aggregations.ArrayPercentilesItem": {
      "type": "object",
      "properties": {
        "key": {
          "type": "number"
        },
        "value": {
          "oneOf": [
            {
              "type": "number"
            },
            {
              "type": [
                "string",
                "null"
              ]
            }
          ]
        },
        "value_as_string": {
          "type": "string"
        }
      },
      "required": [
        "key",
        "value"
      ]
    },
    "_types.aggregations.AutoDateHistogramAggregate": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.aggregations.MultiBucketAggregateBaseDateHistogramBucket"
        },
        {
          "type": "object",
          "properties": {
            "interval": {
              "allOf": [
                {
                  "$ref": "#/$defs/_types.DurationLarge"
                }
              ]
            }
          },
          "required": [
            "interval"
          ]
        }
      ]
    },
    "_types.aggregations.AvgAggregate": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.aggregations.SingleMetricAggregateBase"
        },
        {
          "type": "object"
        }
      ]
    },
    "_types.aggregations.BoxPlotAggregate": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.aggregations.AggregateBase"
        },
        {
          "type": "object",
          "properties": {
            "min": {
              "type": "number"
            },
            "max": {
              "type": "number"
            },
            "q1": {
              "type": "number"
            },
            "q2": {
              "type": "number"
            },
            "q3": {
              "type": "number"
            },
            "lower": {
              "type": "number"
            },
            "upper": {
              "type": "number"
            },
            "min_as_string": {
              "type": "string"
            },
            "max_as_string": {
              "type": "string"
            },
            "q1_as_string": {
              "type": "string"
            },
            "q2_as_string": {
              "type": "string"
            },
            "q3_as_string": {
              "type": "string"
            },
            "lower_as_string": {
              "type": "string"
            },
            "upper_as_string": {
              "type": "string"
            }
          },
          "required": [
            "min",
            "max",
            "q1",
            "q2",
            "q3",
            "lower",
            "upper"
          ]
        }
      ]
    },
    "_types.aggregations.BucketMetricValueAggregate": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.aggregations.SingleMetricAggregateBase"
        },
        {
          "type": "object",
          "properties": {
            "keys": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "keys"
          ]
        }
      ]
    },
    "_types.aggregations.BucketsAdjacencyMatrixBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.AdjacencyMatrixBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.AdjacencyMatrixBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsCompositeBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.CompositeBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.CompositeBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsDateHistogramBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.DateHistogramBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.DateHistogramBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsDoubleTermsBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.DoubleTermsBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.DoubleTermsBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsFiltersBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.FiltersBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.FiltersBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsFrequentItemSetsBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.FrequentItemSetsBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.FrequentItemSetsBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsGeoHashGridBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.GeoHashGridBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.GeoHashGridBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsGeoHexGridBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.GeoHexGridBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.GeoHexGridBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsGeoTileGridBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.GeoTileGridBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.GeoTileGridBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsHistogramBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.HistogramBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.HistogramBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsIpPrefixBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.IpPrefixBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.IpPrefixBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsIpRangeBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.IpRangeBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.IpRangeBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsLongRareTermsBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.LongRareTermsBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.LongRareTermsBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsLongTermsBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.LongTermsBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.LongTermsBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsMultiTermsBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.MultiTermsBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.MultiTermsBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsRangeBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.aggregations.RangeBucket"
          }
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.aggregations.RangeBucket"
          }
        }
      ]
    },
    "_types.aggregations.BucketsSignificantLongTermsBucket": {
      "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dicti

# --- truncated at 32 KB (103 KB total) ---
# Full source: https://artifacts.apis.io/elastic/json-schema/elastic-types-aggregations-aggregate-schema.json

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/elastic-types-aggregations-aggregate"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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