{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smartcrawler-io/json-schema/smartcrawler-io-social-collect-response-schema.json",
  "title": "SocialCollectResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smartcrawler-io-openapi.json#/components/schemas/SocialCollectResponse",
  "properties": {
    "platform": {
      "type": "string",
      "title": "Platform"
    },
    "target": {
      "type": "string",
      "title": "Target"
    },
    "profile": {
      "anyOf": [
        {
          "$ref": "#/$defs/PublicProfile"
        },
        {
          "type": "null"
        }
      ]
    },
    "contents": {
      "items": {
        "$ref": "#/$defs/PublicContent"
      },
      "type": "array",
      "title": "Contents"
    },
    "comments": {
      "items": {
        "$ref": "#/$defs/PublicComment"
      },
      "type": "array",
      "title": "Comments"
    },
    "next_cursors": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Next Cursors"
    },
    "warnings": {
      "items": {
        "$ref": "#/$defs/CollectionWarning"
      },
      "type": "array",
      "title": "Warnings"
    },
    "provenance": {
      "items": {
        "$ref": "#/$defs/Provenance"
      },
      "type": "array",
      "title": "Provenance"
    },
    "counts": {
      "additionalProperties": {
        "type": "integer"
      },
      "type": "object",
      "title": "Counts"
    },
    "storage": {
      "anyOf": [
        {
          "$ref": "#/$defs/StorageSummary"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "platform",
    "target"
  ],
  "$defs": {
    "CollectionWarning": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code"
        },
        "resource": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "profile",
                "content",
                "comments"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Resource"
        },
        "message": {
          "type": "string",
          "title": "Message"
        },
        "retryable": {
          "type": "boolean",
          "title": "Retryable",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "title": "CollectionWarning"
    },
    "Engagement": {
      "properties": {
        "likes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Likes"
        },
        "comments": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Comments"
        },
        "shares": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Shares"
        },
        "views": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Views"
        },
        "reactions": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reactions"
        },
        "saves": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Saves"
        },
        "upvotes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Upvotes"
        },
        "score": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Score"
        }
      },
      "type": "object",
      "title": "Engagement",
      "description": "Common public counters; unsupported counters remain ``None``."
    },
    "Provenance": {
      "properties": {
        "source": {
          "type": "string",
          "title": "Source"
        },
        "fetched_at": {
          "type": "string",
          "format": "date-time",
          "title": "Fetched At"
        },
        "public_only": {
          "type": "boolean",
          "title": "Public Only",
          "default": true
        },
        "authenticated": {
          "type": "boolean",
          "title": "Authenticated",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "source"
      ],
      "title": "Provenance"
    },
    "PublicComment": {
      "properties": {
        "platform": {
          "type": "string",
          "title": "Platform"
        },
        "id": {
          "type": "string",
          "title": "Id"
        },
        "content_id": {
          "type": "string",
          "title": "Content Id"
        },
        "author_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author Id"
        },
        "author_handle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author Handle"
        },
        "author_display_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author Display Name"
        },
        "text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Text"
        },
        "published_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Published At"
        },
        "parent_comment_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Parent Comment Id"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "engagement": {
          "$ref": "#/$defs/Engagement"
        },
        "metadata": {
          "additionalProperties": true,
          "type": "object",
          "title": "Metadata"
        }
      },
      "type": "object",
      "required": [
        "platform",
        "id",
        "content_id"
      ],
      "title": "PublicComment"
    },
    "PublicContent": {
      "properties": {
        "platform": {
          "type": "string",
          "title": "Platform"
        },
        "id": {
          "type": "string",
          "title": "Id"
        },
        "author_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author Id"
        },
        "author_handle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author Handle"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "content_type": {
          "type": "string",
          "title": "Content Type"
        },
        "text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Text"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "published_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Published At"
        },
        "media_urls": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Media Urls"
        },
        "thumbnail_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Thumbnail Url"
        },
        "duration_seconds": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Duration Seconds"
        },
        "engagement": {
          "$ref": "#/$defs/Engagement"
        },
        "metadata": {
          "additionalProperties": true,
          "type": "object",
          "title": "Metadata"
        }
      },
      "type": "object",
      "required": [
        "platform",
        "id",
        "url",
        "content_type"
      ],
      "title": "PublicContent"
    },
    "PublicProfile": {
      "properties": {
        "platform": {
          "type": "string",
          "title": "Platform"
        },
        "id": {
          "type": "string",
          "title": "Id"
        },
        "handle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Handle"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "display_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Display Name"
        },
        "biography": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Biography"
        },
        "avatar_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Avatar Url"
        },
        "banner_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Banner Url"
        },
        "verified": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Verified"
        },
        "followers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Followers"
        },
        "following": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Following"
        },
        "content_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Content Count"
        },
        "total_likes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total Likes"
        },
        "karma": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Karma"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "metadata": {
          "additionalProperties": true,
          "type": "object",
          "title": "Metadata"
        }
      },
      "type": "object",
      "required": [
        "platform",
        "id",
        "url"
      ],
      "title": "PublicProfile"
    },
    "StorageSummary": {
      "properties": {
        "run_id": {
          "type": "integer",
          "title": "Run Id"
        },
        "workspace_id": {
          "type": "integer",
          "title": "Workspace Id"
        },
        "profiles": {
          "type": "integer",
          "title": "Profiles",
          "default": 0
        },
        "contents": {
          "type": "integer",
          "title": "Contents",
          "default": 0
        },
        "comments": {
          "type": "integer",
          "title": "Comments",
          "default": 0
        },
        "versions_created": {
          "type": "integer",
          "title": "Versions Created",
          "default": 0
        },
        "engagement_snapshots": {
          "type": "integer",
          "title": "Engagement Snapshots",
          "default": 0
        },
        "cursors": {
          "type": "integer",
          "title": "Cursors",
          "default": 0
        },
        "search_hits": {
          "type": "integer",
          "title": "Search Hits",
          "default": 0
        }
      },
      "type": "object",
      "required": [
        "run_id",
        "workspace_id"
      ],
      "title": "StorageSummary"
    }
  }
}