{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Scraper · Posts & comments, no login · $1/1K",
    "description": "Collect Reddit posts, comments, community info and user activity for sentiment analysis, trend research and brand monitoring. Scrape by subreddit, post or user URL, or search a community. Date limits per post and comment. $1/1K results.",
    "version": "0.1",
    "x-build-id": "LeGQ6RjpH5qWdNPhy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mlg14~reddit-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mlg14-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/mlg14~reddit-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mlg14-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/mlg14~reddit-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mlg14-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",
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Public Reddit community, post or user URLs. Example: https://www.reddit.com/r/Python/. Search terms are ignored when URLs are given. Use a post URL for its comments and a /user/name/ URL for user posts.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": "Public Reddit URL.",
                  "title": "URL"
                }
              },
              "required": [
                "url"
              ]
            },
            "default": [
              {
                "url": "https://www.reddit.com/r/Python/"
              }
            ]
          },
          "searches": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to find in post titles and comments. Example: [\"fastapi\", \"async\"]. Needs searchCommunityName. Leave empty when using startUrls.",
            "items": {
              "type": "string"
            }
          },
          "searchCommunityName": {
            "title": "Search community",
            "type": "string",
            "description": "Community to search, without r/. Example: Python. Required when using searches; leave empty when using startUrls.",
            "default": "Python"
          },
          "searchPosts": {
            "title": "Search posts",
            "type": "boolean",
            "description": "Return matching post titles for each search term. Example: true. Set false when you only want comments.",
            "default": true
          },
          "searchComments": {
            "title": "Search comments",
            "type": "boolean",
            "description": "Return matching comment bodies for each search term. Example: true. Keep false for posts only.",
            "default": false
          },
          "searchCommunities": {
            "title": "Search communities",
            "type": "boolean",
            "description": "Look up a community whose name exactly matches each search term. Example: true to resolve r/Python metadata. Keep false otherwise.",
            "default": false
          },
          "searchUsers": {
            "title": "Search users",
            "type": "boolean",
            "description": "Look up a user whose name exactly matches each search term. Example: true. Keep false otherwise.",
            "default": false
          },
          "skipComments": {
            "title": "Skip post comments",
            "type": "boolean",
            "description": "Do not collect comments when a post URL is given. Example: true for post metadata only. Keep false to get the comment tree.",
            "default": false
          },
          "skipUserPosts": {
            "title": "Skip user posts",
            "type": "boolean",
            "description": "Do not collect posts from a user URL. Example: true for the user profile row only. Keep false to get their posts.",
            "default": false
          },
          "skipCommunity": {
            "title": "Skip community details",
            "type": "boolean",
            "description": "Do not add a community metadata row for a community URL. Example: true to get posts only. Keep false for the community row.",
            "default": false
          },
          "includeNSFW": {
            "title": "Include mature content",
            "type": "boolean",
            "description": "Include records marked as mature content. Example: true. Keep false to exclude them.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum total items",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on all dataset rows. Example: 100. Set 0 for no overall cap; use it to bound cost.",
            "default": 100
          },
          "maxPostCount": {
            "title": "Maximum posts per target",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum post rows per community URL, user URL or search term. Example: 50. Use a small value for quick checks.",
            "default": 100
          },
          "maxComments": {
            "title": "Maximum comments per target",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum comment rows per post URL, user comment URL or search term. Example: 100. Set lower for large threads.",
            "default": 100
          },
          "maxCommunitiesCount": {
            "title": "Maximum community matches",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum exact community matches per search term. Example: 5. Only used with searchCommunities. Use a small value to bound results.",
            "default": 10
          },
          "maxUserCount": {
            "title": "Maximum user matches",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum exact user matches per search term. Example: 5. Only used with searchUsers. Use a small value to bound results.",
            "default": 10
          },
          "postDateLimit": {
            "title": "Post date limit",
            "type": "string",
            "description": "Only posts created on or after this ISO date or timestamp. Example: 2026-01-01. Use for monitoring runs; leave empty for all dates."
          },
          "commentDateLimit": {
            "title": "Comment date limit",
            "type": "string",
            "description": "Only comments created on or after this ISO date or timestamp. Example: 2026-01-01. Use for monitoring runs; leave empty for all dates."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy settings for the public data source.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}