{
  "title": "X Followers & Following Scraper input",
  "description": "Add one or more X accounts, choose Followers or Following, and optionally filter the profiles that are saved. Leave the filter settings unchanged to keep every profile returned by X until the result limit is reached.",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "screenNames": {
      "title": "X usernames or profile URLs",
      "type": "array",
      "description": "Enter one account per line as a username (elonmusk), @handle (@elonmusk), or full profile URL. Numeric user IDs also work here, or you can enter them in the separate field below. Up to 25 distinct input identifiers are accepted across both fields; a username and ID for the same account count separately at input time.",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "prefill": [
        "https://x.com/elonmusk"
      ]
    },
    "userIds": {
      "title": "X user IDs (optional)",
      "type": "array",
      "description": "Enter one positive numeric X user ID per line. You can use this field instead of usernames or profile URLs. Remove the example profile URL above if you want to collect only these IDs. Both fields together accept up to 25 distinct input identifiers.",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": []
    },
    "relationshipType": {
      "title": "Collect followers or following?",
      "type": "string",
      "description": "Choose Followers to find people who follow the account, or Following to find people the account follows. Run the Actor twice if you need both.",
      "editor": "select",
      "enum": [
        "followers",
        "followings"
      ],
      "enumTitles": [
        "Followers — people who follow the account",
        "Following — people the account follows"
      ],
      "default": "followers"
    },
    "maxItemsPerUser": {
      "title": "Profiles per account (0 = all)",
      "type": "integer",
      "description": "Maximum matching follower or following profiles to save for each account. Keep 100 for a quick test, or enter 0 to continue through every page and collect all profiles available from X. When filters are enabled, the Profiles to check for matches limit still applies.",
      "default": 100,
      "minimum": 0
    },
    "verification": {
      "sectionCaption": "Filter saved profiles (optional)",
      "sectionDescription": "Only profiles matching every selected filter are saved. Narrow filters may require checking more profiles.",
      "title": "Verification status",
      "type": "string",
      "description": "Keep all accounts, any account with an X verification signal, or one specific badge type. Blue, Business, and Government badges are separate signals and can overlap.",
      "editor": "select",
      "default": "any",
      "enum": [
        "any",
        "any_verified",
        "blue_verified",
        "business",
        "government",
        "unverified"
      ],
      "enumTitles": [
        "All accounts",
        "Any verified or badged account",
        "Blue verified only",
        "Business badge only",
        "Government badge only",
        "Accounts without a verification badge"
      ]
    },
    "visibility": {
      "title": "Account privacy",
      "type": "string",
      "description": "Keep all accounts, public accounts only, or protected accounts only. Protected accounts limit who can view their posts.",
      "editor": "select",
      "default": "any",
      "enum": [
        "any",
        "public",
        "protected"
      ],
      "enumTitles": [
        "All accounts",
        "Public accounts only",
        "Protected accounts only"
      ]
    },
    "minFollowers": {
      "title": "Minimum followers",
      "type": "integer",
      "description": "Only save accounts with at least this many followers. For example, 1,000 keeps accounts with 1,000 followers or more. Keep 0 to disable this filter.",
      "default": 0,
      "minimum": 0
    },
    "maxFollowers": {
      "title": "Maximum followers",
      "type": "integer",
      "description": "Only save accounts with no more than this many followers. For example, 100,000 keeps accounts with 100,000 followers or fewer. Leave empty for no maximum. This value cannot be lower than Minimum followers.",
      "minimum": 0
    },
    "minTweets": {
      "title": "Minimum total posts",
      "type": "integer",
      "description": "Only save accounts that have published at least this many posts over their lifetime. Keep 0 to disable this filter. This does not measure recent activity.",
      "default": 0,
      "minimum": 0
    },
    "maxProfilesScannedPerUser": {
      "title": "Profiles to check for matches",
      "type": "integer",
      "description": "Used only with filters. For each account, the Actor checks up to this many follower or following profiles while looking for matches. Default: 20,000. Lower it for a shorter run, increase it for narrow filters, or enter 0 to check until X ends the list.",
      "default": 20000,
      "minimum": 0
    },
    "includeRawUser": {
      "sectionCaption": "Advanced output",
      "sectionDescription": "Only enable this when you need the complete original X user object.",
      "title": "Include full raw X user data",
      "type": "boolean",
      "description": "Leave this off for clean, spreadsheet-friendly results. Turn it on only when you need the complete original X user object in raw_user; this makes each Dataset item larger.",
      "default": false
    }
  },
  "required": [
    "relationshipType",
    "maxItemsPerUser"
  ]
}
