StreamingNewBeta
Get Stream Session
Get a single stream's stats, viewer count per minute, top chatters and top tippers.
https://v1.apifansly.com/api/fansly
GET
/{account_id}/stats/streams/session/{session_id}
Use a session's id from Get Streams as session_id, not its streamId.
Get Started
All requests to the Fansly API require an API Key. See the Authentication page for details.
curl -X GET "https://v1.apifansly.com/api/fansly/{account_id}/stats/streams/session/{session_id}" \
-H "x-api-key: YOUR_API_KEY"fetch("https://v1.apifansly.com/api/fansly/{account_id}/stats/streams/session/{session_id}", {
method: "GET",
headers: {
"x-api-key": "YOUR_API_KEY"
}
})
.then(response => response.json())
.then(data => console.log(data));import requests
url = "https://v1.apifansly.com/api/fansly/{account_id}/stats/streams/session/{session_id}"
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/{account_id}/stats/streams/session/{session_id}"))
.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/{account_id}/stats/streams/session/{session_id}");
var responseString = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseString);package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://v1.apifansly.com/api/fansly/{account_id}/stats/streams/session/{session_id}"
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()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}Path Parameters
account_id*
stringThe unique identifier for the connected account, retrieved from your Dashboard.
session_id*
stringSession ID, from Get Streams. Not the same as
streamId.Response
viewerSamples has one viewer count per minute of the stream.
{
"statusCode": 200,
"message": "Success",
"data": {
"status_code": 200,
"data": {
"success": true,
"response": {
"channel": {
"id": "streaming_channel_identifier",
"chatRoomId": "chat_room_identifier",
"status": 2
},
"session": {
"id": "stream_session_identifier",
"streamId": "stream_identifier",
"channelId": "streaming_channel_identifier",
"title": "having fun come join",
"startedAt": 1794427224000,
"endedAt": 1794427372000,
"live": false,
"liveViewerCount": 0,
"durationMs": 148000,
"tipCount": 0,
"tipAmount": 0,
"ticketCount": 0,
"ticketAmount": 0,
"peakViewerCount": 4,
"averageViewerCount": 2,
"viewerSampleCount": 3,
"viewerSource": "samples",
"messageCount": 0,
"chatterCount": 0
},
"viewerSamples": [
{
"minuteBucket": 1794427200000,
"viewerCount": 0
},
{
"minuteBucket": 1794427260000,
"viewerCount": 4
},
{
"minuteBucket": 1794427320000,
"viewerCount": 3
}
],
"topChatters": [],
"topTippers": [],
"aggregationData": {
"accounts": []
}
}
}
},
"timestamp": "2026-11-11T21:38:28.584Z"
}