{
  "openapi": "3.0.1",
  "info": {
    "title": "Content Intelligence Bundle",
    "description": "Discover product launch monitoring signals, competitors, Reddit discussions, YouTube videos, content opportunities, and market signals, then save scored AI-ready intelligence records.",
    "version": "0.3",
    "x-build-id": "VixMcKYad8h5Gydrf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/runtime~content-intelligence-bundle/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-runtime-content-intelligence-bundle",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/runtime~content-intelligence-bundle/runs": {
      "post": {
        "operationId": "runs-sync-runtime-content-intelligence-bundle",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/runtime~content-intelligence-bundle/run-sync": {
      "post": {
        "operationId": "run-sync-runtime-content-intelligence-bundle",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "workflow": {
            "title": "Workflow",
            "enum": [
              "source-discovery",
              "startup-lead-radar",
              "youtube-trend-watch",
              "competitor-content-monitor",
              "custom"
            ],
            "type": "string",
            "description": "Business workflow label stored on each output item.",
            "default": "source-discovery"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Single search query. Used when Search queries is empty.",
            "default": "AI startup launch"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Batch queries, one per line. When non-empty, this overrides Search query.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "includeDuckDuckGo": {
            "title": "Include web discovery",
            "type": "boolean",
            "description": "Run direct DuckDuckGo discovery inside this bundle Actor. This does not call the standalone DuckDuckGo Actor.",
            "default": true
          },
          "searchMode": {
            "title": "Search mode",
            "enum": [
              "default",
              "news",
              "videos"
            ],
            "type": "string",
            "description": "DuckDuckGo vertical to query.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max output records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum normalized records saved by the bundle.",
            "default": 25
          },
          "maxResultsPerSource": {
            "title": "Max records per source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum raw records collected from each enabled source before normalization.",
            "default": 10
          },
          "maxSearchPages": {
            "title": "Max search pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum DuckDuckGo pages per query.",
            "default": 1
          },
          "extractEmails": {
            "title": "Extract emails",
            "type": "boolean",
            "description": "Extract emails from titles and snippets when available.",
            "default": false
          },
          "includeProductHunt": {
            "title": "Include Product Hunt",
            "type": "boolean",
            "description": "Run direct Product Hunt leaderboard discovery inside this bundle Actor. This does not call the standalone Product Hunt Actor.",
            "default": true
          },
          "productHuntStartUrls": {
            "title": "Product Hunt leaderboard URLs",
            "type": "string",
            "description": "Optional Product Hunt daily leaderboard URLs, one per line. If empty, Product Hunt date is used; if both are empty, yesterday's leaderboard is used.",
            "default": ""
          },
          "productHuntDate": {
            "title": "Product Hunt date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Daily Product Hunt leaderboard date in YYYY-MM-DD format. Used when no Product Hunt leaderboard URLs are provided."
          },
          "includeReddit": {
            "title": "Include Reddit",
            "type": "boolean",
            "description": "Run direct Reddit search/subreddit discovery inside this bundle Actor. Uses Reddit JSON with RSS fallback and does not call the standalone Reddit Actor.",
            "default": true
          },
          "redditSearchQuery": {
            "title": "Reddit search query",
            "type": "string",
            "description": "Single Reddit search query. Used when Reddit search queries is empty. Defaults to the main search query.",
            "default": ""
          },
          "redditSearchQueries": {
            "title": "Reddit search queries",
            "type": "array",
            "description": "Batch Reddit queries, one per line. When non-empty, this overrides Reddit search query.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "redditSubreddits": {
            "title": "Reddit subreddits",
            "type": "array",
            "description": "Optional subreddit names or URLs. When set with a Reddit search query, search is restricted to each subreddit. When no query is set, the bundle collects subreddit listings.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "redditSort": {
            "title": "Reddit search sort",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "comments"
            ],
            "type": "string",
            "description": "Sort order for Reddit search.",
            "default": "relevance"
          },
          "redditTime": {
            "title": "Reddit time window",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Time window for Reddit search/top listings.",
            "default": "month"
          },
          "includeYouTube": {
            "title": "Include YouTube",
            "type": "boolean",
            "description": "Run direct YouTube lightweight discovery inside this bundle Actor. Supports YouTube search pages and channel RSS feeds without calling the standalone YouTube Actors.",
            "default": false
          },
          "youtubeSearchQuery": {
            "title": "YouTube search query",
            "type": "string",
            "description": "Single YouTube search query. Leave empty to skip YouTube search unless YouTube channels are provided.",
            "default": ""
          },
          "youtubeSearchQueries": {
            "title": "YouTube search queries",
            "type": "array",
            "description": "Batch YouTube queries, one per line. When non-empty, this overrides YouTube search query.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "youtubeChannel": {
            "title": "YouTube channel",
            "type": "string",
            "description": "Single YouTube channel URL, @handle, or channel ID for RSS-based latest video discovery.",
            "default": ""
          },
          "youtubeChannels": {
            "title": "YouTube channels",
            "type": "array",
            "description": "Batch YouTube channels, one per line. Supports channel URLs, @handles, and channel IDs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sourceItems": {
            "title": "Source items",
            "type": "array",
            "description": "Optional raw items from Product Hunt, YouTube, Reddit, DuckDuckGo, or another source to normalize into bundle records.",
            "items": {
              "type": "object"
            },
            "default": []
          },
          "mockMode": {
            "title": "Mock mode",
            "type": "boolean",
            "description": "Generate sample source items without network access. Useful for smoke tests and schema checks.",
            "default": false
          },
          "failOnNoResults": {
            "title": "Fail on no results",
            "type": "boolean",
            "description": "Fail the run if no normalized records are produced.",
            "default": true
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Enable Apify Proxy for direct web discovery. Keep this enabled when Reddit is included; direct Reddit JSON/RSS commonly blocks cloud runs and the DuckDuckGo fallback is more reliable through proxy.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Advanced Apify Proxy or custom proxy settings for direct web discovery.",
            "default": {}
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}