# Reddit User Profile Scraper (`axery/reddit-user-profile-scraper`) Actor

Get a Reddit user's public profile â€” karma, account age, premium status, trophies.

- **URL**: https://apify.com/axery/reddit-user-profile-scraper.md
- **Developed by:** [Axery](https://apify.com/axery) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Reddit User Profile Scraper

Extract public profile data from any Reddit user in bulk — post karma, comment karma, account age, verified email, premium/employee/mod badges, and avatar. No scraping of a rendered profile page — this reads Reddit's own public "about" JSON.

Useful for influencer/moderator vetting, spam and bot-account research, and enriching a user database with account-age and karma signals.

### Current access status — read before running

Reddit's own anonymous JSON endpoint (`old.reddit.com/user/{username}/about.json`) is currently answering every request with a hard login wall, verified directly and consistently across TLS fingerprints as of this Actor's last build — not a rate limit, a login requirement. The one path that still works is Reddit's own official OAuth **installed-app** grant, which needs a free `client_id` (no client secret, no personal login) registered once at [reddit.com/prefs/apps](https://www.reddit.com/prefs/apps) — choose "installed app" when creating it. Supply that value in the `redditClientId` input field.

Without a `client_id`, this Actor will currently fail on every request — that's Reddit's access wall, not a bug here, and it's stated plainly rather than left to be discovered as a silent failure.

### What makes this different

**Karma split into link vs. comment**, not just a combined total — the difference between an account built on original submissions versus one built on replying, which is a genuinely different account-quality signal.

**Trust badges as explicit booleans.** Verified email, Reddit Premium, employee, and moderator flags come through as clean `true`/`false` fields rather than something you'd have to infer from a raw trophy list.

**A stable internal ID alongside the username.** Reddit's own `id` field survives a username change; keeping it lets you re-identify the same account later even if it's since been renamed.

### Input

| Field | Type | Notes |
|---|---|---|
| `usernames` | array | Usernames, with or without `u/`, or full profile URLs. |
| `redditClientId` | string | Currently effectively required — see above. |
| `proxyConfiguration` | object | Defaults to Residential. |

### Output

```json
{
  "user_id": "reddit.com:t2_abc123",
  "username": "example_user",
  "link_karma": 4521,
  "comment_karma": 18902,
  "total_karma": 23423,
  "account_created_at": "2015-03-12T08:14:00Z",
  "is_gold": false,
  "verified": true,
  "has_verified_email": true,
  "profile_url": "https://www.reddit.com/user/example_user/"
}
```

A username that genuinely doesn't exist on Reddit fails as an explicit `not_found` row rather than a silent empty result — distinguishable from a transient fetch failure.

### Local development

```bash
pip install -r requirements.txt
python test_local.py spez --client-id YOUR_CLIENT_ID
```

No `sample_output.json` ships with this Actor — Reddit's current access wall means a live run cannot be produced without a registered `client_id`, and this project doesn't publish fabricated sample data.

# Actor input Schema

## `usernames` (type: `array`):

List of Reddit usernames or profile URLs to scrape. Both `spez` and `https://www.reddit.com/user/spez/` are accepted.

## `redditClientId` (type: `string`):

Currently effectively required - Reddit blocks anonymous access with a hard login wall (confirmed directly). Register a free installed-app client ID at reddit.com/prefs/apps (choose "installed app" - no client secret, no personal login) and paste it here.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Defaults to Residential - Reddit currently blocks anonymous access from Apify's own container IP range with a hard login wall (confirmed directly), so a residential-looking IP is the only realistic chance of success without an installed-app client ID.

## Actor input object example

```json
{
  "usernames": [
    "spez",
    "GoldenSights"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `profiles` (type: `string`):

One row per user: karma, account age, badges.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "usernames": [
        "spez",
        "GoldenSights"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("axery/reddit-user-profile-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "usernames": [
        "spez",
        "GoldenSights",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("axery/reddit-user-profile-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "usernames": [
    "spez",
    "GoldenSights"
  ]
}' |
apify call axery/reddit-user-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,axery/reddit-user-profile-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/FPdjVQRIA5WJHjmzJ/builds/h2ujczcrpxudQhr4B/openapi.json
