{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Lead Finder: Find Buying Intent Leads",
    "description": "Find Reddit posts with buying intent: people asking for a tool like yours, unhappy with a competitor, or ready to switch. Delivered scored, ranked, and with a suggested reply on each. No API key, no login.",
    "version": "0.1",
    "x-build-id": "TcAidHhpJayIcRDd1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/labrat011~reddit-lead-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-labrat011-reddit-lead-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/labrat011~reddit-lead-finder/runs": {
      "post": {
        "operationId": "runs-sync-labrat011-reddit-lead-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/labrat011~reddit-lead-finder/run-sync": {
      "post": {
        "operationId": "run-sync-labrat011-reddit-lead-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",
        "required": [
          "productDescription",
          "keywords"
        ],
        "properties": {
          "productDescription": {
            "title": "What you sell (1-2 sentences)",
            "type": "string",
            "description": "Used to match buying intent. Example: 'A lightweight time-tracking app for freelance designers.'"
          },
          "keywords": {
            "title": "Seed keywords / phrases",
            "type": "array",
            "description": "Search terms to seed discovery. Include your product category plus competitor names. Optional if you supply a keywords dataset or file below.",
            "items": {
              "type": "string"
            }
          },
          "keywordsDatasetId": {
            "title": "Bulk keywords: Apify dataset ID (optional)",
            "type": "string",
            "description": "Dataset whose items are keyword strings or objects with a 'keyword' field. Merged with the list above."
          },
          "keywordsFileUrl": {
            "title": "Bulk keywords: CSV or TXT URL (optional)",
            "type": "string",
            "description": "Public link to a .csv (column 'keyword') or newline-delimited .txt. Merged with the list above."
          },
          "competitors": {
            "title": "Competitor names (optional)",
            "type": "array",
            "description": "Posts mentioning these plus complaint or switching language score higher.",
            "items": {
              "type": "string"
            }
          },
          "subreddits": {
            "title": "Restrict to subreddits (optional)",
            "type": "array",
            "description": "Leave empty to search all of Reddit.",
            "items": {
              "type": "string"
            }
          },
          "intentTypes": {
            "title": "Intent types to surface",
            "type": "array",
            "description": "Which kinds of buying signal to return.",
            "items": {
              "type": "string",
              "enum": [
                "seeking_recommendation",
                "competitor_complaint",
                "switching_intent",
                "problem_unaware",
                "feature_request"
              ],
              "enumTitles": [
                "Seeking a recommendation",
                "Complaining about a competitor",
                "Wants to switch tools",
                "Has the problem, unaware of solutions",
                "Requesting a feature"
              ]
            },
            "default": [
              "seeking_recommendation",
              "competitor_complaint",
              "switching_intent"
            ]
          },
          "minIntentScore": {
            "title": "Minimum intent score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Leads below this score are not returned and never charged.",
            "default": 55
          },
          "timeFilter": {
            "title": "Recency",
            "enum": [
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "How far back to search. Fresher leads are easier to act on.",
            "default": "month"
          },
          "maxLeads": {
            "title": "Max qualified leads",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Stop after this many qualified leads are delivered (1-500).",
            "default": 50
          },
          "scoringMode": {
            "title": "Scoring engine",
            "enum": [
              "lexicon",
              "llm"
            ],
            "type": "string",
            "description": "lexicon is deterministic and needs no API key. llm is sharper but needs your own LLM API key.",
            "default": "lexicon"
          },
          "openaiApiKey": {
            "title": "LLM API key (only if scoring engine = llm)",
            "type": "string",
            "description": "Your own key. Used only for scoring. Never stored."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Passed through to the underlying Reddit scraper. Residential recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}