# app.rocksky.album.getAlbums

> Published by [rocksky.app](https://lexicon.garden/identity/did:plc:vegqomyce4ssoqs7zwqvgqty)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:vegqomyce4ssoqs7zwqvgqty/app.rocksky.album.getAlbums)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vegqomyce4ssoqs7zwqvgqty/app.rocksky.album.getAlbums/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vegqomyce4ssoqs7zwqvgqty/app.rocksky.album.getAlbums/examples)

## Definitions

### `app.rocksky.album.getAlbums`

**Type**: `query`

Get albums

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `genre` | `string` | No | The genre to filter artists by |
| `limit` | `integer` | No | The maximum number of albums to return |
| `offset` | `integer` | No | The offset for pagination |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `albums` | `array` | No |  |

## Raw Schema

```json
{
  "id": "app.rocksky.album.getAlbums",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "albums": {
              "type": "array",
              "items": {
                "ref": "app.rocksky.album.defs#albumViewBasic",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "genre": {
            "type": "string",
            "description": "The genre to filter artists by"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "description": "The maximum number of albums to return"
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "The offset for pagination"
          }
        }
      },
      "description": "Get albums"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
