{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Search Scraper: Keyword & Subreddit Posts",
    "description": "Search Reddit by keyword, subreddit or author and get full post data: title, text, upvotes, comment count, author, flair, images and video. Run hundreds of searches in one job and tag every result with your own ID. No login or API key. Pay-per-result pricing from 17 Oct 2026.",
    "version": "1.0",
    "x-build-id": "C6cBwCsfdTEx8xosT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xmolodtsov~reddit-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xmolodtsov-reddit-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/xmolodtsov~reddit-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xmolodtsov-reddit-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/xmolodtsov~reddit-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xmolodtsov-reddit-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",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Search Queries",
            "type": "array",
            "description": "One or more Reddit searches, as <code>[{\"profileUrl\": \"any-id\", \"searchQuery\": \"keyword\"}]</code>. <code>searchQuery</code> takes Reddit search syntax: \"exact phrase\", OR, <code>subreddit:name</code>, <code>author:name</code>. <code>profileUrl</code> is your own label (any string, usually a URL), copied into every post the search returns.<br><br>Batch hundreds of searches in one run. Posts per search are set by <code>maxItemsPerQuery</code> (default 25; Reddit stops at about 250), the run total by <code>maxItems</code>.",
            "items": {
              "type": "object",
              "required": [
                "profileUrl",
                "searchQuery"
              ],
              "properties": {
                "profileUrl": {
                  "title": "Profile URL",
                  "type": "string",
                  "description": "Your own identifier (any string, usually a URL), copied into every result from this search. Use it to route posts to the right record in your system."
                },
                "searchQuery": {
                  "title": "Search Query",
                  "type": "string",
                  "description": "Reddit search query. Supports Reddit's search syntax: quotes for an exact phrase, OR for alternatives, <code>subreddit:name</code> to search one community and <code>author:name</code> for one user's posts."
                }
              }
            }
          },
          "searchTime": {
            "title": "Time Filter",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Filter posts by how recently they were created. Use <strong>Past Week</strong> for fresh content or <strong>All Time</strong> for comprehensive results.",
            "default": "all"
          },
          "sort": {
            "title": "Sort Order",
            "enum": [
              "new",
              "relevance",
              "hot",
              "top",
              "comments"
            ],
            "type": "string",
            "description": "How to sort search results. <strong>Newest</strong> for recent posts, <strong>Top</strong> for highest engagement, <strong>Most Relevant</strong> for best keyword match.",
            "default": "new"
          },
          "includeNSFW": {
            "title": "Include NSFW Content",
            "type": "boolean",
            "description": "Include adult (NSFW) content. When disabled, posts Reddit flags as adult are filtered out.",
            "default": true
          },
          "searchMode": {
            "title": "Search Mode",
            "enum": [
              "raw",
              "exact",
              "and",
              "or"
            ],
            "type": "string",
            "description": "How to combine multi-word search terms.<br><br><strong>raw</strong>: Pass as-is (Reddit default, implicit AND).<br><strong>exact</strong>: Wrap in quotes for exact phrase match. <em>Recommended for names/usernames.</em><br><strong>and</strong>: Explicit AND between words.<br><strong>or</strong>: Match any word.<br><br>Field operators such as <code>author:name</code> and <code>subreddit:name</code> stay as written in every mode; only the other words are quoted or joined.",
            "default": "raw"
          },
          "searchType": {
            "title": "Search Type",
            "enum": [
              "posts",
              "all"
            ],
            "type": "string",
            "description": "Filter search results by type.<br><br><strong>posts</strong>: Only search posts (default, recommended).<br><strong>all</strong>: Search without the posts-only filter. Note: the output always contains posts only — comments and communities are never scraped.",
            "default": "posts"
          },
          "maxItemsPerQuery": {
            "title": "Results Per Query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum posts to return for each search. Reddit's search itself stops at about 250 posts per search, so for busy topics run more often with a shorter time filter instead of raising this.<br><br><strong>Free Apify plan:</strong> at most 10 results per run in total.",
            "default": 25
          },
          "maxItems": {
            "title": "Global Results Limit",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on total posts across all queries. Useful for budget control. Leave empty to collect all available results up to per-query limits.<br><br><strong>Free Apify plan:</strong> capped at 10."
          },
          "fastMode": {
            "title": "Fast Mode",
            "type": "boolean",
            "description": "No longer has any effect, kept so existing integrations keep working. Every run returns full post data.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel Queries",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many searches run at the same time. Each uses its own Reddit session. The default of 3 suits most runs.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. The default Apify residential proxy is what this Actor is tested on, and from 17 October 2026 it is included in the pay-per-result price. Reddit blocks most datacenter IPs.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}