Honeycomb · Schema

QuerySpec

A query specification defining what data to retrieve and how to aggregate it.

Properties

Name Type Description
calculations array The calculations to perform on the query data.
filters array Filters to apply to the query.
breakdowns array Columns to group results by.
orders array Ordering for the results.
time_range integer The time range in seconds to query over.
start_time integer Unix timestamp for the query start time.
end_time integer Unix timestamp for the query end time.
granularity integer The granularity of results in seconds.
limit integer The maximum number of results to return.
View JSON Schema on GitHub

JSON Schema

honeycomb-queryspec-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/QuerySpec",
  "title": "QuerySpec",
  "type": "object",
  "description": "A query specification defining what data to retrieve and how to aggregate it.",
  "properties": {
    "calculations": {
      "type": "array",
      "description": "The calculations to perform on the query data.",
      "items": {
        "type": "object",
        "properties": {
          "op": {
            "type": "string",
            "description": "The aggregation operation.",
            "enum": [
              "COUNT",
              "SUM",
              "AVG",
              "COUNT_DISTINCT",
              "MAX",
              "MIN",
              "P001",
              "P01",
              "P05",
              "P10",
              "P25",
              "P50",
              "P75",
              "P90",
              "P95",
              "P99",
              "P999",
              "HEATMAP",
              "RATE_AVG",
              "RATE_SUM",
              "RATE_MAX"
            ]
          },
          "column": {
            "type": "string",
            "description": "The column to perform the calculation on."
          }
        }
      }
    },
    "filters": {
      "type": "array",
      "description": "Filters to apply to the query.",
      "items": {
        "type": "object",
        "properties": {
          "column": {
            "type": "string",
            "description": "The column to filter on."
          },
          "op": {
            "type": "string",
            "description": "The filter operator.",
            "enum": [
              "=",
              "!=",
              ">",
              ">=",
              "<",
              "<=",
              "starts-with",
              "does-not-start-with",
              "contains",
              "does-not-contain",
              "exists",
              "does-not-exist",
              "in",
              "not-in"
            ]
          },
          "value": {
            "description": "The value to compare against."
          }
        }
      }
    },
    "breakdowns": {
      "type": "array",
      "description": "Columns to group results by.",
      "items": {
        "type": "string"
      }
    },
    "orders": {
      "type": "array",
      "description": "Ordering for the results.",
      "items": {
        "type": "object",
        "properties": {
          "column": {
            "type": "string"
          },
          "op": {
            "type": "string"
          },
          "order": {
            "type": "string",
            "enum": [
              "ascending",
              "descending"
            ]
          }
        }
      }
    },
    "time_range": {
      "type": "integer",
      "description": "The time range in seconds to query over."
    },
    "start_time": {
      "type": "integer",
      "description": "Unix timestamp for the query start time."
    },
    "end_time": {
      "type": "integer",
      "description": "Unix timestamp for the query end time."
    },
    "granularity": {
      "type": "integer",
      "description": "The granularity of results in seconds."
    },
    "limit": {
      "type": "integer",
      "description": "The maximum number of results to return."
    }
  }
}

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/honeycomb-queryspec"
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.