curl --request GET \
--url https://api.recoupable.dev/api/players/{id}/activity \
--header 'x-api-key: <api-key>'import requests
url = "https://api.recoupable.dev/api/players/{id}/activity"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.recoupable.dev/api/players/{id}/activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.recoupable.dev/api/players/{id}/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.recoupable.dev/api/players/{id}/activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.recoupable.dev/api/players/{id}/activity")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recoupable.dev/api/players/{id}/activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"measurement": "browser_reported_playback",
"dspStreams": null,
"periodDays": 30,
"offset": 123,
"limit": 100,
"report": {
"sessions": 123,
"connectedFans": 123,
"reportedListeningMs": 123,
"playEvents": 123,
"campaigns": [
{
"provider": "<string>",
"source": "<string>",
"campaign": "<string>",
"sessions": 123,
"listened_ms": 123
}
],
"activity": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "<string>",
"provider": "spotify",
"listened_ms": 123,
"received_at": "2023-11-07T05:31:56Z",
"track_id": "<string>",
"position_ms": 123,
"fan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_name": "<string>"
}
]
}
}{
"error": "<string>",
"status": "<string>"
}{
"error": "<string>",
"status": "<string>"
}{
"error": "<string>",
"status": "<string>"
}{
"error": "<string>",
"status": "<string>"
}{
"error": "<string>",
"status": "<string>"
}{
"error": "<string>",
"status": "<string>"
}Read listening activity
Private 30-day summary plus up to 100 events, newest first. Returns measurement=browser_reported_playback, dspStreams=null, periodDays, offset, limit and report (sessions, connectedFans, reportedListeningMs, playEvents, campaigns, activity). Activity has session_id, provider, track_id, event, position_ms, listened_ms, received_at, fan_id and display_name. Anonymous Apple sessions have no fan identity. These are reported SDK observations, not DSP stream counts, cross-device monitoring, or causal uplift. MCP: get_release_player_activity.
curl --request GET \
--url https://api.recoupable.dev/api/players/{id}/activity \
--header 'x-api-key: <api-key>'import requests
url = "https://api.recoupable.dev/api/players/{id}/activity"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.recoupable.dev/api/players/{id}/activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.recoupable.dev/api/players/{id}/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.recoupable.dev/api/players/{id}/activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.recoupable.dev/api/players/{id}/activity")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recoupable.dev/api/players/{id}/activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"measurement": "browser_reported_playback",
"dspStreams": null,
"periodDays": 30,
"offset": 123,
"limit": 100,
"report": {
"sessions": 123,
"connectedFans": 123,
"reportedListeningMs": 123,
"playEvents": 123,
"campaigns": [
{
"provider": "<string>",
"source": "<string>",
"campaign": "<string>",
"sessions": 123,
"listened_ms": 123
}
],
"activity": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "<string>",
"provider": "spotify",
"listened_ms": 123,
"received_at": "2023-11-07T05:31:56Z",
"track_id": "<string>",
"position_ms": 123,
"fan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_name": "<string>"
}
]
}
}{
"error": "<string>",
"status": "<string>"
}{
"error": "<string>",
"status": "<string>"
}{
"error": "<string>",
"status": "<string>"
}{
"error": "<string>",
"status": "<string>"
}{
"error": "<string>",
"status": "<string>"
}{
"error": "<string>",
"status": "<string>"
}Authorizations
Path Parameters
Query Parameters
Authorized workspace; omit for the authenticated account. Never send account_id.
0 <= x <= 100000Response
PlayerReportResponse fields returned by the release player service.
Reporting envelope uses camelCase. Nested activity and campaign rows intentionally expose raw database snake_case fields.
Was this page helpful?
