# place.stream.live.getRecommendations

> 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.getRecommendations)
- [Documentation](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.live.getRecommendations/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.live.getRecommendations/examples)

## Definitions

### `place.stream.live.getRecommendations`

**Type**: `query`

Get the list of streamers recommended by a user

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `userDID` | `string` (did) | Yes | The DID of the user whose recommendations to fetch |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `userDID` | `string` (did) | No | The user DID this recommendation is for |
| `recommendations` | `array` | Yes | Ordered list of recommendations |

### `place.stream.live.getRecommendations#livestreamRecommendation`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | The DID of the recommended streamer |
| `source` | `string` | Yes | Source of the recommendation |

## Raw Schema

```json
{
  "id": "place.stream.live.getRecommendations",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "recommendations"
          ],
          "properties": {
            "userDID": {
              "type": "string",
              "format": "did",
              "description": "The user DID this recommendation is for"
            },
            "recommendations": {
              "type": "array",
              "items": {
                "refs": [
                  "#livestreamRecommendation"
                ],
                "type": "union"
              },
              "description": "Ordered list of recommendations"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "userDID"
        ],
        "properties": {
          "userDID": {
            "type": "string",
            "format": "did",
            "description": "The DID of the user whose recommendations to fetch"
          }
        }
      },
      "description": "Get the list of streamers recommended by a user"
    },
    "livestreamRecommendation": {
      "type": "object",
      "required": [
        "did",
        "source"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did",
          "description": "The DID of the recommended streamer"
        },
        "source": {
          "enum": [
            "streamer",
            "follows",
            "host"
          ],
          "type": "string",
          "description": "Source of the recommendation"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
