# Reddit User Profile API Documentation

<p><strong>Reddit User Profile API</strong> returns one user by exact name: id, username, creation date, link karma, comment karma, total karma, avatar, a short description and the flags is_gold, is_employee, verified and over_18. A suspended, renamed or unknown user returns 404.</p>

- **Documentation:** [https://scrappa.co/docs/reddit-api/reddit_user_profile](https://scrappa.co/docs/reddit-api/reddit_user_profile)
- **API group:** Reddit API
- **Endpoint:** `GET https://scrappa.co/api/reddit/user/profile`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `username` | string | Yes | Reddit username, 3 to 20 characters. Example: spez. |

## Example response

```json
{
    "data": {
        "user": {
            "id": "1w72",
            "url": "https://www.reddit.com/user/spez",
            "is_gold": true,
            "over_18": false,
            "fullname": "t2_1w72",
            "username": "spez",
            "verified": true,
            "avatar_url": "https://styles.redditmedia.com/t5_3k30p/styles/profileIcon_uj015iwx9s7g1.png?width=256&height=256&crop=256:256,smart&s=aa819b0964f6e3019e...",
            "created_at": "2005-06-06T04:00:00+00:00",
            "link_karma": 184586,
            "created_utc": 1118030400,
            "description": "Reddit CEO",
            "is_employee": true,
            "total_karma": 941124,
            "comment_karma": 756538
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "user_profile"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 404 | Not Found | The subreddit, post or user does not exist, is private or is banned. This response is not billable. |
| 503 | Upstream Unavailable | Reddit could not be reached or returned data that does not match the request. This response is not billable and is retryable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
