🚀 Fansly API (Alpha) is live!WIP - Updated Daily
Fansly API Logo
Essentials

API Response Structure

Understand the Api JSON response format, including status codes, data fields, and message structures for developers.


All API responses from Fansly API follow a consistent JSON structure. This makes it easy to handle responses uniformly across your application.

Standard Response Format

Every API response contains the following fields:

FieldTypeDescription
statusCodenumberHTTP status code of the response
messagestringHuman-readable message describing the result
dataobject | array | nullThe response payload (varies by endpoint)
timestampstringISO 8601 timestamp of when the response was generated

Success Response Example

{
    "statusCode": 200,
    "message": "Success",
    "data": {
        "id": "123456",
        "username": "example_user",
        "displayName": "Example User"
    },
    "timestamp": "2026-01-09T21:59:45.908Z"
}

Error Response Example

When an error occurs, the response follows the same structure:

{
    "statusCode": 400,
    "message": "Invalid request parameters",
    "data": null,
    "timestamp": "2026-01-09T21:59:45.908Z"
}

Response Headers

All API responses include the following HTTP headers:

HeaderDescription
Content-TypeAlways application/json

Common Status Codes

Status CodeMessageDescription
200SuccessRequest completed successfully
201CreatedResource was created successfully
400Bad RequestInvalid request parameters
401UnauthorizedMissing or invalid API key
403ForbiddenAPI key doesn't have permission
404Not FoundResource not found
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer-side error

On this page