{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/influship-com/json-schema/influship-com-lookalike-request-schema.json",
  "title": "LookalikeRequest",
  "description": "Find similar creators request",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/influship-com-openapi.json#/components/schemas/LookalikeRequest",
  "type": "object",
  "properties": {
    "seeds": {
      "minItems": 1,
      "maxItems": 10,
      "type": "array",
      "items": {
        "$ref": "#/$defs/LookalikeSeed"
      },
      "description": "Seed creators to find similar creators for"
    },
    "filters": {
      "description": "Additional filters",
      "$ref": "#/$defs/CommonFilters"
    },
    "limit": {
      "default": 25,
      "description": "Maximum results to return",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "description": "Pagination cursor for next page",
      "type": "string"
    }
  },
  "required": [
    "seeds"
  ],
  "$defs": {
    "CommonFilters": {
      "type": "object",
      "properties": {
        "followers": {
          "description": "Filter by follower count",
          "$ref": "#/$defs/FollowersFilter"
        },
        "engagement_rate": {
          "description": "Filter by engagement rate",
          "$ref": "#/$defs/EngagementRateFilter"
        },
        "verified": {
          "description": "Filter by verified status",
          "type": "boolean"
        }
      },
      "description": "Common filters for creator discovery"
    },
    "EngagementRateFilter": {
      "type": "object",
      "properties": {
        "min": {
          "description": "Minimum engagement rate (%)",
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "max": {
          "description": "Maximum engagement rate (%)",
          "type": "number",
          "minimum": 0,
          "maximum": 100
        }
      },
      "description": "Filter by engagement rate range"
    },
    "FollowersFilter": {
      "type": "object",
      "properties": {
        "min": {
          "description": "Minimum follower count",
          "type": "number",
          "minimum": 0
        },
        "max": {
          "description": "Maximum follower count",
          "type": "number",
          "minimum": 0
        }
      },
      "description": "Filter by follower count range"
    },
    "LookalikeSeed": {
      "type": "object",
      "properties": {
        "creator_id": {
          "description": "Creator ID (use this OR platform+username)",
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "platform": {
          "description": "Platform (required with username)",
          "$ref": "#/$defs/Platform"
        },
        "username": {
          "description": "Username (required with platform)",
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        },
        "weight": {
          "default": 1,
          "description": "Weight for this seed (0-1)",
          "type": "number",
          "minimum": 0,
          "maximum": 1
        }
      },
      "description": "Seed creator for lookalike search"
    },
    "Platform": {
      "type": "string",
      "enum": [
        "instagram"
      ],
      "description": "Social media platform"
    }
  }
}