{
  "title": "Instagram Posts - Captions, Likes & Reels",
  "type": "object",
  "schemaVersion": 1,
  "description": "Minimal input {\"postUrls\": [\"https://www.instagram.com/p/Dfc1mYxFevS/\", \"https://www.instagram.com/p/DfahZrMjAqq/\"], \"maxResults\": 3, \"maxSources\": 2}. $0.002 per valid source check plus $0.002 per delivered post. Filtered sources are paid. No start fee. maxTotalChargeUsd is a run option.",
  "required": [
    "postUrls"
  ],
  "properties": {
    "postUrls": {
      "title": "Post urls",
      "description": "Required full public post URLs, e.g. an Instagram /p/CODE/ or Facebook /Page/posts/ID URL as shown in the example. Up to 100 unique URLs. No profiles, feeds, groups or private posts. Each valid post check costs a source fee plus a delivered-row fee; blocked or unavailable targets have no event fee.",
      "type": "array",
      "default": [],
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "prefill": [
        "https://www.instagram.com/p/Dfc1mYxFevS/",
        "https://www.instagram.com/p/DfahZrMjAqq/"
      ],
      "sectionCaption": "Sources"
    },
    "maxResults": {
      "title": "Max results",
      "description": "Maximum paid rows across the ENTIRE run after filters, exclusions and deduplication; default 20, range 1–1000. Earlier targets can fill it. Set maxTotalChargeUsd in Apify run options for a dollar cap, not inside input JSON. A result cap does not expand source coverage.",
      "type": "integer",
      "default": 20,
      "minimum": 1,
      "maximum": 1000,
      "prefill": 3,
      "sectionCaption": "Results and filters"
    },
    "minLikes": {
      "title": "Min likes",
      "description": "Minimum public like count, e.g. 100; 0 disables. Hidden or missing likes fail an active threshold. Filters supplied posts/videos before maxResults, without discovering new URLs. No filter fee; valid source checks remain paid.",
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "maximum": 1000000000000
    },
    "minViews": {
      "title": "Min views",
      "description": "Minimum public view count, e.g. 1000; 0 disables. Missing views fail an active threshold. Instagram often omits views even for reels; leave 0 when views are not required. Filters supplied URLs before maxResults. No filter fee; valid checks remain paid.",
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "maximum": 1000000000000
    },
    "mediaTypes": {
      "title": "Media types",
      "description": "Instagram types to keep, e.g. [\"reel\", \"carousel\"]. Allowed: image, video, reel, carousel. [] keeps all. One carousel is one row, not one row per slide. Filters supplied URLs before maxResults; no profile discovery. Valid source checks remain paid.",
      "type": "array",
      "default": [],
      "editor": "stringList",
      "items": {
        "type": "string"
      }
    },
    "publishedAfter": {
      "title": "Published after",
      "description": "Optional ISO date/time, e.g. \"2026-11-01T00:00:00Z\"; \"\" disables. Keeps social posts/videos published at or after it. Date-only values use midnight UTC. Filters supplied URLs only, without discovering posts or reducing the source fee. Applied before maxResults.",
      "type": "string",
      "default": "",
      "editor": "textfield"
    },
    "textContains": {
      "title": "Text contains",
      "description": "Optional case-insensitive OR phrases, e.g. [\"python\", \"developer\"]. Matches title, caption/snippet/description, author, company or developer fields when present. [] disables. Filters before maxResults. Skipped rows have no row fee; valid source checks are paid.",
      "type": "array",
      "default": [],
      "editor": "stringList",
      "items": {
        "type": "string"
      }
    },
    "maxSources": {
      "title": "Max sources",
      "description": "Maximum attempted source targets across the run; default 20, range 1–100. One post/video URL, Indeed query/location/country, or Play query-or-ID/country counts as one. Failed targets count toward this limit but have no event fee. Valid filtered sources are paid; retries add no source 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. [] on a first run; up to 5,000. Skips identities even when changed. For Google Play use the full app:country:language id. Excluded rows are free but valid 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 hashes. Skips unchanged observations while allowing updates. Do not also exclude IDs when changes matter. Time, search position, image URLs and relative-date labels do not affect hashes. Valid source checks remain paid; no stored history.",
      "type": "array",
      "default": [],
      "editor": "stringList",
      "items": {
        "type": "string"
      }
    }
  }
}
