Subscriptions
Get Member Activity
Retrieve available account-scoped activity entries for a member, ordered from newest to oldest.
GET https://api.dyntube.com/v1/members/{id}/activity
Headers
| Name | Type | Description |
|---|---|---|
| Authorization | String | Bearer YOUR_API_KEY |
Path Parameters
| Name | Type | Description |
|---|---|---|
| id | String | Member ID |
Query Parameters
| Name | Type | Description |
|---|---|---|
| page | Integer | Page number (default 1) |
| size | Integer | Page size (default 20) |
200: OK
json
{
"items": [
{
"id": "log_01",
"memberId": "Dq77UeAJEDQFSkYJMkcg",
"planId": "154Tr3xdUSvm3uKICa92w",
"type": 11,
"source": 2,
"message": "Subscription paused",
"created": "2025-12-05T13:25:10.123Z"
},
{
"id": "log_02",
"memberId": "Dq77UeAJEDQFSkYJMkcg",
"planId": "154Tr3xdUSvm3uKICa92w",
"type": 9,
"source": 2,
"message": "Cancel at period end",
"created": "2025-12-05T13:15:00.456Z"
}
],
"page": 1,
"size": 20,
"total": 2,
"totalPages": 1
}Error Responses
| Status Code | Description |
|---|---|
| 400 | Bad Request |
| 401 | Unauthorized |
Notes
- Use page and size to move through a member's available activity history.
- Sources identify where each recorded activity originated: 1=Dashboard, 2=API, 3=System.
Code Samples
C#
csharp
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "YOUR_API_KEY");
var response = await client.GetAsync("https://api.dyntube.com/v1/members/{id}/activity?page=1&size=20");
var body = await response.Content.ReadAsStringAsync();Node.js
javascript
const axios = require('axios');
axios.get('https://api.dyntube.com/v1/members/{id}/activity', {
params: { page: 1, size: 20 },
headers: { Authorization: 'Bearer YOUR_API_KEY' }
}).then(res => console.log(res.data));Python
python
import requests
resp = requests.get(
'https://api.dyntube.com/v1/members/{id}/activity',
params={'page': 1, 'size': 20},
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
print(resp.json())PHP
php
<?php
$url = "https://api.dyntube.com/v1/members/{id}/activity?page=1&size=20";
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY"]
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Related Pages
- Get a member to inspect the member profile.
- Get member's plans to compare activity with assigned plans.
- Get video analytics for broader playback analytics.
Something missing or wrong here? Tell us and we will correct it. New to DynTube? Start with uploading and embedding.