{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cite42-dev/json-schema/cite42-dev-post-api-v1-youtube-trends-response-schema.json",
  "title": "PostApiV1YoutubeTrendsResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/cite42-dev-openapi-generated.yml#/components/schemas/PostApiV1YoutubeTrendsResponse",
  "type": "object",
  "properties": {
    "topic": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "timeframe": {
      "type": "string"
    },
    "provider": {
      "type": "string"
    },
    "publishedAfter": {
      "type": "string",
      "format": "date-time"
    },
    "risingVideos": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "videoId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "channelTitle": {
            "type": "string"
          },
          "channelId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "publishedAt": {
            "type": "string",
            "format": "date-time"
          },
          "descriptionSnippet": {
            "type": "string"
          },
          "thumbnailUrl": {
            "type": "string"
          },
          "duration": {
            "type": "string"
          },
          "viewCount": {
            "type": "integer"
          },
          "likeCount": {
            "type": "integer"
          },
          "commentCount": {
            "type": "integer"
          },
          "viewsPerDay": {
            "type": "integer"
          }
        }
      }
    },
    "titlePatterns": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "pattern": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          }
        }
      }
    },
    "creatorAngles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "angle": {
            "type": "string"
          },
          "why": {
            "type": "string"
          }
        }
      }
    },
    "channelBreakdown": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "channelTitle": {
            "type": "string"
          },
          "videos": {
            "type": "integer"
          },
          "totalViews": {
            "type": "integer"
          },
          "totalComments": {
            "type": "integer"
          }
        }
      }
    },
    "formatIdeas": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceUrls": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "fetchedAt": {
      "type": "string",
      "format": "date-time"
    },
    "requestId": {
      "type": "string"
    },
    "billing": {
      "type": "object",
      "properties": {
        "cost": {
          "type": "object",
          "properties": {
            "microCredits": {
              "type": "integer"
            },
            "usd": {
              "type": "string"
            }
          }
        },
        "balance": {
          "type": "object",
          "properties": {
            "microCredits": {
              "type": "integer"
            },
            "usd": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}