# Reddit Account Profile Scraper - Karma and Cake Day (`thenetaji/reddit-account-profile-scraper`) Actor

Reads a Reddit account's public profile by username and saves a single row: its id, display name, description, total karma with the post and comment breakdown, contribution count, cake day, and icon. Figures Reddit renders without a breakdown are saved as null rather than guessed.

- **URL**: https://apify.com/thenetaji/reddit-account-profile-scraper.md
- **Developed by:** [The Netaji](https://apify.com/thenetaji) (community)
- **Categories:** Social media, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Reddit Account Profile Scraper

The Actor reads a Reddit account's public profile by username and saves a single structured row: the
account's id, display name, description, total karma with its post and comment breakdown,
contribution count, cake day, and icon. One run describes one account. No Reddit account,
application, or API credential is involved.

### Accepted input

| Field | Required | Default | Notes |
| --- | --- | --- | --- |
| `username` | yes | — | A bare name (`spez`), a prefixed name (`u/spez`), or a copied reddit.com profile link. Both the `/user/` and the older `/u/` link forms are accepted. |

```json
{
  "username": "u/spez"
}
```

### Response fields

The saved record carries `id`, `fullname`, `name`, `prefixed_name`, `url`, `description`, `karma`,
`post_karma`, `comment_karma`, `contributions`, `created_at`, and `icon`.

```json
{
  "id": "1w72",
  "fullname": "t2_1w72",
  "name": "spez",
  "prefixed_name": "u/spez",
  "url": "https://www.reddit.com/user/spez/",
  "description": "Reddit CEO",
  "karma": 940933,
  "post_karma": 184453,
  "comment_karma": 756480,
  "contributions": 12,
  "created_at": "2005-06-06T00:00:00.000Z",
  "icon": "https://styles.redditmedia.com/t5_1w72/styles/profileIcon_example.png"
}
```

`created_at` is the account's cake day, as an ISO 8601 timestamp in UTC. `fullname` is the account's
id carrying Reddit's `t2_` prefix; the bare `id` is the same value without it.

### Karma, and when it is null

A profile is the one surface in this family that carries no structured markup at all, so the figures
are read from what Reddit renders on the page. `karma` is the total it displays. `post_karma` and
`comment_karma` come from the breakdown shown beside that total, and either can be `null` while
`karma` is populated, because Reddit does not always render the breakdown.

A `null` in any of the three means the profile was rendered without that figure. It does not mean
zero, and a consumer that treats it as zero will compute wrong averages across a set of accounts.
The same applies to `contributions` and `description`.

### Failures and partial results

An unusable username is rejected before any request is made, with a message naming what was
received. An account that does not exist ends the run cleanly with nothing saved rather than
failing.

The profile page is the least reliable surface this family reads: it sometimes answers without its
profile block, on a URL that worked a moment earlier. That case is reported as a temporary,
retryable failure rather than as a missing account, because the two are not the same thing and
publishing "no such account" for an account that exists would be a wrong answer indistinguishable
from a right one. A failed run of this Actor is worth retrying, and reading a list of accounts is
better paced across several runs than crowded into one.

Fields absent from the page are returned as `null` rather than omitted, so the column set is the
same in every record.

### Cost

Charging is per account record saved to the dataset, plus the platform's one-off Actor start event.
One run saves one row, and the rate reflects a whole run's work going into that row. A run that
saves nothing is charged for nothing beyond the start event, so a retry after a temporary failure
costs only that event.

### Related Actors

- **Reddit User Activity Scraper** — the same account's posts and comments.
- **Reddit User Comment History Scraper** — the same account's comments only, from the feed Reddit
  dedicates to them.
- **Reddit Keyword Search Scraper** — searching the `people` corpus, for finding accounts by subject
  rather than describing one already known by name.

### Support

Questions, bug reports, and requests for a field that is not here yet: thenetaji@proton.me.

# Actor input Schema

## `username` (type: `string`):

The account to read. A bare name (spez), a prefixed name (u/spez), or a pasted reddit.com/user/ URL are all accepted; a URL is reduced to the account it names.

## Actor input object example

```json
{
  "username": "spez"
}
```

# Actor output Schema

## `dataset` (type: `string`):

All records scraped by this run

# 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 = {
    "username": "spez"
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/reddit-account-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 = { "username": "spez" }

# Run the Actor and wait for it to finish
run = client.actor("thenetaji/reddit-account-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 '{
  "username": "spez"
}' |
apify call thenetaji/reddit-account-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thenetaji/reddit-account-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/dSe4MD22Ss8J42Eu9/builds/m9L9tg2WKsHhyaYxI/openapi.json
