{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postzen-dev/json-schema/postzen-dev-post-timeline-response-schema.json",
  "title": "PostTimelineResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postzen-dev-analytics-api-openapi.yml#/components/schemas/PostTimelineResponse",
  "type": "object",
  "required": [
    "postId",
    "timeline"
  ],
  "properties": {
    "postId": {
      "type": "string"
    },
    "timeline": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "date",
          "platform",
          "platformPostId",
          "impressions",
          "reach",
          "likes",
          "comments",
          "shares",
          "saves",
          "clicks",
          "views"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "platform": {
            "$ref": "#/$defs/AnalyticsPlatform"
          },
          "platformPostId": {
            "type": "string"
          },
          "impressions": {
            "type": "number"
          },
          "reach": {
            "type": "number"
          },
          "likes": {
            "type": "number"
          },
          "comments": {
            "type": "number"
          },
          "shares": {
            "type": "number"
          },
          "saves": {
            "type": "number"
          },
          "clicks": {
            "type": "number"
          },
          "views": {
            "type": "number"
          }
        }
      }
    }
  },
  "$defs": {
    "AnalyticsPlatform": {
      "type": "string",
      "enum": [
        "x",
        "instagram",
        "tiktok",
        "linkedin",
        "facebook",
        "youtube",
        "threads",
        "pinterest",
        "bluesky",
        "telegram"
      ]
    }
  }
}