Youtube · JSON Structure

Youtube Analytics Query Response Structure

Response to a successful YouTube Analytics query request containing the requested report data including column headers and rows of data.

Type: object Properties: 3
GoogleMediaSocialStreamingVideoVideos

QueryResponse is a JSON Structure definition published by Youtube, describing 3 properties. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

kind columnHeaders rows

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

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "Response to a successful YouTube Analytics query request containing the requested report data including column headers and rows of data.",
  "name": "QueryResponse",
  "properties": {
    "kind": {
      "type": "string",
      "description": "Identifies the API resource's type. Value is youtubeAnalytics#resultTable."
    },
    "columnHeaders": {
      "type": "array",
      "description": "A list of objects that describe the columns in the report table. Each object in the list identifies a query dimension or metric and provides information about the data type of that dimension or metric.",
      "items": {
        "type": "object",
        "description": "Describes a single column in an Analytics report response, including its name, type, and data type.",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the dimension or metric."
          },
          "columnType": {
            "type": "string",
            "description": "The type of the column. Valid values are DIMENSION and METRIC.",
            "enum": [
              "DIMENSION",
              "METRIC"
            ]
          },
          "dataType": {
            "type": "string",
            "description": "The type of data that the column contains. Valid values are STRING, INTEGER, FLOAT, and CURRENCY.",
            "enum": [
              "CURRENCY",
              "FLOAT",
              "INTEGER",
              "STRING"
            ]
          }
        }
      }
    },
    "rows": {
      "type": "array",
      "description": "The list contains all rows of the result table. Each item in the list is an array that contains comma-delimited data corresponding to a single row of data. The order of the comma-delimited data fields will match the order of the columns listed in the columnHeaders field.",
      "items": {
        "type": "array",
        "description": "A single row of data in the report result set.",
        "items": {
          "type": "object",
          "description": "A value in the row, either a string or number depending on the column type."
        }
      }
    }
  },
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}