{
  "openapi": "3.0.1",
  "info": {
    "title": "MoneySavingExpert Forum Scraper - Threads, Replies & Quotes",
    "description": "Extract threads and replies from the MoneySavingExpert (MSE) forum with quotes, scores, views, photos, links and poster badges. Scrape by thread, board or whole forum section, or find threads by keyword.",
    "version": "0.1",
    "x-build-id": "0D2AFiqBl0RdV16Yq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/metaldata~moneysavingexpert-forum-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-metaldata-moneysavingexpert-forum-scraper",
        "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/metaldata~moneysavingexpert-forum-scraper/runs": {
      "post": {
        "operationId": "runs-sync-metaldata-moneysavingexpert-forum-scraper",
        "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/metaldata~moneysavingexpert-forum-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-metaldata-moneysavingexpert-forum-scraper",
        "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": {
          "startUrls": {
            "title": "Thread, board or forum section URLs",
            "type": "array",
            "description": "MSE forum URLs to scrape. A thread URL (https://forums.moneysavingexpert.com/discussion/...) scrapes that thread. A board URL (e.g. https://forums.moneysavingexpert.com/categories/debt-free-wannabe) scrapes its threads, most recent activity first, including its sub-boards. A section URL (e.g. https://forums.moneysavingexpert.com/categories/banking-borrowing) scrapes every board in it.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchKeywords": {
            "title": "Search keywords (optional)",
            "type": "array",
            "description": "Brands, products or phrases to look for. The Actor finds matching MSE threads with Google Search and scrapes them, as well as any URLs above. The search runs Apify's Google Search Scraper on your account, at its own price.",
            "items": {
              "type": "string"
            }
          },
          "boardCategory": {
            "title": "Limit search to one board (optional)",
            "type": "string",
            "description": "Only keep search results from one board (and its sub-boards), e.g. 'credit-cards' or 'debt-free-wannabe'. Copy it from the end of the board's URL, or paste the whole board URL. Leave blank to search the whole forum."
          },
          "maxThreadsPerKeyword": {
            "title": "Max threads to find per keyword",
            "minimum": 1,
            "type": "integer",
            "description": "How many matching threads to take for each search keyword.",
            "default": 10
          },
          "maxThreads": {
            "title": "Max threads to scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many threads in total. Keep it small for your first runs.",
            "default": 20
          },
          "maxRepliesPerThread": {
            "title": "Max replies per thread",
            "minimum": 0,
            "type": "integer",
            "description": "How many replies to take from each thread (the opening post is always included). Set 0 for opening posts only. Some MSE threads have thousands of replies.",
            "default": 200
          },
          "newestRepliesFirst": {
            "title": "Newest replies first",
            "type": "boolean",
            "description": "Take the newest replies instead of the oldest when a thread has more replies than your limit. Good for monitoring long-running threads.",
            "default": false
          },
          "minReplies": {
            "title": "Minimum replies (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip threads with fewer replies than this. On board URLs this is checked from the board's list, so skipped threads cost nothing.",
            "default": 0
          },
          "maxReplies": {
            "title": "Maximum replies (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip threads with more replies than this. Leave at 0 for no upper limit.",
            "default": 0
          },
          "dateFrom": {
            "title": "Only include posts from this date (optional)",
            "type": "string",
            "description": "Posts before this date are left out. Only replies in your date range are fetched, so long threads stay cheap."
          },
          "dateTo": {
            "title": "Only include posts up to this date (optional)",
            "type": "string",
            "description": "Posts after this date are left out. Threads started after it are skipped."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Routes requests through Apify Proxy, which keeps larger runs from being rate limited. Defaults to Apify's automatic datacenter proxy.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}