{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Lead And Intent Finder",
    "description": "Find warm B2B leads on Reddit the moment they show buying or help intent. Scans posts & comments for phrases like \"best CRM for…\" or \"alternative to…\", matches your keywords, and scores each lead 0–100. No API key, no browser. Push to CRM, Slack, or Sheets.",
    "version": "0.0",
    "x-build-id": "v6c46fOroOKzJXbdD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~reddit-lead-and-intent-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-reddit-lead-and-intent-finder",
        "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/b2b_leads~reddit-lead-and-intent-finder/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-reddit-lead-and-intent-finder",
        "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/b2b_leads~reddit-lead-and-intent-finder/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-reddit-lead-and-intent-finder",
        "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": {
          "topicKeywords": {
            "title": "Topic keywords",
            "type": "array",
            "description": "Product category, competitor names, or topics a lead must mention (e.g. \"CRM\", \"hubspot\", \"project management\"). By default a lead must match a topic keyword AND an intent phrase. Highly recommended.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Queries to run through Reddit search when using search mode (site-wide or scoped to the subreddits below). Example: \"best CRM for startups\", \"hubspot alternative\".",
            "items": {
              "type": "string"
            }
          },
          "subreddits": {
            "title": "Subreddits (or all of Reddit)",
            "type": "array",
            "description": "Subreddits to scan for recent posts/comments (scan mode) and to scope search queries. To search across ALL of Reddit instead of specific communities, add a single entry: all. Otherwise list one or more subreddit names or URLs (e.g. smallbusiness, r/sales).",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Discovery mode",
            "enum": [
              "search",
              "scan",
              "both"
            ],
            "type": "string",
            "description": "search = run your queries through Reddit search; scan = pull recent posts/comments from subreddits; both = do both.",
            "default": "both"
          },
          "stream": {
            "title": "Content to scan",
            "enum": [
              "posts",
              "comments",
              "both"
            ],
            "type": "string",
            "description": "Which content to analyse in scan mode. Search mode always returns posts.",
            "default": "posts"
          },
          "intentPresets": {
            "title": "Intent categories",
            "type": "array",
            "description": "Built-in intent categories to detect. Leave empty to use all of them.",
            "items": {
              "type": "string",
              "enum": [
                "seeking_recommendation",
                "alternative_seeking",
                "problem_help",
                "pain_point",
                "buying_intent"
              ],
              "enumTitles": [
                "Seeking recommendation",
                "Alternative seeking",
                "Problem / help",
                "Pain point",
                "Buying intent"
              ]
            },
            "default": [
              "seeking_recommendation",
              "alternative_seeking",
              "problem_help",
              "pain_point",
              "buying_intent"
            ]
          },
          "customIntentPhrases": {
            "title": "Custom intent phrases",
            "type": "array",
            "description": "Extra phrases (or regex when match mode is regex) that signal intent, added on top of the selected presets.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Match mode",
            "enum": [
              "substring",
              "word",
              "regex"
            ],
            "type": "string",
            "description": "substring = phrase appears anywhere; word = whole-word match; regex = treat every phrase as a regular expression.",
            "default": "substring"
          },
          "caseSensitive": {
            "title": "Case sensitive matching",
            "type": "boolean",
            "description": "Match intent phrases and custom patterns case-sensitively. Off by default.",
            "default": false
          },
          "requireTopicMatch": {
            "title": "Require a topic keyword match",
            "type": "boolean",
            "description": "When on, a lead must match at least one topic keyword AND an intent phrase. Turn off to return any intent match.",
            "default": true
          },
          "ignoreKeywords": {
            "title": "Ignore keywords",
            "type": "array",
            "description": "Skip any post/comment that contains one of these words (e.g. giveaway, hiring, meme).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchSort": {
            "title": "Search sort",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "comments"
            ],
            "type": "string",
            "description": "Sort order for Reddit search results (search mode).",
            "default": "relevance"
          },
          "searchTime": {
            "title": "Search time window",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Time filter for search results (applies to relevance/top sorts).",
            "default": "all"
          },
          "resultsPerQuery": {
            "title": "Results per query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many search results to examine per query (1–1000). Pages in batches of 100.",
            "default": 50
          },
          "lookback": {
            "title": "Scan lookback",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many recent posts/comments to scan per subreddit in scan mode (1–1000). Pages in batches of 100.",
            "default": 50
          },
          "enrichAuthor": {
            "title": "Enrich author profile",
            "type": "boolean",
            "description": "Fetch each lead author's karma, account age, and verified status. Also enables bot/throwaway filtering.",
            "default": false
          },
          "minAccountAgeDays": {
            "title": "Minimum account age (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop leads whose author account is younger than this many days. 0 = no minimum. Requires author enrichment (auto-enabled when set).",
            "default": 0
          },
          "minKarma": {
            "title": "Minimum total karma",
            "minimum": 0,
            "type": "integer",
            "description": "Drop leads whose author has less than this total karma. 0 = no minimum. Requires author enrichment (auto-enabled when set).",
            "default": 0
          },
          "minRelevance": {
            "title": "Minimum relevance score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return leads scoring at or above this value (0–100). Each lead's relevance score blends four signals: how strong the intent is, how many of your topic keywords it matches, how recent it is, and how much engagement (upvotes) it has — see scoreBreakdown on every lead. Guide: 0 = keep all matches (most volume); 40–55 = balanced quality (good default); 60–75 = only strong, on-topic, high-intent leads; 80+ = very strict, fewer but hottest leads.",
            "default": 0
          },
          "minScore": {
            "title": "Minimum Reddit upvotes",
            "type": "integer",
            "description": "Only keep posts/comments with at least this many net upvotes (upvotes minus downvotes — the number shown on Reddit). 0 = keep everything (recommended for finding fresh leads, since brand-new posts usually sit at 1). Set to 5–20 to focus on threads that already have some visibility/validation. Higher values can hide new leads.",
            "default": 0
          },
          "includeNsfw": {
            "title": "Include NSFW content",
            "type": "boolean",
            "description": "Include posts marked over_18 (NSFW). Off by default.",
            "default": false
          },
          "excludeLockedOrRemoved": {
            "title": "Exclude locked / removed",
            "type": "boolean",
            "description": "Skip locked or removed posts (and stickied comments) since you can't reply to them.",
            "default": true
          },
          "authorAllowlist": {
            "title": "Author allowlist",
            "type": "array",
            "description": "If set, only return leads from these usernames.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "authorDenylist": {
            "title": "Author denylist",
            "type": "array",
            "description": "Never return leads from these usernames.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sinceId": {
            "title": "Since fullname (incremental)",
            "type": "string",
            "description": "Optional Reddit fullname (e.g. t3_abc123). Only return leads newer than this ID. Scheduled runs also persist a per-source cursor automatically.",
            "default": ""
          },
          "maxLeads": {
            "title": "Max leads",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many leads. 0 = unlimited.",
            "default": 0
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. Every lead is always saved to the run's dataset — this webhook is an ADDITIONAL real-time push. When set, each new lead is also POSTed to this URL (CRM, Slack incoming webhook, Zapier, Make, Google Sheets).",
            "default": ""
          },
          "webhookFormat": {
            "title": "Webhook format",
            "enum": [
              "json",
              "slack"
            ],
            "type": "string",
            "description": "json = full lead object; slack = Slack-friendly message payload.",
            "default": "json"
          },
          "includeRaw": {
            "title": "Include raw Reddit JSON",
            "type": "boolean",
            "description": "Attach the full raw Reddit object under the raw field (larger output).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy settings",
            "type": "object",
            "description": "Use Apify Proxy with US Residential for best results. Leave the default unless you know you need something else.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}