{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit MCP Server",
    "description": "Model Context Protocol (MCP) server for Reddit. Search posts, read subreddit listings, fetch posts with comments, profile users, and discover trending communities — straight from your AI agent.",
    "version": "0.2",
    "x-build-id": "i87FcdGuaj65GLl0h"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/techforce.global~reddit-posts-mcp-server/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-techforce.global-reddit-posts-mcp-server",
        "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/techforce.global~reddit-posts-mcp-server/runs": {
      "post": {
        "operationId": "runs-sync-techforce.global-reddit-posts-mcp-server",
        "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/techforce.global~reddit-posts-mcp-server/run-sync": {
      "post": {
        "operationId": "run-sync-techforce.global-reddit-posts-mcp-server",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Scrape mode",
            "enum": [
              "search",
              "subreddit",
              "post"
            ],
            "type": "string",
            "description": "What to scrape: 'search' (query Reddit), 'subreddit' (list a subreddit's posts), or 'post' (one post + its comments).",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Search terms. Used in 'search' mode.",
            "default": ""
          },
          "searchScopeSubreddit": {
            "title": "Restrict search to subreddit",
            "type": "string",
            "description": "Optional subreddit to scope the search to (without 'r/'). Empty = search all of Reddit. Used in 'search' mode.",
            "default": ""
          },
          "subreddit": {
            "title": "Subreddit",
            "type": "string",
            "description": "Subreddit name without 'r/' (e.g. 'python'). Used in 'subreddit' mode.",
            "default": ""
          },
          "postUrl": {
            "title": "Post URL or ID",
            "type": "string",
            "description": "A Reddit post URL/permalink or its id (e.g. 'abc123'). Used in 'post' mode.",
            "default": ""
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "hot",
              "new",
              "top",
              "rising",
              "controversial",
              "comments"
            ],
            "type": "string",
            "description": "Sort order. Search: relevance/hot/top/new/comments. Subreddit: hot/new/top/rising/controversial. Invalid values fall back to a sensible default.",
            "default": "hot"
          },
          "time": {
            "title": "Time range",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Time window for top/controversial/relevance sorts.",
            "default": "all"
          },
          "limit": {
            "title": "Result limit",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum posts to scrape in search/subreddit mode (1-100).",
            "default": 25
          },
          "maxComments": {
            "title": "Max comments",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum comments to include in 'post' mode (0-500).",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy used for every Reddit request. RESIDENTIAL is strongly recommended — Reddit blocks datacenter IPs.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "redditClientId": {
            "title": "Reddit API client ID",
            "type": "string",
            "description": "Recommended for reliability. Client ID of a Reddit app — create one at https://www.reddit.com/prefs/apps (choose 'script' or 'web app'). Using the official API avoids Reddit's anti-bot 403 blocks. Leave empty to use the public endpoints (less reliable).",
            "default": ""
          },
          "redditClientSecret": {
            "title": "Reddit API client secret",
            "type": "string",
            "description": "Secret of the Reddit app above. Required when a client ID is provided."
          },
          "mcpConnector": {
            "title": "MCP connector (delivery target)",
            "type": "string",
            "description": "Pick a connector to deliver results to — Notion, Slack, Linear, Airtable, Jira, GitHub, or any MCP-compatible connector you have authorized. Leave empty to only store results in the dataset."
          },
          "deliveryMode": {
            "title": "Delivery mode",
            "enum": [
              "perPost",
              "summary",
              "none"
            ],
            "type": "string",
            "description": "How to deliver to the connector: 'perPost' (one call per scraped post), 'summary' (one call with all posts combined), or 'none' (store only).",
            "default": "perPost"
          },
          "mcpTool": {
            "title": "Connector tool name",
            "type": "string",
            "description": "Name of the tool to call on the connector (e.g. 'create_page' for Notion, 'send_message' for Slack). If unsure, run once with delivery on — the log lists the connector's available tools.",
            "default": ""
          },
          "mcpArguments": {
            "title": "Connector tool arguments",
            "type": "object",
            "description": "Arguments passed to the connector tool. String values support {placeholders} from each post: {title}, {author}, {subreddit}, {score}, {num_comments}, {permalink}, {url}, {selftext}, {created}, {flair}, {id}, and {message} (the rendered template below). Example for Slack: {\"channel\": \"#reddit\", \"text\": \"{message}\"}.",
            "default": {}
          },
          "mcpMessageTemplate": {
            "title": "Message template",
            "type": "string",
            "description": "Optional Markdown template rendered per post and exposed as the {message} placeholder in the tool arguments. Example: '*{title}* by u/{author} in r/{subreddit} ({score} upvotes)\\n{permalink}'.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}