# place.stream.getLikes

> Published by [moderation.stream.place](https://lexicon.garden/identity/did:plc:gqtagsooi75obldmytuow57q)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:gqtagsooi75obldmytuow57q/place.stream.getLikes)
- [Documentation](https://lexicon.garden/lexicon/did:plc:gqtagsooi75obldmytuow57q/place.stream.getLikes/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:gqtagsooi75obldmytuow57q/place.stream.getLikes/examples)

## Definitions

### `place.stream.getLikes`

**Type**: `query`

Get likes for a subject (video or comment).

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum number of likes to return. |
| `cursor` | `string` | No | Optional pagination cursor. |
| `subject` | `string` (at-uri) | Yes | AT-URI of the subject (video or comment). |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `count` | `integer` | Yes | Total number of likes for this subject. |
| `likes` | `array` | No |  |
| `cursor` | `string` | No |  |
| `subject` | `string` (at-uri) | Yes |  |

### `place.stream.getLikes#likeView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `author` | `ref` → `app.bsky.actor.defs#profileViewBasic` | Yes |  |
| `record` | `unknown` | Yes |  |
| `indexedAt` | `string` (datetime) | Yes |  |

## Raw Schema

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