# place.stream.live.getRecommendations

> Get the list of streamers recommended by a user

- Kind: query
- Authority: live.stream.place
- Lexicon: 1
- Published by [stream.place](https://lexicon.garden/identity/did:plc:rbvrr34edl5ddpuwcubjiost), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.live.getRecommendations)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.live.getRecommendations/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.live.getRecommendations/analytics)

## Query (`place.stream.live.getRecommendations`)

Type: query · GET

### Parameters (query string)

- `userDID` (string · did, required): The DID of the user whose recommendations to fetch

### Output (application/json)

- `recommendations` (array, required): Ordered list of recommendations
  - `items` (union)
    - One of: `#livestreamRecommendation`
- `userDID` (string · did): The user DID this recommendation is for

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

Type: object

### Properties

- `did` (string · did, required): The DID of the recommended streamer
- `source` (string, required): Source of the recommendation
  - Constraints: enum: streamer | follows | host

## Schema

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