{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smartcrawler-io/json-schema/smartcrawler-io-social-collect-request-schema.json",
  "title": "SocialCollectRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smartcrawler-io-openapi.json#/components/schemas/SocialCollectRequest",
  "properties": {
    "platform": {
      "type": "string",
      "minLength": 1,
      "title": "Platform"
    },
    "target": {
      "type": "string",
      "minLength": 1,
      "title": "Target",
      "description": "Public handle, channel/page ID, or URL"
    },
    "resources": {
      "items": {
        "type": "string",
        "enum": [
          "profile",
          "content",
          "comments"
        ]
      },
      "type": "array",
      "title": "Resources"
    },
    "content_limit": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Content Limit",
      "default": 20
    },
    "comment_limit": {
      "type": "integer",
      "maximum": 500.0,
      "minimum": 0.0,
      "title": "Comment Limit",
      "default": 100
    },
    "content_refs": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Content Refs",
      "description": "Optional public content IDs/URLs whose comments should be collected"
    },
    "content_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content Cursor"
    },
    "comment_cursors": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Comment Cursors"
    }
  },
  "type": "object",
  "required": [
    "platform",
    "target"
  ]
}