{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Search Scraper · No API key · $1/1K",
    "description": "Search public Reddit posts by keyword, subreddit or URL for market research, brand monitoring and trend analysis. No API key. Returns posts with scores, comment counts and dates from public archives, plus optional comments. $1/1K results.",
    "version": "0.1",
    "x-build-id": "aeU5f7ZeIVaC22hFH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mlg14~reddit-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mlg14-reddit-search-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/mlg14~reddit-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mlg14-reddit-search-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/mlg14~reddit-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mlg14-reddit-search-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": {
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Search phrases for archived public Reddit posts. Example: [\"coffee grinder\", \"espresso machine\"]. Without subredditName, only the 3 subreddits whose names best match the words (by subscribers) are searched, not all of Reddit; add subredditName for precise results. Use for keyword research; ignored when urls is set. The default is the prefilled phrase, so clear it when you use subredditName or urls.",
            "default": [
              "coffee grinder"
            ],
            "items": {
              "type": "string"
            }
          },
          "subredditName": {
            "title": "Subreddit",
            "type": "string",
            "description": "Community name without r/. Example: Coffee. Use it to read one subreddit; with no subredditKeywords it collects the newest archived posts. Leave empty for global searches."
          },
          "subredditKeywords": {
            "title": "Keywords within subreddit",
            "type": "array",
            "description": "Search phrases to run inside subredditName. Example: [\"grinder\"]. Use together with subredditName for precise, complete keyword results; leave empty to get the newest feed of that community.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Direct Reddit URLs",
            "type": "array",
            "description": "Optional post, search, subreddit or user-submitted URLs. Example: https://www.reddit.com/r/Coffee/. These take priority over queries and subredditName. Leave empty to use keywords or a subreddit name.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Search sort",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "comments"
            ],
            "type": "string",
            "description": "Global archive order. Allowed values: relevance, hot, top, new, comments. Example: top. New uses creation time, top and comments use archived counts; relevance and hot currently use newest order. Use new for monitoring.",
            "default": "relevance"
          },
          "timeframe": {
            "title": "Search timeframe",
            "enum": [
              "all",
              "year",
              "month",
              "week",
              "day",
              "hour"
            ],
            "type": "string",
            "description": "Time window for global searches. Allowed values: all, year, month, week, day, hour. Example: month. Use week or day for fresh posts; leave all for every archived post.",
            "default": "all"
          },
          "subredditSort": {
            "title": "Subreddit search sort",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "comments"
            ],
            "type": "string",
            "description": "Order of the returned community posts. Allowed values: relevance, hot, top, new, comments. Example: top for best-scoring posts. Relevance and new give the newest first; comments sorts by archived comment count. Use it with subredditName.",
            "default": "relevance"
          },
          "subredditTimeframe": {
            "title": "Subreddit search timeframe",
            "enum": [
              "all",
              "year",
              "month",
              "week",
              "day",
              "hour"
            ],
            "type": "string",
            "description": "Time window applied to returned community posts. Allowed values: all, year, month, week, day, hour. Example: week. Leave all to keep every post returned for the community.",
            "default": "all"
          },
          "maxPosts": {
            "title": "Posts per target",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum posts per target (query, community or URL); the community archive exposes at most 100 per target. Example: 40. Keep it small for quick runs.",
            "default": 100
          },
          "maxItems": {
            "title": "Total records",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on total rows across posts and comments. Example: 40. Set 0 for no total cap (default); use a small value so agents get bounded results.",
            "default": 0
          },
          "scrapeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Also collect public comments for each saved post. Allowed values: true or false. Example: true for sentiment analysis. Leave false for posts only; comments add rows and run time.",
            "default": false
          },
          "maxComments": {
            "title": "Comments per post",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum comments to collect per post from the initial public thread response. Example: 50. Only used when scrapeComments is true; keep it small for faster runs.",
            "default": 100
          },
          "dateFrom": {
            "title": "Posts from date",
            "type": "string",
            "description": "Keep posts created on or after this UTC date (YYYY-MM-DD) or ISO timestamp. Example: 2026-09-01. Use with dateTo for a period; leave empty for no start limit."
          },
          "dateTo": {
            "title": "Posts to date",
            "type": "string",
            "description": "Keep posts created on or before this UTC date (YYYY-MM-DD) or ISO timestamp. Example: 2026-09-30. A plain date includes that whole day; leave empty for no end limit."
          },
          "commentDateFrom": {
            "title": "Comments from date",
            "type": "string",
            "description": "Keep comments created on or after this UTC date (YYYY-MM-DD) or ISO timestamp. Example: 2026-09-01. Only used with scrapeComments; leave empty for no start limit."
          },
          "commentDateTo": {
            "title": "Comments to date",
            "type": "string",
            "description": "Keep comments created on or before this UTC date (YYYY-MM-DD) or ISO timestamp. Example: 2026-09-30. Only used with scrapeComments; leave empty for no end limit."
          },
          "includeNsfw": {
            "title": "Include NSFW posts",
            "type": "boolean",
            "description": "Include posts marked as adult content. Allowed values: true or false. Example: false. Leave false (default) for safe-for-work results; set true only when you need adult communities.",
            "default": false
          },
          "strictTokenFilter": {
            "title": "Require every query word",
            "type": "boolean",
            "description": "Keep a post only when every query word appears in its title, body or outbound URL. Allowed values: true or false. Example: true for precise matches. Leave false for broader results.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Connection settings for public archive requests; datacenter is tried before residential escalation.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}