{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getsocialclaw-com/json-schema/getsocialclaw-com-analytics-response-schema.json",
  "title": "AnalyticsResponse",
  "description": "Analytics response. `latest` is the most recent snapshot (post/account scope); `snapshot` is the one just written by a refresh. Each snapshot has `status` (\"ready\" when metrics were fetched, \"unsupported\" when the provider has no public post-metrics API or the post could not be resolved), `supported`, an optional `message`, and a `metrics` object with impressions, reach, views, likes, comments, shares, saves, and clicks (fields the provider does not return are null).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getsocialclaw-com-openapi.json#/components/schemas/AnalyticsResponse",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "ok": {
      "const": true
    },
    "latest": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "description": "Most recent stored snapshot for this scope, or null."
    },
    "snapshot": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "description": "The snapshot written by a refresh call."
    },
    "history": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "description": "Prior snapshots, newest first."
    },
    "analytics": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "metrics": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "window": {
      "type": [
        "string",
        "null"
      ],
      "description": "Metric window."
    }
  },
  "required": [
    "ok"
  ]
}