# place.stream.getLikes

> Get likes for a subject (video or comment).

- Kind: query
- Authority: 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.getLikes)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.getLikes/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.getLikes/analytics)

## Query (`place.stream.getLikes`)

Type: query · GET

### Parameters (query string)

- `cursor` (string): Optional pagination cursor.
- `limit` (integer): Maximum number of likes to return.
  - Constraints: minimum: 1, maximum: 100, default: 50
- `subject` (string · at-uri, required): AT-URI of the subject (video or comment).

### Output (application/json)

- `count` (integer, required): Total number of likes for this subject.
  - Constraints: minimum: 0
- `cursor` (string)
- `likes` (array)
  - `items` (ref)
    - Reference: `#likeView`
- `subject` (string · at-uri, required)

## #likeView (`place.stream.getLikes#likeView`)

Type: object

### Properties

- `author` (ref, required)
  - Reference: `app.bsky.actor.defs#profileViewBasic`
- `cid` (string · cid, required)
- `indexedAt` (string · datetime, required)
- `record` (unknown, required)
- `uri` (string · at-uri, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "likeView": {
      "properties": {
        "author": {
          "ref": "app.bsky.actor.defs#profileViewBasic",
          "type": "ref"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "record": {
          "type": "unknown"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "author",
        "record",
        "indexedAt"
      ],
      "type": "object"
    },
    "main": {
      "description": "Get likes for a subject (video or comment).",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "description": "Total number of likes for this subject.",
              "minimum": 0,
              "type": "integer"
            },
            "cursor": {
              "type": "string"
            },
            "likes": {
              "items": {
                "ref": "#likeView",
                "type": "ref"
              },
              "type": "array"
            },
            "subject": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "subject",
            "count"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "Optional pagination cursor.",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "description": "Maximum number of likes to return.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "subject": {
            "description": "AT-URI of the subject (video or comment).",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "subject"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "place.stream.getLikes",
  "lexicon": 1
}
```
