# Reddit Profile API

> Retrieve profile from Reddit with a single API request.

- Request: `GET https://fetchgoblin.com/api/data/v1/reddit/profile`
- Cost: 1 credit per successful request. Failed requests are not charged.
- Authentication: `x-api-key` header
- HTML reference: https://fetchgoblin.com/docs/get-v1-reddit-profile
- MCP: call tool `call_endpoint` with `endpoint_id: "get-v1-reddit-profile"` at https://fetchgoblin.com/mcp

## Query parameters

| Parameter | Required | Type | Description |
| --- | --- | --- | --- |
| `url` | yes | string | A Reddit user profile URL. Both /user/ and /u/ links are accepted. Example: `https://www.reddit.com/user/karmanaut/` |

## Example request

```sh
curl --request GET 'https://fetchgoblin.com/api/data/v1/reddit/profile?url=https%3A%2F%2Fwww.reddit.com%2Fuser%2Fkarmanaut%2F' \
  --header "x-api-key: $FETCHGOBLIN_API_KEY"
```

## Example response

Some platform fields may be absent or null. Every response also includes `credits_charged`, `credits_remaining` and `request_id`.

```json
{
  "success": true,
  "id": "3ev2p",
  "username": "karmanaut",
  "url": "https://www.reddit.com/user/karmanaut/",
  "display_name": null,
  "bio": null,
  "avatar_url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_1.png",
  "banner_url": null,
  "created_utc": 1237134866,
  "link_karma": null,
  "comment_karma": null,
  "total_karma": 589115,
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
```
