{
  "openapi": "3.0.1",
  "info": {
    "title": "Hacker News Mention Monitor: Brand & Keyword Alerts",
    "description": "Use this to get only the new Hacker News stories and comments that mention your brand, product, competitors or website domain, each match verified in the item's own text, with front-page flags and an optional Slack/Discord/webhook digest. Excel and CSV.",
    "version": "0.1",
    "x-build-id": "HRm8KJ6aqRVETVPpZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pandadad0214~hacker-news-mention-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pandadad0214-hacker-news-mention-monitor",
        "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/pandadad0214~hacker-news-mention-monitor/runs": {
      "post": {
        "operationId": "runs-sync-pandadad0214-hacker-news-mention-monitor",
        "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/pandadad0214~hacker-news-mention-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-pandadad0214-hacker-news-mention-monitor",
        "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": {
          "keywords": {
            "title": "Keywords to watch",
            "type": "array",
            "description": "Brand, product, competitor, founder or topic names. Each one is matched as a whole word or exact phrase (case-insensitive) in the story title, link or text, or in the comment text. Add spelling variants as separate lines. Up to 50 keywords and domains in total.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Website domains to watch",
            "type": "array",
            "description": "Find stories that link to these domains (including subdomains) and comments that contain a link to them, e.g. yourcompany.com or docs.yourcompany.com.",
            "items": {
              "type": "string"
            }
          },
          "lookbackHours": {
            "title": "Look back (hours)",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "How far back to search. With only-new on, a daily schedule can keep 48–72 hours: mentions already returned are skipped and not charged. Maximum 720 (30 days).",
            "default": 72
          },
          "onlyNew": {
            "title": "Only new mentions since last run",
            "type": "boolean",
            "description": "Default on. Remembers returned mentions (per state key) in a named key-value store in your account, so scheduled runs return and charge only new ones.",
            "default": true
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Separate memory per watch list or client, e.g. brand, competitors or client-acme. Default: default."
          },
          "frontPageAlerts": {
            "title": "Re-alert when a story reaches the front page",
            "type": "boolean",
            "description": "Default on. If a story you were already told about later reaches the Hacker News front page (top 30), it is returned once more with alertReason reached-front-page.",
            "default": true
          },
          "itemTypes": {
            "title": "Watch stories, comments or both",
            "type": "array",
            "description": "Default both.",
            "items": {
              "type": "string",
              "enum": [
                "story",
                "comment"
              ],
              "enumTitles": [
                "Stories (incl. Show HN, Ask HN, jobs)",
                "Comments"
              ]
            },
            "default": [
              "story",
              "comment"
            ]
          },
          "minPoints": {
            "title": "Minimum story points",
            "minimum": 0,
            "type": "integer",
            "description": "Skip stories below this score. Comments are not affected. 0 = keep all.",
            "default": 0
          },
          "skipHiringThreads": {
            "title": "Skip monthly hiring threads",
            "type": "boolean",
            "description": "Default on. Skips comments in the monthly 'Ask HN: Who is hiring?', 'Who wants to be hired?' and 'Freelancer? Seeking freelancer?' threads, where tech names appear in hundreds of job posts and résumés. Turn off to use them as hiring leads.",
            "default": true
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop mentions whose title, link or text contains any of these words or phrases (e.g. a common word your brand shares).",
            "items": {
              "type": "string"
            }
          },
          "ignoreAuthors": {
            "title": "Ignore HN usernames",
            "type": "array",
            "description": "Skip mentions written by these Hacker News accounts, e.g. your own team.",
            "items": {
              "type": "string"
            }
          },
          "caseSensitive": {
            "title": "Case-sensitive keywords",
            "type": "boolean",
            "description": "Turn on for names that are also common words (e.g. Linear, Notion, Bun).",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "When there are new mentions, post one digest here: a Slack or Discord incoming webhook, Zapier/Make/n8n catch hook, or your own endpoint. Nothing is posted on empty runs."
          },
          "webhookFormat": {
            "title": "Webhook format",
            "enum": [
              "slack",
              "discord",
              "json"
            ],
            "type": "string",
            "description": "slack = {text}, discord = {content}, json = {count, text, mentions[]}.",
            "default": "slack"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many mentions (each is one charged result). Default 200.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}