{
  "openapi": "3.0.1",
  "info": {
    "title": "Discourse Forum Monitor - New Topics, Keyword Alerts & Posts",
    "description": "Scrape any public Discourse forum (OpenAI, Cursor, n8n, 1000s more): latest, top, category and tag topics, posts and new replies. Keyword filter, multi-forum, monitor mode outputs only new items. No login, robots.txt respected. $0.50 per 1,000 items.",
    "version": "1.0",
    "x-build-id": "FWfAzIiy38dX6fSDq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tali-works~discourse-forum-scraper-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tali-works-discourse-forum-scraper-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/tali-works~discourse-forum-scraper-monitor/runs": {
      "post": {
        "operationId": "runs-sync-tali-works-discourse-forum-scraper-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/tali-works~discourse-forum-scraper-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-tali-works-discourse-forum-scraper-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": {
          "forums": {
            "title": "Forums",
            "type": "array",
            "description": "Discourse forum URLs or domains (max 25 per run), e.g. community.openai.com, forum.cursor.com, community.n8n.io, community.home-assistant.io, meta.discourse.org. Subfolder installs (example.com/forum) work. Pasted page URLs are trimmed to the forum root.",
            "items": {
              "type": "string"
            }
          },
          "latestTopics": {
            "title": "Latest topics",
            "type": "boolean",
            "description": "Read the forum's Latest list (topics ordered by last activity). On by default for each forum that has no categories, tags, top period or latest posts chosen for it."
          },
          "latestPosts": {
            "title": "Latest posts and replies",
            "type": "boolean",
            "description": "Also read the forum's newest posts across all topics (replies included, newest first). Best source for brand/keyword alerts, since mentions usually appear in replies.",
            "default": false
          },
          "topPeriod": {
            "title": "Top topics period",
            "enum": [
              "daily",
              "weekly",
              "monthly",
              "quarterly",
              "yearly",
              "all"
            ],
            "type": "string",
            "description": "Also export the forum's Top topics for this period."
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Optional. Category URLs (https://forum.example.com/c/support/5) or slugs (support). A full URL applies to that forum only; a slug is looked up on every forum.",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Optional. Tag names to read, e.g. 'bug' or 'feature-request'.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keyword filter",
            "type": "array",
            "description": "Optional. Keep only topics whose title, excerpt or tags, and posts whose text or topic title, contain any of these words (case-insensitive). Many Discourse forums block their /search page in robots.txt, so this Actor filters what it reads instead; up to 15x 'Max items' are scanned per source.",
            "items": {
              "type": "string"
            }
          },
          "includePosts": {
            "title": "Include posts of each topic",
            "type": "boolean",
            "description": "Also output the posts (first post + replies) of every topic found, as separate rows (type = post).",
            "default": false
          },
          "maxPostsPerTopic": {
            "title": "Max posts per topic",
            "minimum": 1,
            "type": "integer",
            "description": "Used with 'Include posts'.",
            "default": 20
          },
          "onlyNew": {
            "title": "Monitor mode: only new items",
            "type": "boolean",
            "description": "Remember what earlier runs returned (named key-value store 'discourse-monitor-state') and output only items not seen before. First run = baseline. Schedule it hourly/daily for brand, competitor or support alerts. Already-seen items are not charged.",
            "default": false
          },
          "reportNewReplies": {
            "title": "Monitor: re-report topics with new replies",
            "type": "boolean",
            "description": "In monitor mode, also output a topic again when its post count changed since the last run.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Runs with the same name share memory. Default: keyed by your forums/categories/tags/keywords."
          },
          "createdAfter": {
            "title": "Created after",
            "type": "string",
            "description": "Skip topics/posts created before this date (YYYY-MM-DD)."
          },
          "minReplies": {
            "title": "Min replies",
            "minimum": 0,
            "type": "integer",
            "description": "Skip topics with fewer replies."
          },
          "excludePinned": {
            "title": "Exclude pinned topics",
            "type": "boolean",
            "description": "Skip pinned welcome/FAQ topics.",
            "default": true
          },
          "maxItemsPerSource": {
            "title": "Max items per source",
            "minimum": 1,
            "type": "integer",
            "description": "Cap per forum and source (latest, top, each category, each tag, latest posts). Posts added by 'Include posts' don't count toward it.",
            "default": 100
          },
          "maxTotalItems": {
            "title": "Max items in total",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap for the whole run, to control cost."
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Optional, off by default. Very busy forums (e.g. community.openai.com) sometimes rate-limit shared cloud IPs on their latest-posts feed (HTTP 429). If that happens, enable Apify Proxy here or retry later. Proxy cost is billed by Apify to your account, on top of this Actor's price: Datacenter proxy uses the IPs included in your Apify plan (5 on Free); Residential costs $7-8 per GB. Most forums work fine without a proxy.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}