# List activities of a video channel

`GET /api/v1/video-channels/{channelHandle}/activities`

**PeerTube >= 8.0**

Authentication: no security requirement declared for this operation.

Parameters:

- `channelHandle` (path, string, required) - The video channel handle
  Type: string
  
  Example:
  
  ```json
  "my_username | my_username@example.com"
  ```

- `start` (query, integer, optional) - Offset used to paginate results
  Type: integer
  
  minimum: 0

- `count` (query, integer, optional) - Number of items to return
  Type: integer
  
  default: 15
  
  minimum: 1
  
  maximum: 100

- `sort` (query, string, optional) - Sort column
  Type: string
  
  Example:
  
  ```json
  "-createdAt"
  ```

Responses:

- 200: successful operation

Content type: application/json

Type: ChannelActivityListResponse

Schema: [ChannelActivityListResponse](https://sourcey-peertube.pages.dev/api-rest-reference/models/channelactivitylistresponse.md)

- `total` (optional)
  Type: integer
  
  Example:
  
  ```json
  1
  ```

- `data` (optional)
  Type: Array<object>
  
  Items:
    Type: object
    
    - `id` (optional)
      Type: integer
    
    - `account` (optional)
      Reference: [AccountSummary](https://sourcey-peertube.pages.dev/api-rest-reference/models/accountsummary.md); Type: AccountSummary; nullable
      
      The account may have been deleted
    
    - `action` (optional)
      Type: object
      
      - `id` (optional)
        Reference: [VideoChannelActivityAction](https://sourcey-peertube.pages.dev/api-rest-reference/models/videochannelactivityaction.md); Type: VideoChannelActivityAction
        
        The activity action:
          - CREATE: 1
          - UPDATE: 2
          - DELETE: 3
          - UPDATE_CAPTIONS: 4
          - UPDATE_CHAPTERS: 5
          - UPDATE_PASSWORDS: 6
          - CREATE_STUDIO_TASKS: 7
          - UPDATE_SOURCE_FILE: 8
          - UPDATE_ELEMENTS: 9
          - REMOVE_CHANNEL_OWNERSHIP: 10
          - CREATE_CHANNEL_OWNERSHIP: 11
        
        
        enum: [1,2,3,4,5,6,7,8,9,10,11]
      
      - `label` (optional)
        Type: string
    
    - `targetType` (optional)
      Type: object
      
      - `id` (optional)
        Reference: [VideoChannelActivityTarget](https://sourcey-peertube.pages.dev/api-rest-reference/models/videochannelactivitytarget.md); Type: VideoChannelActivityTarget
        
        The activity target:
          - VIDEO: 1,
          - PLAYLIST: 2,
          - CHANNEL: 3,
          - CHANNEL_SYNC: 4,
          - VIDEO_IMPORT: 5
        
        
        enum: [1,2,3,4,5]
      
      - `label` (optional)
        Type: string
    
    - `details` (optional)
      Type: object
      
      Additional properties: true
    
    - `createdAt` (optional)
      Type: string, date-time
    
    - `channel` (optional)
      Type: object
      
      - `id` (optional)
        Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
        
        minimum: 1
        
        Example:
        
        ```json
        42
        ```
      
      - `name` (optional)
        Type: string
      
      - `displayName` (optional)
        Type: string
      
      - `url` (optional)
        Type: string, url
    
    - `video` (optional)
      Type: object; nullable
      
      - `id` (optional)
        Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
        
        minimum: 1
        
        Example:
        
        ```json
        42
        ```
      
      - `name` (optional)
        Type: string
      
      - `uuid` (optional)
        Reference: [UUIDv4](https://sourcey-peertube.pages.dev/api-rest-reference/models/uuidv4.md); Type: UUIDv4, uuid
        
        minLength: 36
        
        maxLength: 36
        
        pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
        
        Example:
        
        ```json
        "9c9de5e8-0a1e-484a-b099-e80766180a6d"
        ```
      
      - `shortUUID` (optional)
        Reference: [shortUUID](https://sourcey-peertube.pages.dev/api-rest-reference/models/shortuuid.md); Type: shortUUID
        
        translation of a uuid v4 with a bigger alphabet to have a shorter uuid
        
        Example:
        
        ```json
        "2y84q2MQUMWPbiEcxNXMgC"
        ```
      
      - `url` (optional)
        Type: string, url
      
      - `isLive` (optional)
        Type: boolean
    
    - `videoImport` (optional)
      Type: object; nullable
      
      - `id` (optional)
        Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
        
        minimum: 1
        
        Example:
        
        ```json
        42
        ```
      
      - `name` (optional)
        Type: string
      
      - `uuid` (optional)
        Reference: [UUIDv4](https://sourcey-peertube.pages.dev/api-rest-reference/models/uuidv4.md); Type: UUIDv4, uuid
        
        minLength: 36
        
        maxLength: 36
        
        pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
        
        Example:
        
        ```json
        "9c9de5e8-0a1e-484a-b099-e80766180a6d"
        ```
      
      - `shortUUID` (optional)
        Reference: [shortUUID](https://sourcey-peertube.pages.dev/api-rest-reference/models/shortuuid.md); Type: shortUUID
        
        translation of a uuid v4 with a bigger alphabet to have a shorter uuid
        
        Example:
        
        ```json
        "2y84q2MQUMWPbiEcxNXMgC"
        ```
      
      - `url` (optional)
        Type: string, url
      
      - `targetUrl` (optional)
        Type: string, uri
    
    - `playlist` (optional)
      Type: object; nullable
      
      - `id` (optional)
        Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
        
        minimum: 1
        
        Example:
        
        ```json
        42
        ```
      
      - `name` (optional)
        Type: string
      
      - `uuid` (optional)
        Reference: [UUIDv4](https://sourcey-peertube.pages.dev/api-rest-reference/models/uuidv4.md); Type: UUIDv4, uuid
        
        minLength: 36
        
        maxLength: 36
        
        pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
        
        Example:
        
        ```json
        "9c9de5e8-0a1e-484a-b099-e80766180a6d"
        ```
      
      - `shortUUID` (optional)
        Reference: [shortUUID](https://sourcey-peertube.pages.dev/api-rest-reference/models/shortuuid.md); Type: shortUUID
        
        translation of a uuid v4 with a bigger alphabet to have a shorter uuid
        
        Example:
        
        ```json
        "2y84q2MQUMWPbiEcxNXMgC"
        ```
      
      - `url` (optional)
        Type: string, url
    
    - `channelSync` (optional)
      Type: object; nullable
      
      - `id` (optional)
        Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
        
        minimum: 1
        
        Example:
        
        ```json
        42
        ```
      
      - `externalChannelUrl` (optional)
        Type: string, uri

## Examples

### cURL

```bash
curl -X GET 'https://peertube2.cpy.re/api/v1/video-channels/my_username%20%7C%20my_username%40example.com/activities?count=15'
```

### JavaScript

```javascript
const response = await fetch('https://peertube2.cpy.re/api/v1/video-channels/my_username%20%7C%20my_username%40example.com/activities?count=15', {
  method: 'GET',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get('https://peertube2.cpy.re/api/v1/video-channels/my_username%20%7C%20my_username%40example.com/activities?count=15')
print(response.text)
```
