{
  "openapi": "3.0.1",
  "info": {
    "title": "Forum Pain Finder (Hacker News + Stack Exchange)",
    "description": "Validate product ideas with real user pain: search Hacker News and Stack Exchange for any topic and get only the posts that complain, wish for a tool, look for an alternative or say they would pay. Rule-based, no API key, no LLM.",
    "version": "0.1",
    "x-build-id": "Q2EhfNXk5r1MsBnGg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/happysproutstore~forum-pain-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-happysproutstore-forum-pain-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/happysproutstore~forum-pain-finder/runs": {
      "post": {
        "operationId": "runs-sync-happysproutstore-forum-pain-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/happysproutstore~forum-pain-finder/run-sync": {
      "post": {
        "operationId": "run-sync-happysproutstore-forum-pain-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": [
          "searchTerms"
        ],
        "properties": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Topics or product categories to search, e.g. \"invoice software\", \"habit tracker\", \"notion alternative\". Each term is searched separately and gets its own summary.",
            "default": [
              "habit tracker"
            ],
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Where to search. Both use free official APIs (Algolia HN Search API and Stack Exchange API 2.3).",
            "items": {
              "type": "string",
              "enum": [
                "hackernews",
                "stackexchange"
              ],
              "enumTitles": [
                "Hacker News (stories + comments)",
                "Stack Exchange sites"
              ]
            },
            "default": [
              "hackernews",
              "stackexchange"
            ]
          },
          "hackerNewsContent": {
            "title": "Hacker News content",
            "enum": [
              "both",
              "stories",
              "comments"
            ],
            "type": "string",
            "description": "Which Hacker News items to search. Comments hold most of the complaints and wishes.",
            "default": "both"
          },
          "stackExchangeSites": {
            "title": "Stack Exchange sites",
            "type": "array",
            "description": "Site API names, e.g. softwarerecs, webapps, superuser, stackoverflow, apple, android, pm, workplace, freelancing, money. Each site costs one or more API requests per term (anonymous limit: 300 requests per day per IP).",
            "default": [
              "softwarerecs",
              "webapps",
              "superuser"
            ],
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Oldest post date. Absolute (2024-01-31) or relative (\"6 months\", \"2 years\", \"30 days\"). Empty means no lower limit. Stack Exchange activity has dropped in recent years, so short ranges return few Stack Exchange posts.",
            "default": "5 years"
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Newest post date, absolute (2025-12-31) or relative (\"1 month\"). Empty means today."
          },
          "maxPostsPerSource": {
            "title": "Max posts scanned per source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many posts to scan per term for Hacker News and for each Stack Exchange site (most relevant first). Only posts with a signal become rows and are charged.",
            "default": 300
          },
          "signalTypes": {
            "title": "Signal types to keep",
            "type": "array",
            "description": "Only posts with at least one of these signals are returned.",
            "items": {
              "type": "string",
              "enum": [
                "willing_to_pay",
                "wish",
                "alternative_seeking",
                "pain"
              ],
              "enumTitles": [
                "Willing to pay (\"I'd pay for...\")",
                "Wish / feature request (\"I wish there was...\")",
                "Looking for an alternative (\"alternative to...\")",
                "Pain / complaint (\"frustrating\", \"too expensive\")"
              ]
            },
            "default": [
              "willing_to_pay",
              "wish",
              "alternative_seeking",
              "pain"
            ]
          },
          "requireTermMatch": {
            "title": "Require the search term in the post",
            "type": "boolean",
            "description": "Keep only posts whose text or thread title contains every word of the search term (loose match: \"invoice\" also matches \"invoicing\"). Turn off for broader, noisier results.",
            "default": true
          },
          "excludeLaunchPosts": {
            "title": "Skip Show HN / Launch HN posts",
            "type": "boolean",
            "description": "Skip Hacker News stories titled \"Show HN\" or \"Launch HN\": they are founders describing their own product, not user demand. Comments under them are still analyzed (flagged inLaunchThread).",
            "default": true
          },
          "maxSignalRowsPerTerm": {
            "title": "Max signal rows per term",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on output rows per term (0 = no cap). Willing-to-pay rows are kept first, then by score.",
            "default": 0
          },
          "minScore": {
            "title": "Minimum score",
            "type": "integer",
            "description": "Skip posts below this score (HN points / Stack Exchange votes). HN comments have no public score and are never skipped. Empty = no filter."
          },
          "stackExchangeKey": {
            "title": "Stack Exchange app key (optional)",
            "type": "string",
            "description": "Optional free key from stackapps.com. Raises the Stack Exchange quota from 300 to 10,000 requests per day. Not needed for normal runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}