# place.stream.live.getSegments

> Published by [did:web:longos.iameli.link](https://lexicon.garden/identity/did:web:longos.iameli.link)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.live.getSegments)
- [Documentation](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.live.getSegments/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.live.getSegments/examples)

## Definitions

### `place.stream.live.getSegments`

**Type**: `query`

Get a list of livestream segments for a user

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No |  |
| `before` | `string` (datetime) | No |  |
| `userDID` | `string` (did) | Yes | The DID of the potentially-following user |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `segments` | `array` | No |  |

## Raw Schema

```json
{
  "id": "place.stream.live.getSegments",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "segments": {
              "type": "array",
              "items": {
                "ref": "place.stream.segment#segmentView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "userDID"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "before": {
            "type": "string",
            "format": "datetime"
          },
          "userDID": {
            "type": "string",
            "format": "did",
            "description": "The DID of the potentially-following user"
          }
        }
      },
      "description": "Get a list of livestream segments for a user"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
