{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Conversation Monitor — Sprinklr Alternative",
    "description": "Monitor public Reddit conversations for explicit brand or topic queries. Export deduplicated posts, subreddit details, engagement, timestamps, source URLs, and rule-based sentiment and urgency cues for triage.",
    "version": "0.4",
    "x-build-id": "ubNcDXNzoW2ASOhKq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~sprinklr-alternative/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-sprinklr-alternative",
        "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/khadinakbar~sprinklr-alternative/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-sprinklr-alternative",
        "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/khadinakbar~sprinklr-alternative/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-sprinklr-alternative",
        "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",
        "required": [
          "watchQueries"
        ],
        "properties": {
          "watchQueries": {
            "title": "Brands, competitors, or topics to monitor",
            "minItems": 1,
            "maxItems": 5,
            "type": "array",
            "description": "One to five literal public-conversation search queries, such as OpenAI, \"Acme Corp\", or \"Acme Corp\" pricing. Each query is searched independently and retained rows name every matching query. Use search terms, not account passwords, cookies, private URLs, or a request to contact anyone.",
            "items": {
              "type": "string"
            }
          },
          "timeframe": {
            "title": "Conversation timeframe",
            "enum": [
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Reddit search window for each watch query. Choose day for fast-moving incidents, week for a normal pulse, month for broader review, year for a longer lookback, or all for provider-available history. Defaults to week; it does not create a recurring schedule.",
            "default": "week"
          },
          "sort": {
            "title": "Conversation ordering",
            "enum": [
              "new",
              "relevance",
              "top",
              "comment_count"
            ],
            "type": "string",
            "description": "Ordering requested from the public Reddit search source. New is best for current monitoring, relevance finds close text matches, top surfaces high-scoring posts, and comment_count surfaces discussion-heavy posts. Defaults to new; this is not a sentiment ranking.",
            "default": "new"
          },
          "subreddits": {
            "title": "Only these subreddits (optional)",
            "type": "array",
            "description": "Optional subreddit names without r/, up to 10, for example ChatGPT. Each watch name is searched inside each listed subreddit, so watch names times subreddits must be 25 or fewer. Leave empty to search all of Reddit.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "onlyNewSinceLastRun": {
            "title": "Only posts not seen in earlier runs",
            "type": "boolean",
            "description": "When on, posts already returned by an earlier run of the same watch names and subreddits in your account are skipped and not charged, so a daily run lists only what is new. The first run returns everything. Off by default. This does not create a schedule; set one up yourself if you want daily runs.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum conversations to return",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Whole-run maximum number of deduplicated public conversations saved, from 1 to 500. The Actor pages through the source until this many matching posts are found or results run out, and never saves or charges more. It is not a per-name cap. Free plan runs are limited to 25.",
            "default": 50
          },
          "excludeKeywords": {
            "title": "Keywords to exclude",
            "type": "array",
            "description": "Optional case-insensitive literal terms that remove matching post titles or bodies, such as giveaway or hiring. Leave empty to retain all otherwise eligible conversations. These are not regular expressions, Boolean search syntax, or platform moderation rules.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "responseFormat": {
            "title": "Conversation detail level",
            "enum": [
              "concise",
              "detailed"
            ],
            "type": "string",
            "description": "Concise returns a bounded text excerpt for agent workflows; detailed returns the source-supplied title and body within a safe size limit. Both formats retain source URL, subreddit, timestamps, query labels, and deterministic signals. Defaults to concise; it does not generate an AI summary.",
            "default": "concise"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}