# com.getorbyt.video.getAccountLoopStats

> Published by [getorbyt.com](https://lexicon.garden/identity/did:plc:2xrqztnmzlckb3xfuuukupso)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.video.getAccountLoopStats)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.video.getAccountLoopStats/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.video.getAccountLoopStats/examples)

## Definitions

### `com.getorbyt.video.getAccountLoopStats#accountStats`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `loopCount` | `integer` | Yes |  |
| `loopsConsumedCount` | `integer` | Yes |  |

### `com.getorbyt.video.getAccountLoopStats`

**Type**: `query`

Canonical public earned and consumed loop totals for accounts.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `dids` | `array` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `stats` | `array` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "accountStats": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "loopCount": {
          "minimum": 0,
          "type": "integer"
        },
        "loopsConsumedCount": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "did",
        "loopCount",
        "loopsConsumedCount"
      ],
      "type": "object"
    },
    "main": {
      "description": "Canonical public earned and consumed loop totals for accounts.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "stats": {
              "items": {
                "ref": "#accountStats",
                "type": "ref"
              },
              "maxLength": 50,
              "type": "array"
            }
          },
          "required": [
            "stats"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "dids": {
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 50,
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "dids"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.getorbyt.video.getAccountLoopStats",
  "lexicon": 1
}
```
