{
  "title": "X (Twitter) People Search Input",
  "description": "Search for X accounts by keyword, then optionally narrow the saved profiles by audience size, verification, visibility, website, posting volume, location, or account creation date. Leave all optional filters at their defaults to keep every result returned by X People search.",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "searchQueries": {
      "sectionCaption": "Search setup",
      "sectionDescription": "Enter what you want to search for and how many matching profiles should be saved for each query.",
      "title": "People search queries",
      "type": "array",
      "description": "Enter one keyword or phrase per line. Each query is sent independently to X People search, and results follow X's own ranking. You can search for a name, handle, organization, profession, topic, niche, or location phrase. Operators intended for post search are not supported. Up to 25 query entries are accepted per run and processed sequentially; exact duplicates are queried only once.",
      "editor": "stringList",
      "minItems": 1,
      "maxItems": 25,
      "items": {
        "type": "string",
        "minLength": 1
      },
      "prefill": [
        "AI researcher"
      ]
    },
    "maxUsersPerQuery": {
      "title": "Maximum matching profiles per query",
      "type": "integer",
      "description": "Enter a value from 1 to 1,000. This is the maximum number of profiles that pass all selected filters and are saved for each query. The Actor follows X result pages until it reaches this limit or X has no more results. The limit applies separately to each query.",
      "default": 20,
      "minimum": 1,
      "maximum": 1000
    },
    "minFollowers": {
      "sectionCaption": "Optional result filters",
      "sectionDescription": "Filters are applied before profiles are saved. Different filters work together, so a profile must satisfy every selected condition. Keep the defaults or leave optional fields empty to disable filtering. Minimum followers cannot exceed Maximum followers, and Created on or after cannot be later than Created on or before.",
      "title": "Minimum followers",
      "type": "integer",
      "description": "Only save accounts with at least this many followers. Keep 0 to allow accounts with any follower count.",
      "default": 0,
      "minimum": 0
    },
    "maxFollowers": {
      "title": "Maximum followers",
      "type": "integer",
      "description": "Only save accounts with no more than this many followers. Leave empty to apply no maximum follower limit.",
      "minimum": 0
    },
    "minTweets": {
      "title": "Minimum posts",
      "type": "integer",
      "description": "Only save accounts with at least this many total posts. Keep 0 to disable this filter. This measures lifetime posting volume, not recent activity.",
      "default": 0,
      "minimum": 0
    },
    "verification": {
      "title": "Verification or badge type",
      "type": "string",
      "description": "Choose which X verification or badge signals to keep. Blue, Business, and Government badges are separate signals and may overlap. Any verified or badged account includes all three types.",
      "editor": "select",
      "default": "any",
      "enum": [
        "any",
        "any_verified",
        "blue_verified",
        "business",
        "government",
        "unverified"
      ],
      "enumTitles": [
        "Any verification status",
        "Any verified or badged account",
        "Blue verified accounts",
        "Business accounts",
        "Government accounts",
        "Unverified accounts"
      ]
    },
    "visibility": {
      "title": "Account visibility",
      "type": "string",
      "description": "Keep accounts with any visibility, public accounts only, or protected accounts only. Protected accounts may restrict access to their posts.",
      "editor": "select",
      "default": "any",
      "enum": [
        "any",
        "public",
        "protected"
      ],
      "enumTitles": [
        "Any visibility",
        "Public accounts only",
        "Protected accounts only"
      ]
    },
    "requireWebsite": {
      "title": "Require a website",
      "type": "boolean",
      "description": "Only save accounts that include a website URL in their X profile. Useful for finding organizations, businesses, researchers, creators, and potential leads.",
      "default": false
    },
    "locationKeywords": {
      "title": "Profile location contains",
      "type": "array",
      "description": "Enter one location phrase per line. An account is kept when its self-reported profile location contains at least one phrase, without regard to letter case. For example, San Francisco matches San Francisco, CA and San Francisco Bay Area, but does not automatically match the abbreviation SF.",
      "editor": "stringList",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "default": []
    },
    "createdAfter": {
      "title": "Created on or after",
      "type": "string",
      "description": "Only save accounts created on or after this date. Leave empty to apply no earliest creation date. Dates are evaluated in UTC.",
      "editor": "datepicker",
      "dateType": "absolute"
    },
    "createdBefore": {
      "title": "Created on or before",
      "type": "string",
      "description": "Only save accounts created on or before this date. Leave empty to apply no latest creation date. The entire selected day is included and dates are evaluated in UTC.",
      "editor": "datepicker",
      "dateType": "absolute"
    }
  },
  "required": [
    "searchQueries",
    "maxUsersPerQuery"
  ]
}
