Skip to main content

Getting Started

This guide will help you make your first API call to FoN.

Step 1: Create an Account

Before using the API, you need a FoN account. Register at fucksornot.com or use the API:

Step 2: Generate an API Token

For programmatic access, generate an API token. First, log in:
Save the JWT token from the response, then generate an API token:
Save your API token securely. It’s only shown once and cannot be retrieved later.

Step 3: Make Your First Upload

Upload an image using your API token:

Step 4: Browse Content

List recent uploads (no authentication required):

Step 5: Vote on Content

Vote on an upload:
This endpoint, like most session-based endpoints, authenticates using the auth-token cookie that’s set automatically when you log in via a browser. For non-browser clients, pass the same JWT returned by the login response as a cookie value, as shown above.

Code Examples

Next Steps

Authentication

Learn more about authentication options

Uploads

Understand upload types and options

Voting

Learn about the voting system

API Reference

Explore all endpoints