OnlyFans API
Account

List Accounts

List all connected OnlyFans accounts.

GET
/api/accounts
AuthorizationBearer <token>

You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.

In: header

Response Body

curl -X GET "https://app.onlyfansapi.com/api/accounts"
fetch("https://app.onlyfansapi.com/api/accounts")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://app.onlyfansapi.com/api/accounts"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://app.onlyfansapi.com/api/accounts"

response = requests.request("GET", url)

print(response.text)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;

HttpClient client = HttpClient.newBuilder()
  .connectTimeout(Duration.ofSeconds(10))
  .build();

HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
  .uri(URI.create("https://app.onlyfansapi.com/api/accounts"))
  .GET()
  .build();

try {
  HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString());
  System.out.println("Status code: " + response.statusCode());
  System.out.println("Response body: " + response.body());
} catch (Exception e) {
  e.printStackTrace();
}
using System;
using System.Net.Http;
using System.Text;

var client = new HttpClient();
var response = await client.GetAsync("https://app.onlyfansapi.com/api/accounts");
var responseBody = await response.Content.ReadAsStringAsync();
[
  {
    "id": "acct_123",
    "is_authenticated": true,
    "authentication_progress": "signed_in",
    "display_name": "oft",
    "onlyfans_user_data": {
      "id": 123,
      "ip": "127.0.0.1",
      "csrf": "csrf",
      "name": "Name",
      "view": "f",
      "about": "<p>about</p>",
      "email": "[email protected]",
      "wsUrl": "wss://ws2.onlyfans.com/ws3/03",
      "avatar": "https://example.com",
      "header": "https://example.com",
      "isAuth": true,
      "ivFlow": "default",
      "upload": {
        "geoUploadArgs": {
          "preset": "of_beta",
          "isDelay": true,
          "additional": {
            "user": "123"
          },
          "needThumbs": true,
          "preset_png": "of_png",
          "protected_preset": "of_drm"
        }
      },
      "canChat": true,
      "hasTags": false,
      "website": null,
      "advBlock": [
        "subscribe_offers"
      ],
      "ivStatus": "approved",
      "joinDate": "2025-04-05T00:00:00+00:00",
      "lastSeen": "2025-05-16T10:09:48+00:00",
      "location": null,
      "paidFeed": false,
      "username": "user",
      "wishlist": null,
      "hasLabels": false,
      "ivCountry": "US",
      "canAddCard": true,
      "canPinPost": true,
      "creditsMax": 200,
      "creditsMin": 10,
      "headerSize": {
        "width": 2126,
        "height": 1535
      },
      "isVerified": false,
      "postsCount": 0,
      "audiosCount": 0,
      "hasNewHints": true,
      "hasScenario": true,
      "isPerformer": false,
      "mediasCount": 0,
      "photosCount": 0,
      "videosCount": 0,
      "wsAuthToken": "wsAuthToken",
      "avatarThumbs": {
        "c50": "https://example.com",
        "c144": "https://example.com"
      },
      "canLookStory": true,
      "hasNewAlerts": false,
      "headerThumbs": {
        "w480": "https://example.com",
        "w760": "https://example.com"
      },
      "isOtpEnabled": true,
      "ivFailReason": null,
      "newTagsCount": 0,
      "creditBalance": 0,
      "faceIdRegular": [],
      "isAgeVerified": false,
      "isAllowTweets": false,
      "isMakePayment": false,
      "needIVApprove": false,
      "watermarkText": "OnlyFans.com/user",
      "canCreateLists": true,
      "canPayInternal": true,
      "favoritedCount": 0,
      "favoritesCount": 0,
      "hasPinnedPosts": false,
      "isEmailChecked": true,
      "isWantComments": true,
      "canCommentStory": true,
      "countPinnedChat": 0,
      "isEmailRequired": false,
      "isPaywallPassed": true,
      "isRealPerformer": false,
      "isVisibleOnline": true,
      "showPostsInFeed": true,
      "subscribesCount": 123,
      "twitterUsername": "user",
      "canSendChatToAll": false,
      "isCreditsEnabled": true,
      "pinnedPostsCount": 0,
      "subscribersCount": 123,
      "chatMessagesCount": 123,
      "countPriorityChat": 123,
      "hasNotViewedStory": false,
      "hasPurchasedPosts": false,
      "hasWatermarkPhoto": true,
      "hasWatermarkVideo": true,
      "isDeleteInitiated": false,
      "isReferrerAllowed": false,
      "watermarkPosition": "bottom_right",
      "archivedPostsCount": 0,
      "isSpotifyConnected": false,
      "isTwitterConnected": false,
      "notificationsCount": 123,
      "walletFirstRebills": false,
      "canConnectOfAccount": true,
      "connectedOfAccounts": [],
      "hasInternalPayments": false,
      "hasNewTicketReplies": {
        "open": false,
        "closed": false,
        "solved": false
      },
      "isRealCardConnected": true,
      "maxPinnedPostsCount": 5,
      "isWalletAutorecharge": false,
      "canReceiveChatMessage": false,
      "walletAutorechargeMin": 0,
      "hasSystemNotifications": false,
      "isLegalApprovedAllowed": true,
      "isPaymentCardConnected": true,
      "ageVerificationRequired": false,
      "payoutLegalApproveState": "rejected",
      "walletAutorechargeAmount": 0,
      "canAlternativeWalletTopUp": false,
      "enabledImageEditorForChat": true,
      "privateArchivedPostsCount": 0,
      "isMarkdownDisabledForAbout": true,
      "avatarHeaderConverterUpload": true,
      "hasNewChangedPriceSubscriptions": false
    }
  }
]