Webhooks are now available in the Fansly API Console! 🚀
Fansly API Logo
Account

List Accounts

Get all connected Fansly accounts for your API key.


Get a list of all Fansly accounts currently linked to your API key.

https://v1.apifansly.com
GET
/api/fansly/accounts

Get Started

All requests to the Fansly API require an API Key. See the Authentication page for details.

Authentication

curl -X GET "https://v1.apifansly.com/api/fansly/accounts" \
  -H "x-api-key: YOUR_API_KEY"
fetch("https://v1.apifansly.com/api/fansly/accounts", {
  method: "GET",
  headers: {
    "x-api-key": "YOUR_API_KEY"
  }
})
import requests

url = "https://v1.apifansly.com/api/fansly/accounts"
headers = {"x-api-key": "YOUR_API_KEY"}

response = requests.get(url, headers=headers)
print(response.json())
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

HttpClient client = HttpClient.newHttpClient();

HttpRequest request = HttpRequest.newBuilder()
        .uri(URI.create("https://v1.apifansly.com/api/fansly/accounts"))
        .header("x-api-key", "YOUR_API_KEY")
        .GET()
        .build();

client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
        .thenApply(HttpResponse::body)
        .thenAccept(System.out::println)
        .join();
using System.Net.Http;
using System.Threading.Tasks;

var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");

var response = await client.GetAsync("https://v1.apifansly.com/api/fansly/accounts");
var responseString = await response.Content.ReadAsStringAsync();

Console.WriteLine(responseString);
package main

import (
    "fmt"
    "net/http"
)

func main() {
    url := "https://v1.apifansly.com/api/fansly/accounts"
    req, _ := http.NewRequest("GET", url, nil)
    req.Header.Set("x-api-key", "YOUR_API_KEY")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    fmt.Println(resp.Status)
}

Response

{
    "statusCode": 200,
    "message": "Success",
    "data": {
        "success": true,
        "count": 1,
        "accounts": [
            {
                "accountId": "fansly_xxxxxxxxxxxxxxxxxx",
                "email": "xxxxxxxx@xxxx.com",
                "name": "creator acc",
                "country": "XX",
                "createdAt": "2026-01-01T00:00:00.000Z"
            }
        ]
    },
    "timestamp": "2026-01-01T00:00:00.000Z"
}

Response Body

FieldTypeDescription
statusCodenumberThe HTTP status code of the response (e.g., 200)
messagestringA human-readable message about the result
dataobjectThe main response payload
├─ successbooleanWhether the request was successful
├─ countnumberTotal number of connected accounts
└─ accountsarrayA list of connected account objects
├─ accountIdstringUnique identifier for the Fansly account
├─ emailstringEmail address associated with the account
├─ namestringDisplay name of the account
├─ countrystringProxy country ISO 3166-1 alpha-2 country code
└─ createdAtstringISO 8601 timestamp of when the account was connected
timestampstringISO 8601 timestamp of the response generation

On this page