# Find Subreddits by Topic

**Use case:** 

Discover subreddits by topic — name, member count, description and activity. Find communities for research or marketing. Export to CSV, JSON or Excel.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/AskReddit/"
    },
    {
      "url": "https://www.reddit.com/user/spez/"
    }
  ],
  "searches": [
    "machine learning"
  ],
  "searchPosts": false,
  "searchComments": false,
  "searchCommunities": true,
  "searchUsers": false,
  "sort": "new",
  "time": "all",
  "includeNSFW": true,
  "maxPostCount": 50,
  "maxComments": 100,
  "maxItems": 50,
  "maxCommunitiesCount": 50,
  "maxUserCount": 10,
  "skipComments": false,
  "skipUserPosts": false,
  "skipCommunity": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "display_name_prefixed": {
    "label": "Community (prefixed)",
    "format": "string"
  },
  "subscribers": {
    "label": "Subscribers",
    "format": "number"
  },
  "public_description": {
    "label": "Description",
    "format": "string"
  },
  "over18": {
    "label": "NSFW community",
    "format": "boolean"
  },
  "created_utc": {
    "label": "Created (UNIX seconds)",
    "format": "number"
  },
  "url": {
    "label": "URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Reddit Scraper - Posts, Comments, Users, Subreddits & Search](https://apify.com/automly/reddit-ultimate-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automly/reddit-ultimate-scraper) to learn more, explore other use cases, and run it yourself.