{
  "openapi": "3.0.1",
  "info": {
    "title": "Krakt Wishwire",
    "description": "Real 'I wish there was an app' posts from Reddit, Hacker News and Bluesky. Jokes, spam and NSFW filtered out, deduped, scored by engagement, sorted into categories. Startup ideas straight from people with the problem, about $0.001 each.",
    "version": "0.1",
    "x-build-id": "99tcPSvWraNlfbIMa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kurtholes~krakt-wishwire/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kurtholes-krakt-wishwire",
        "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/kurtholes~krakt-wishwire/runs": {
      "post": {
        "operationId": "runs-sync-kurtholes-krakt-wishwire",
        "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/kurtholes~krakt-wishwire/run-sync": {
      "post": {
        "operationId": "run-sync-kurtholes-krakt-wishwire",
        "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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Where to dig. All free, official public APIs.",
            "items": {
              "type": "string",
              "enum": [
                "reddit",
                "hackernews",
                "bluesky"
              ],
              "enumTitles": [
                "Reddit search",
                "Hacker News (Algolia)",
                "Bluesky search"
              ]
            },
            "default": [
              "reddit",
              "hackernews",
              "bluesky"
            ]
          },
          "phrases": {
            "title": "Wish phrases",
            "type": "array",
            "description": "Exact phrases to search for (up to 25). Leave empty to use the 19 built-in wish phrases. Every result must also pass a built-in wish filter.",
            "items": {
              "type": "string"
            }
          },
          "subreddits": {
            "title": "Subreddits",
            "type": "array",
            "description": "Searched one by one, plus a site-wide Reddit search.",
            "items": {
              "type": "string"
            }
          },
          "maxAgeDays": {
            "title": "Max age (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Skip posts older than this.",
            "default": 365
          },
          "maxItems": {
            "title": "Max ideas",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Total cap per run, highest score first. Each idea is billed once.",
            "default": 300
          },
          "maxIdeasPerSource": {
            "title": "Max ideas per source",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Optional cap per source (Reddit, Hacker News, Bluesky), applied before Max ideas, for a balanced mix. 0 = no per-source cap.",
            "default": 0
          },
          "maxResultsPerQuery": {
            "title": "Results per query",
            "minimum": 5,
            "maximum": 2000,
            "type": "integer",
            "description": "Search hits to pull per phrase, per source. Above 100, Wishwire pages through results (Reddit `after`, Hacker News pages, Bluesky by date), so bigger values find more but take longer.",
            "default": 300
          },
          "minScore": {
            "title": "Min score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Engagement score floor. 0 keeps everything that passes the filters.",
            "default": 0
          },
          "minChars": {
            "title": "Min length (chars)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Drops one-liners with no detail.",
            "default": 40
          },
          "categories": {
            "title": "Only these categories",
            "type": "array",
            "description": "Optional. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Money",
                "Health",
                "Dev tools",
                "AI",
                "Work",
                "Home & family",
                "Travel",
                "Media",
                "Social",
                "Learning",
                "Shopping",
                "Other"
              ]
            }
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Remember what you've seen (per run storage / task) and only return fresh ideas. Great for scheduled runs.",
            "default": false
          },
          "maxRunSeconds": {
            "title": "Fetch time budget (s)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "Stop fetching new search pages after this many seconds and return what was found. Raise it (and the run timeout) for big pulls.",
            "default": 120
          },
          "qualityFilter": {
            "title": "Quality filter",
            "type": "boolean",
            "description": "Drop jokes, political rants, self-promotion, 'which app do you use?' support questions, vague and near-duplicate wishes. Filtered ideas are never charged.",
            "default": true
          },
          "qualityStrictness": {
            "title": "Quality strictness",
            "enum": [
              "balanced",
              "strict",
              "lenient"
            ],
            "type": "string",
            "description": "balanced (default): the post states a need or is a first-person 'is there an app that...' question. strict: a stated pain/need is required (fewest, cleanest ideas). lenient: only the hard rules.",
            "default": "balanced"
          },
          "includeLowQuality": {
            "title": "Include low-quality ideas (labelled)",
            "type": "boolean",
            "description": "Output everything, with lowQuality: true and a qualityReason on the ideas the filter would drop. These are charged like any other output item.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}