Skip to main content

List All Uploads

Get a paginated list of all public uploads.

Request

curl "https://api.fucksornot.com/api/uploads?page=1&limit=12"

Parameters

ParameterTypeDefaultDescription
pageinteger1Page number (1-indexed)
limitinteger12Items per page (max 50)

Response

{
  "uploads": [
    {
      "id": "upload-uuid",
      "user_id": "user-uuid",
      "filename": "abc123.webp",
      "description": "Cool gadget",
      "upload_type": "image",
      "upvotes": 42,
      "downvote_count": 5,
      "created_at": "2025-01-24T12:00:00Z",
      "tags": [...],
      "username": "johndoe"
    }
  ],
  "page": 1,
  "limit": 12
}

Filter by Tags

Get uploads filtered by tags.

Request

curl "https://api.fucksornot.com/api/uploads/filtered?tags=gadget,tech&page=1"

Parameters

ParameterTypeDescription
tagsstringComma-separated tag names to include
excludeTagsstringComma-separated tag names to exclude
excludeUploadIdUUIDUpload to exclude from results
pageintegerPage number
limitintegerItems per page
Get uploads with similar tags, excluding the current one:
curl "https://api.fucksornot.com/api/uploads/filtered?tags=gadget&excludeUploadId=current-upload-uuid"

Recent Items

Get the 6 most recently uploaded items.

Request

curl https://api.fucksornot.com/api/items-recent

Response

{
  "items": [...],
  "type": "recent"
}
This endpoint is cached for 5 minutes.

Top Voted Items

Get the highest voted items.

Request

curl "https://api.fucksornot.com/api/items-top-voted?limit=10&timeRange=week"

Parameters

ParameterTypeDefaultDescription
limitinteger12Number of items
pageinteger1Page number
timeRangestringallday, week, month, or all

Response

{
  "uploads": [...],
  "page": 1,
  "limit": 10
}

Caching

EndpointCache Duration
/api/uploads2 minutes
/api/items-recent5 minutes
/api/items-top-voted2 minutes