{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-publish-metric-sample-schema.json",
  "title": "PublishMetricSample",
  "description": "One reading of how a published item is doing. Normalised so platforms can be compared at all, with the provider's own answer kept in `raw` so a wrong mapping stays discoverable.\n\nEVERY COUNT IS NULLABLE AND NULL IS NOT ZERO. A platform that does not report impressions to an author has reported nothing; writing 0 would invent a measurement nobody made.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-connections-api-openapi.yml#/components/schemas/PublishMetricSample",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "attemptId": {
      "type": "string"
    },
    "fetchedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When this node asked. Not when the platform computed it, which is rarely knowable."
    },
    "impressions": {
      "type": [
        "integer",
        "null"
      ]
    },
    "likes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "comments": {
      "type": [
        "integer",
        "null"
      ]
    },
    "shares": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Reblogs, reposts, retweets, shares. Cousins rather than synonyms, named once."
    },
    "raw": {
      "type": "object",
      "additionalProperties": true
    }
  }
}