Youtube · Schema

QueryResponse

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

GoogleMediaSocialStreamingVideoVideos

Properties

Name Type Description
kind string Identifies the API resource's type. Value is youtubeAnalytics#resultTable.
columnHeaders array 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
rows array 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
View JSON Schema on GitHub

JSON Schema

youtube-analytics-query-response-schema.json Raw ↑
{
  "type": "object",
  "description": "Response to a successful YouTube Analytics query request containing the requested report data including column headers and rows of data.",
  "properties": {
    "kind": {
      "type": "string",
      "description": "Identifies the API resource's type. Value is youtubeAnalytics#resultTable.",
      "example": "youtube#video"
    },
    "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.",
      "example": [],
      "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.",
            "example": "Example Title"
          },
          "columnType": {
            "type": "string",
            "description": "The type of the column. Valid values are DIMENSION and METRIC.",
            "example": "DIMENSION",
            "enum": [
              "DIMENSION",
              "METRIC"
            ]
          },
          "dataType": {
            "type": "string",
            "description": "The type of data that the column contains. Valid values are STRING, INTEGER, FLOAT, and CURRENCY.",
            "example": "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.",
      "example": [],
      "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-schema.org/draft/2020-12/schema",
  "title": "QueryResponse",
  "x-schema-source": "openapi",
  "x-source-url": "openapi/youtube-analytics-openapi.yml"
}