# Example: recent posts and comments of u/spez

**Use case:** 

Runs the Reddit User Scraper on the public profile of u/spez and returns the profile card and the 25 most recent posts and comments as JSON.

## Input

```json
{
  "users": [
    "spez"
  ],
  "content": "both",
  "maxItems": 25,
  "postedAfter": "2026-01-01",
  "commentedAfter": "2026-01-01",
  "includeNSFW": false,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "type": {
    "label": "Row type",
    "format": "string"
  },
  "id": {
    "label": "ID",
    "format": "string"
  },
  "name": {
    "label": "Username",
    "format": "string"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "body": {
    "label": "Body",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "integer"
  },
  "numComments": {
    "label": "Comment count",
    "format": "integer"
  },
  "karma": {
    "label": "Karma",
    "format": "integer"
  },
  "createdUtc": {
    "label": "Created (UTC, ISO)",
    "format": "string"
  },
  "permalink": {
    "label": "Permalink",
    "format": "string"
  },
  "postId": {
    "label": "Post ID",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Reddit User Scraper: Posts & Comment History, $2/1K Items Actor is ready to run with the inputs already set for "Example: recent posts and comments of u/spez". [Sign up or log in](https://console.apify.com/create-task-from-example/auNNI2wlTZpK9TTjN) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Example: recent posts and comments of u/spez" task

The Reddit User Scraper: Posts & Comment History, $2/1K Items Actor will start running based on the input automatically. You can also change all the input fields, like usernames, content, and more, to match your specific use case.

### 3. Receive the "Example: recent posts and comments of u/spez" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as row type, ID, username, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Example: recent posts and comments of u/spez" task via API](https://apify.com/actorforgehq/reddit-user-scraper.md).

## FAQ

### What does the Reddit user history example task for u/spez return?

The Reddit user history example task returns one profile row for spez plus up to 25 of the most recent posts and comments, newest first. The profile row does not count toward maxItems.

### What does the profile row of the Reddit user history example task contain?

The profile row of the Reddit user history example task holds name, permalink, karma, postKarma, commentKarma, contributions, createdUtc and bio. Followers, trophies and anything behind login are not read.

### How do I choose posts, comments or another user in the Reddit user history example task?

In the Reddit user history example task, enter usernames without u/ in users and set content to both, posts or comments. Dates postedAfter and commentedAfter filter posts and comments. maxItems is 25 here.

### Why are comments flat in the Reddit user history example task?

In the Reddit user history example task, comments have depth 0 and no parentId, because a profile shows neither thread position nor parent. postId names the post. A whole thread needs the Reddit Comments Scraper.

### How do I follow an account over time with the Reddit user history example task?

Run the Reddit user history example task on an Apify Schedule with onlyNew on. Items already delivered to you for the same users are skipped, and the profile row is saved on every run.

### Are NSFW items included in the Reddit user history example task?

The Reddit user history example task skips NSFW posts unless includeNSFW is true. Comments carry no NSFW flag in a profile history, so they are always included, even under NSFW posts.

### Does the Reddit user history example task need an account, and what if a user is missing?

The Reddit user history example task needs no Reddit account or API key. A user that does not exist, is suspended or has a private history gives an empty result with no error, so check the spelling.

## About this Actor

This example demonstrates how to use [Reddit User Scraper: Posts & Comment History, $2/1K Items](https://apify.com/actorforgehq/reddit-user-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/actorforgehq/reddit-user-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/actorforgehq/reddit-user-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
