Adobe Analytics · JSON Structure

Adobe Analytics Report Request Structure

Definition of an analytics report request

Type: object Properties: 7 Required: 3
AdobeAnalyticsBusiness IntelligenceCustomer IntelligenceDigital MarketingMarketingWeb Analytics

ReportRequest is a JSON Structure definition published by Adobe Analytics, describing 7 properties, of which 3 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

rsid locale globalFilters metricContainer dimension settings statistics

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "Definition of an analytics report request",
  "name": "ReportRequest",
  "properties": {
    "rsid": {
      "type": "string",
      "description": "The report suite ID to run the report against"
    },
    "locale": {
      "type": "string",
      "description": "Locale for response labels"
    },
    "globalFilters": {
      "type": "array",
      "description": "List of global filters applied to the entire report",
      "items": {
        "type": "object",
        "description": "A filter applied to a report",
        "properties": {
          "type": {
            "type": "string",
            "description": "Filter type",
            "enum": [
              "dateRange",
              "breakdown",
              "segment"
            ]
          },
          "dateRange": {
            "type": "string",
            "description": "ISO 8601 date range (e.g. 2024-01-01T00:00:00/2024-01-31T23:59:59)"
          },
          "segmentId": {
            "type": "string",
            "description": "ID of an existing segment to apply as a filter"
          },
          "dimension": {
            "type": "string",
            "description": "Dimension for breakdown filter"
          },
          "itemId": {
            "type": "string",
            "description": "Dimension item ID for breakdown filter"
          }
        },
        "required": [
          "type"
        ]
      }
    },
    "metricContainer": {
      "type": "object",
      "description": "Container defining the metrics to include in a report",
      "properties": {
        "metrics": {
          "type": "array",
          "items": {
            "type": "object",
            "description": "A metric included in a report request",
            "properties": {
              "id": {
                "type": "string",
                "description": "The metric ID (e.g. metrics/visits)"
              },
              "columnId": {
                "type": "string",
                "description": "Column identifier for this metric in the response"
              },
              "filters": {
                "type": "array",
                "description": "Metric-level filter IDs referencing metricFilters",
                "items": {
                  "type": "string"
                }
              },
              "sort": {
                "type": "string",
                "description": "Sort direction for this metric",
                "enum": [
                  "ASC",
                  "DESC"
                ]
              }
            },
            "required": [
              "id"
            ]
          }
        },
        "metricFilters": {
          "type": "array",
          "description": "Filters applied at the metric level",
          "items": {
            "type": "object",
            "description": "A filter applied to a report",
            "properties": {
              "type": {
                "type": "string",
                "description": "Filter type",
                "enum": [
                  "dateRange",
                  "breakdown",
                  "segment"
                ]
              },
              "dateRange": {
                "type": "string",
                "description": "ISO 8601 date range (e.g. 2024-01-01T00:00:00/2024-01-31T23:59:59)"
              },
              "segmentId": {
                "type": "string",
                "description": "ID of an existing segment to apply as a filter"
              },
              "dimension": {
                "type": "string",
                "description": "Dimension for breakdown filter"
              },
              "itemId": {
                "type": "string",
                "description": "Dimension item ID for breakdown filter"
              }
            },
            "required": [
              "type"
            ]
          }
        }
      },
      "required": [
        "metrics"
      ]
    },
    "dimension": {
      "type": "string",
      "description": "The primary dimension ID for the report (e.g. variables/page)"
    },
    "settings": {
      "type": "object",
      "description": "Settings that control report output behavior",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "Maximum number of rows to return"
        },
        "page": {
          "type": "integer",
          "description": "Page number (zero-indexed)"
        },
        "nonesBehavior": {
          "type": "string",
          "description": "How to handle None values",
          "enum": [
            "exclude-nones",
            "return-nones"
          ]
        }
      }
    },
    "statistics": {
      "type": "object",
      "description": "Statistical settings for the report"
    }
  },
  "required": [
    "rsid",
    "globalFilters",
    "metricContainer"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}