{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Competitor Intelligence",
    "description": "Compare your brand against competitors on Reddit: brand-specific sentiment, head-to-head comparisons, recommendation and complaint share, a switching matrix, strengths, weaknesses and feature gaps from public posts and comments. Optional period monitoring. No Reddit login or API key.",
    "version": "1.0",
    "x-build-id": "9DB2zUoa6876P1pkb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~reddit-competitor-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-reddit-competitor-intelligence",
        "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/coregent~reddit-competitor-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-coregent-reddit-competitor-intelligence",
        "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/coregent~reddit-competitor-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-reddit-competitor-intelligence",
        "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": {
          "primaryBrand": {
            "title": "Primary brand",
            "type": "object",
            "description": "Your brand or product. Aliases and the domain are other ways people write it; a match on any of them counts for the brand. Leave the name empty to run the example comparison (Notion vs Obsidian).",
            "properties": {
              "name": {
                "title": "Name",
                "type": "string",
                "description": "The brand as people write it, e.g. Notion.",
                "editor": "textfield"
              },
              "aliases": {
                "title": "Aliases (optional)",
                "type": "array",
                "description": "Other names or spellings, e.g. Notion AI.",
                "editor": "stringList"
              },
              "domain": {
                "title": "Domain (optional)",
                "type": "string",
                "description": "The website, e.g. notion.so. Writing it counts as a mention of the brand.",
                "editor": "textfield"
              }
            },
            "default": {}
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "1–20 competitors. Only the name is required; aliases and the domain work as for your brand.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "title": "Name",
                  "type": "string",
                  "description": "The competitor as people write it, e.g. Coda.",
                  "editor": "textfield"
                },
                "aliases": {
                  "title": "Aliases (optional)",
                  "type": "array",
                  "description": "Other names or spellings, e.g. Coda.io.",
                  "editor": "stringList"
                },
                "domain": {
                  "title": "Domain (optional)",
                  "type": "string",
                  "description": "The website, e.g. coda.io.",
                  "editor": "textfield"
                }
              },
              "required": [
                "name"
              ]
            },
            "default": []
          },
          "categoryTerms": {
            "title": "Category terms (optional)",
            "type": "array",
            "description": "What the brands are, e.g. note taking app, project management, team wiki. Used to search for \"best <category>\" and \"<category> recommendations\" threads, where comparisons often omit brand names from the title, and to confirm ambiguous brand names.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "subreddits": {
            "title": "Subreddits (optional)",
            "type": "array",
            "description": "Restrict the analysis to these communities. SaaS, r/SaaS and https://www.reddit.com/r/SaaS/ all work. Leave empty to search all of Reddit. Every query runs in every subreddit, so each subreddit multiplies the queries used.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "timeWindow": {
            "title": "Time window",
            "enum": [
              "24_HOURS",
              "7_DAYS",
              "30_DAYS",
              "90_DAYS",
              "180_DAYS",
              "1_YEAR",
              "ALL_AVAILABLE"
            ],
            "type": "string",
            "description": "How far back to look. 90 and 180 days are searched as the past year and cut at the window boundary.",
            "default": "30_DAYS"
          },
          "includePosts": {
            "title": "Include posts",
            "type": "boolean",
            "description": "Analyze posts whose title or body names a brand.",
            "default": true
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Analyze comments too: searched directly, and read in the threads of brand posts. Comparisons, switching stories and recommendations mostly live in comments.",
            "default": true
          },
          "maxPostsPerBrand": {
            "title": "Max posts per brand",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many posts the queries of one brand may bring in, across all its queries and subreddits (each query adds at most 25). Category queries share one more budget of the same size.",
            "default": 20
          },
          "maxCommentsPerPost": {
            "title": "Max comments per thread",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many comments to read in each thread of a brand post, top comments first. 0 reads no threads (comment search still runs while \"Include comments\" is on).",
            "default": 10
          },
          "maxDiscoveryQueries": {
            "title": "Query budget",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many searches to run in total (one query in one subreddit is one search). Queries are taken in priority order, so a small budget still covers every brand name and every head-to-head pair first. 100 gives a broad analysis of 3–5 brands.",
            "default": 12
          },
          "sort": {
            "title": "Discovery sort",
            "enum": [
              "RELEVANCE_NEW",
              "NEW",
              "TOP",
              "COMMENTS"
            ],
            "type": "string",
            "description": "How Reddit orders search results. Relevance + newest runs every query by relevance and each brand's name newest-first too, then merges them.",
            "default": "RELEVANCE_NEW"
          },
          "minimumScore": {
            "title": "Minimum score",
            "type": "integer",
            "description": "Ignore posts and comments with a lower Reddit score. 0 means no minimum. A hidden score is never treated as low.",
            "default": 0
          },
          "minimumComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Ignore posts (and comments in threads) with fewer comments. 0 means no minimum.",
            "default": 0
          },
          "monitorKey": {
            "title": "Monitor key (optional)",
            "type": "string",
            "description": "A name for a recurring analysis, e.g. project-management-competitors. Runs with the same key remember what they delivered and compare each period with the previous one of the same length: share, sentiment, recommendation and complaint deltas, momentum and alerts. The first run is the baseline.",
            "default": ""
          },
          "onlyNewEvidence": {
            "title": "Only new evidence",
            "type": "boolean",
            "description": "Deliver (and bill) only evidence not delivered by an earlier run with the same monitor key. The summaries still describe the whole window. Without a monitor key, one is derived from your brands and settings.",
            "default": false
          },
          "excludeAuthors": {
            "title": "Exclude authors",
            "type": "array",
            "description": "Reddit usernames to ignore, e.g. your own team's accounts.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeSubreddits": {
            "title": "Exclude subreddits",
            "type": "array",
            "description": "Communities to ignore, e.g. a brand's own support subreddit.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeDomains": {
            "title": "Exclude domains",
            "type": "array",
            "description": "Ignore link posts to these domains, e.g. a review site you do not trust.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludePromotionalPosts": {
            "title": "Exclude promotional posts",
            "type": "boolean",
            "description": "Leave out posts and comments with referral or affiliate links, \"I built…\" launches and likely vendor or employee accounts. Detection is rule-based and imperfect, so it is off by default; the sourceAffiliation field flags likely vendor accounts either way.",
            "default": false
          },
          "excludeBots": {
            "title": "Exclude bots",
            "type": "boolean",
            "description": "Leave out AutoModerator, accounts named *bot and \"I am a bot\" posts.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Datacenter proxy is used by default. Apify Residential proxy is not supported — a run that selects it uses Apify Datacenter instead, with a warning; to use a residential provider, add your own under Custom proxy URLs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Searches and threads read in parallel. Reddit throttles fast clients, so higher is not always faster.",
            "default": 3
          },
          "debugMode": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Write every analyzed source, kept or dropped, with its readings to the DEBUG_EVIDENCE record.",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}