# StreamElements

> Read stream activity, chat commands, loyalty points, overlays and tips.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/streamelements

## Actions

### Get channel details

Get channel details.

**Inputs**: None.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {}
}
```

### Get channel tip leaderboard

Get channel tip leaderboard.

**Inputs**: None.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {}
}
```

### Get chat timer

Get chat timer.

**Inputs**

- Timer (`timer_id`, text, required): Chat timer.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {
    "_id": "example",
    "chatLines": 1,
    "enabled": true,
    "message": "example",
    "name": "example"
  }
}
```

### Get custom chat command

Get custom chat command.

**Inputs**

- Command (`command_id`, text, required): Custom chat command.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {
    "_id": "example",
    "accessLevel": 1,
    "command": "example",
    "enabled": true,
    "response": "example",
    "type": "example"
  }
}
```

### Get stream activity

Get stream activity.

**Inputs**

- Activity ID (`activity_id`, text, required): Activity ID from List stream activities.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {
    "_id": "example",
    "createdAt": "example",
    "data": {
      "amount": 1,
      "message": "example",
      "tier": "example",
      "username": "example"
    },
    "provider": "example",
    "type": "example"
  }
}
```

### Get viewer loyalty points

Get viewer loyalty points.

**Inputs**

- Viewer (`viewer`, text, required): Viewer’s username.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {
    "points": 1,
    "username": "example"
  }
}
```

### Get viewer loyalty rank

Get viewer loyalty rank.

**Inputs**

- Viewer (`viewer`, text, required): Viewer’s username.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {
    "rank": 1
  }
}
```

### Get your StreamElements channel

Get your StreamElements channel.

**Inputs**: None.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {
    "_id": "example",
    "displayName": "example",
    "provider": "example",
    "username": "example"
  }
}
```

### List channel emotes

List channel emotes.

**Inputs**: None.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {}
}
```

### List channel tips

List channel tips.

**Inputs**

- Limit (`limit`, number): Maximum number of results on the page. From 1 to 100.
- Offset (`offset`, number): Number of results to skip. From 0 to 1000000.
- Start time (`start_time`, date and time): Include tips after this time.
- End time (`end_time`, date and time): Include tips before this time.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {}
}
```

### List chat timers

List chat timers.

**Inputs**: None.

**Outputs**

- `data` (list): The response from StreamElements.

**Example output**

```json
{
  "data": [
    {
      "_id": "example",
      "chatLines": 1,
      "enabled": true,
      "message": "example",
      "name": "example"
    }
  ]
}
```

### List custom chat commands

List custom chat commands.

**Inputs**: None.

**Outputs**

- `data` (list): The response from StreamElements.

**Example output**

```json
{
  "data": [
    {
      "_id": "example",
      "accessLevel": 1,
      "command": "example",
      "enabled": true,
      "response": "example",
      "type": "example"
    }
  ]
}
```

### List default chat commands

List default chat commands.

**Inputs**: None.

**Outputs**

- `data` (list): The response from StreamElements.

**Example output**

```json
{
  "data": [
    {
      "_id": "example",
      "accessLevel": 1,
      "command": "example",
      "enabled": true,
      "response": "example",
      "type": "example"
    }
  ]
}
```

### List loyalty points leaderboard

List loyalty points leaderboard.

**Inputs**

- Limit (`limit`, number): Maximum number of results on the page. From 1 to 100.
- Offset (`offset`, number): Number of results to skip. From 0 to 1000000.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {}
}
```

### List loyalty store items

List loyalty store items.

**Inputs**

- Limit (`limit`, number): Maximum number of results on the page. From 1 to 100.
- Offset (`offset`, number): Number of results to skip. From 0 to 1000000.

**Outputs**

- `data` (list): The response from StreamElements.

**Example output**

```json
{
  "data": [
    {
      "_id": "example",
      "cost": 1,
      "enabled": true,
      "name": "example"
    }
  ]
}
```

### List loyalty store redemptions

List loyalty store redemptions.

**Inputs**

- Limit (`limit`, number): Maximum number of results on the page. From 1 to 100.
- Offset (`offset`, number): Number of results to skip. From 0 to 1000000.
- Pending (`pending`, true/false): Show only pending or completed redemptions.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {}
}
```

### List public chat commands

List public chat commands.

**Inputs**: None.

**Outputs**

- `data` (list): The response from StreamElements.

**Example output**

```json
{
  "data": [
    {
      "_id": "example",
      "accessLevel": 1,
      "command": "example",
      "enabled": true,
      "response": "example",
      "type": "example"
    }
  ]
}
```

### List stream activities

List stream activities.

**Inputs**

- Limit (`limit`, number): Maximum number of results on the page. From 1 to 100.
- Start time (`start_time`, date and time): Include activity after this time.
- End time (`end_time`, date and time): Include activity before this time.

**Outputs**

- `data` (list): The response from StreamElements.

**Example output**

```json
{
  "data": [
    {
      "_id": "example",
      "createdAt": "example",
      "data": {
        "amount": 1,
        "message": "example",
        "tier": "example",
        "username": "example"
      },
      "provider": "example",
      "type": "example"
    }
  ]
}
```

### List stream overlays

List stream overlays.

**Inputs**

- Search (`search`, text): Words to match against overlay names.

**Outputs**

- `data` (object): The response from StreamElements.

**Example output**

```json
{
  "data": {}
}
```

### List top tips or cheers

List top tips or cheers.

**Inputs**

- Type (`type`, text): Activity to rank. One of: `tip`, `cheer`.
- Period (`period`, text): Period to rank. One of: `alltime`, `months`, `weeks`, `session`.
- Limit (`limit`, number): Maximum number of results on the page. From 1 to 100.

**Outputs**

- `data` (list): The response from StreamElements.

**Example output**

```json
{
  "data": [
    {
      "total": 1,
      "username": "example"
    }
  ]
}
```
