{
  "type": "object",
  "properties": {
    "recordType": {
      "type": "string",
      "enum": [
        "channel",
        "video",
        "short",
        "searchStatus"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "noResults",
        "failed",
        "chargeLimitReached"
      ]
    },
    "searchType": {
      "type": "string",
      "enum": [
        "channels",
        "videos",
        "shorts"
      ]
    },
    "errorCode": {
      "type": "string"
    },
    "errorMessage": {
      "type": "string"
    },
    "suggestion": {
      "type": "string"
    },
    "sortBy": {
      "type": "string"
    },
    "duration": {
      "type": "string"
    },
    "detailStatus": {
      "type": "string",
      "enum": [
        "complete",
        "basic"
      ],
      "description": "complete means detail extraction finished, not that every optional field exists. basic means a detail request failed and available metadata was retained; it is not a user-selected extraction mode."
    },
    "detailError": {
      "type": [
        "string",
        "null"
      ],
      "description": "Reason detail extraction did not finish. Only present on a basic result."
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "thumbnailUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "avatarUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "bannerUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "channelId": {
      "type": [
        "string",
        "null"
      ]
    },
    "channelName": {
      "type": [
        "string",
        "null"
      ]
    },
    "channelHandle": {
      "type": [
        "string",
        "null"
      ]
    },
    "channelUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "subscriberCount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Channel subscriber count normalized from YouTube's public display. Abbreviated display values can be approximate."
    },
    "subscriberCountText": {
      "type": [
        "string",
        "null"
      ]
    },
    "isVerified": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "totalViewCount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "videoCount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "joinedDate": {
      "type": [
        "string",
        "null"
      ]
    },
    "joinedDateText": {
      "type": [
        "string",
        "null"
      ]
    },
    "channelCountry": {
      "type": [
        "string",
        "null"
      ],
      "description": "Country displayed on the channel's public About page, not the requested search region."
    },
    "socialLinks": {
      "type": "array",
      "description": "Public external links exposed by a channel's About page or description.",
      "items": {
        "type": "object",
        "properties": {
          "platform": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "emails": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Email addresses directly exposed in public channel data. Protected business-email controls are not accessed."
    },
    "channelProfile": {
      "type": "object",
      "description": "Basic creator identity obtained with video or Shorts metadata, without requesting the channel About page.",
      "properties": {
        "channelId": {
          "type": [
            "string",
            "null"
          ]
        },
        "channelName": {
          "type": [
            "string",
            "null"
          ]
        },
        "channelHandle": {
          "type": [
            "string",
            "null"
          ]
        },
        "channelUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "subscriberCount": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Public displayed subscriber count; can be approximate."
        },
        "isVerified": {
          "type": [
            "boolean",
            "null"
          ]
        }
      }
    },
    "videoId": {
      "type": [
        "string",
        "null"
      ]
    },
    "durationSeconds": {
      "type": [
        "number",
        "null"
      ]
    },
    "durationText": {
      "type": [
        "string",
        "null"
      ]
    },
    "uploadDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "YouTube upload date in YYYY-MM-DD for content rows; effective upload-date filter on searchStatus rows."
    },
    "publishedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "Public publication timestamp in ISO 8601 when exposed. Not inferred from a relative search-card label."
    },
    "publishedTimeText": {
      "type": [
        "string",
        "null"
      ]
    },
    "viewCount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "viewCountText": {
      "type": [
        "string",
        "null"
      ]
    },
    "likeCount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "commentCount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "liveStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "availability": {
      "type": [
        "string",
        "null"
      ]
    },
    "ageLimit": {
      "type": [
        "integer",
        "null"
      ]
    },
    "videoLanguage": {
      "type": [
        "string",
        "null"
      ],
      "description": "Audio language when identifiable from public video metadata, not the YouTube interface language."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "chapters": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "startSeconds": {
            "type": "number"
          },
          "endSeconds": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      }
    },
    "searchQuery": {
      "type": "string",
      "description": "Original keyword that produced this result."
    },
    "searchRank": {
      "type": "integer",
      "description": "One-based order of matching results returned for this keyword and result type in this run. Not a universal personalized YouTube ranking."
    },
    "searchCountry": {
      "type": "string",
      "description": "Requested YouTube search region; not the creator's country."
    },
    "searchLanguage": {
      "type": "string",
      "description": "Requested YouTube interface and localized-metadata language; not the video's spoken language."
    },
    "scrapedAt": {
      "type": "string"
    }
  }
}
