{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postnext-io/json-schema/postnext-io-best-time-result-schema.json",
  "title": "BestTimeResult",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postnext-io-openapi.json#/components/schemas/BestTimeResult",
  "type": "object",
  "properties": {
    "platform": {
      "type": "string"
    },
    "timezone": {
      "type": "string"
    },
    "sampleWindowDays": {
      "type": "integer"
    },
    "sampleSize": {
      "type": "integer"
    },
    "metricsAvailable": {
      "type": "boolean"
    },
    "recommendations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "dayOfWeek": {
            "type": "integer",
            "description": "0=Sun ... 6=Sat"
          },
          "dayLabel": {
            "type": "string"
          },
          "hour": {
            "type": "integer",
            "description": "0-23, in the requested timezone"
          },
          "score": {
            "type": "number"
          },
          "basedOn": {
            "type": "object",
            "properties": {
              "posts": {
                "type": "integer"
              },
              "avgEngagement": {
                "type": "number"
              }
            }
          }
        }
      }
    }
  }
}