# fyi.atstore.reviews.listForListing

> Published by [atstore.fyi](https://lexicon.garden/identity/did:plc:dvy6bdnofdfc4php4s5b457d)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:dvy6bdnofdfc4php4s5b457d/fyi.atstore.reviews.listForListing)
- [Documentation](https://lexicon.garden/lexicon/did:plc:dvy6bdnofdfc4php4s5b457d/fyi.atstore.reviews.listForListing/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:dvy6bdnofdfc4php4s5b457d/fyi.atstore.reviews.listForListing/examples)

## Definitions

### `fyi.atstore.reviews.listForListing`

**Type**: `query`

List reviews for a directory listing (mirrored Tap data plus profile enrichment).

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT URI of the fyi.atstore.listing.detail record. |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `reviews` | `array` | Yes |  |

#### Errors

- **ListingNotFound**
- **InvalidParams**
- **InvalidCursor**

### `fyi.atstore.reviews.listForListing#listingReviewView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `text` | `string` | No |  |
| `rating` | `integer` | Yes |  |
| `canReply` | `boolean` | Yes |  |
| `authorDid` | `string` (did) | Yes |  |
| `replyCount` | `integer` | Yes |  |
| `authorHandle` | `string` | No |  |
| `authorAvatarUrl` | `string` | No |  |
| `reviewCreatedAt` | `string` (datetime) | Yes |  |
| `authorDisplayName` | `string` | No |  |

## Raw Schema

```json
{
  "id": "fyi.atstore.reviews.listForListing",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "ListingNotFound"
        },
        {
          "name": "InvalidParams"
        },
        {
          "name": "InvalidCursor"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "reviews"
          ],
          "properties": {
            "cursor": {
              "type": "string",
              "maxLength": 512
            },
            "reviews": {
              "type": "array",
              "items": {
                "ref": "#listingReviewView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri",
            "maxLength": 2560,
            "description": "AT URI of the fyi.atstore.listing.detail record."
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 512
          }
        }
      },
      "description": "List reviews for a directory listing (mirrored Tap data plus profile enrichment)."
    },
    "listingReviewView": {
      "type": "object",
      "required": [
        "id",
        "authorDid",
        "rating",
        "reviewCreatedAt",
        "replyCount",
        "canReply"
      ],
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 64
        },
        "text": {
          "type": "string",
          "nullable": true,
          "maxLength": 8000
        },
        "rating": {
          "type": "integer",
          "maximum": 5,
          "minimum": 1
        },
        "canReply": {
          "type": "boolean"
        },
        "authorDid": {
          "type": "string",
          "format": "did",
          "maxLength": 2048
        },
        "replyCount": {
          "type": "integer"
        },
        "authorHandle": {
          "type": "string",
          "nullable": true,
          "maxLength": 512
        },
        "authorAvatarUrl": {
          "type": "string",
          "nullable": true,
          "maxLength": 8192
        },
        "reviewCreatedAt": {
          "type": "string",
          "format": "datetime",
          "maxLength": 64
        },
        "authorDisplayName": {
          "type": "string",
          "nullable": true,
          "maxLength": 640
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
