# club.userstyles.alpha.listUserstyles

> Published by [userstyles.club](https://lexicon.garden/identity/did:plc:z6a2tfjek74wmqinw5vjzbed)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.listUserstyles)
- [Documentation](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.listUserstyles/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.listUserstyles/examples)

## Definitions

### `club.userstyles.alpha.listUserstyles`

**Type**: `query`

List userstyles, most recently indexed first. Optionally filter to userstyles from a given author.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (at-identifier) | No |  |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **ActorNotFound**

## Raw Schema

```json
{
  "id": "club.userstyles.alpha.listUserstyles",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "ActorNotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "userstyles"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "userstyles": {
              "type": "array",
              "items": {
                "ref": "club.userstyles.alpha.defs#userstyleView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "actor": {
            "type": "string",
            "format": "at-identifier"
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "description": "List userstyles, most recently indexed first. Optionally filter to userstyles from a given author."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
