Skip to main content
Get the authenticated user’s profile data including uploads, votes, and statistics.

Request

curl "https://fucksornot.com/api/profile?type=counts" \
  -H "Cookie: auth-token=YOUR_JWT_TOKEN"

Parameters

ParameterTypeDescription
typestringData to retrieve: uploads, votes, or counts. Defaults to uploads if omitted.

Response

counts is included in the response regardless of the type requested.

With type=counts

{
  "counts": {
    "uploads": 42,
    "votes": 156
  }
}

With type=uploads

{
  "uploads": [
    {
      "id": "upload-uuid",
      "filename": "image.webp",
      "description": "My upload",
      "upvotes": 10,
      "downvote_count": 2,
      "created_at": "2025-01-24T12:00:00Z",
      "tags": ["funny", "memes"]
    }
  ],
  "counts": {
    "uploads": 42,
    "votes": 156
  }
}

With type=votes

{
  "votes": [
    {
      "id": "vote-uuid",
      "upload_id": "upload-uuid",
      "vote": "fucks",
      "created_at": "2025-01-24T12:00:00Z"
    }
  ],
  "counts": {
    "uploads": 42,
    "votes": 156
  }
}

Errors

StatusDescription
400Invalid type value (must be uploads, votes, or counts)
401Not authenticated or invalid token

Caching

This endpoint is cached for 30 seconds with private cache control.

Use Cases

  • Display user dashboard
  • Show activity statistics
  • List user’s content and votes