{
  "title": "Facebook Pages - Followers, Categories & Websites",
  "type": "object",
  "schemaVersion": 1,
  "description": "Minimal input {\"pageUrls\": [\"https://www.facebook.com/Google/\", \"https://www.facebook.com/Starbucks/\"], \"maxResults\": 3, \"maxSources\": 2}. $0.002 per valid source check plus $0.002 per delivered page. Empty or filtered checks are paid. No start fee. maxTotalChargeUsd is a run option.",
  "required": [
    "pageUrls"
  ],
  "properties": {
    "pageUrls": {
      "title": "Page urls",
      "description": "Required named Facebook business Page URLs or slugs, e.g. [\"https://www.facebook.com/Google/\"]. Up to 100. No numeric IDs, profile.php, personal profiles, groups or search. Inputs run in order. Each valid Page check has a source fee plus a fee for its delivered row.",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "prefill": [
        "https://www.facebook.com/Google/",
        "https://www.facebook.com/Starbucks/"
      ],
      "sectionCaption": "Sources"
    },
    "maxResults": {
      "title": "Max results",
      "description": "Maximum paid rows across the ENTIRE run after filters, deduplication and exclusions. Default 20; range 1–1000. Earlier targets can fill it. Set maxTotalChargeUsd in Apify run options for a dollar cap, not inside this input JSON.",
      "type": "integer",
      "default": 20,
      "minimum": 1,
      "maximum": 1000,
      "prefill": 3,
      "sectionCaption": "Results and filters"
    },
    "minFollowers": {
      "title": "Min followers",
      "description": "Minimum profile/Page/company follower count, e.g. 1000. 0 disables. Missing values fail an active filter; source-rounded values remain approximate. Filters before maxResults. No extra filter fee; successfully checked sources are paid.",
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "maximum": 1000000000000
    },
    "verifiedOnly": {
      "title": "Verified only",
      "description": "false (default) keeps all. true keeps only source-confirmed verified profiles/Pages; missing status fails this filter. Verification is the platform badge, not an independent identity check. Filters before maxResults; no extra filter fee.",
      "type": "boolean",
      "default": false
    },
    "textContains": {
      "title": "Text contains",
      "description": "Optional case-insensitive OR phrases, e.g. [\"software\", \"education\"]. Matches name, bio/description, industry or category when present. [] disables. Applied before maxResults; skipped rows have no row fee, but successful source checks are paid.",
      "type": "array",
      "default": [],
      "editor": "stringList",
      "items": {
        "type": "string"
      }
    },
    "hasWebsite": {
      "title": "Has website",
      "description": "\"any\" (default) keeps all. \"yes\" keeps rows with a published website/bio link; \"no\" keeps rows without one. The link is not fetched or verified for reachability. App Store uses sellerUrl. Filters before maxResults; no filter fee, source checks remain paid.",
      "type": "string",
      "default": "any",
      "enum": [
        "any",
        "yes",
        "no"
      ]
    },
    "maxSources": {
      "title": "Max sources",
      "description": "Maximum source targets attempted across the run, default 20; range 1–100. One profile/Page/company or one app query/ID and country is one source. Failed attempts count toward this limit but have no source fee. Valid empty/filtered sources are paid. No extra filter fee.",
      "type": "integer",
      "default": 20,
      "minimum": 1,
      "maximum": 100,
      "sectionCaption": "Source budget and history"
    },
    "excludeIds": {
      "title": "Exclude ids",
      "description": "Prior dataset id values, e.g. [] initially; up to 5,000. Skips identities even when they changed. App IDs include country, e.g. \"310633997:DE\". Excluded rows are free, source checks are paid. Keep history in your workflow; no automatic persistence.",
      "type": "array",
      "default": [],
      "editor": "stringList",
      "items": {
        "type": "string"
      }
    },
    "excludeContentHashes": {
      "title": "Exclude content hashes",
      "description": "Prior content_hash values, e.g. [] initially; up to 5,000 SHA-256 values. Skips unchanged observations but allows changed fields through. Time, query, position and image URL are excluded from the hash. Do not also exclude IDs when changes matter. Source checks remain paid; no stored history.",
      "type": "array",
      "default": [],
      "editor": "stringList",
      "items": {
        "type": "string"
      }
    }
  }
}
