# app.rocksky.charts.getTopArtists

> 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.charts.getTopArtists)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vegqomyce4ssoqs7zwqvgqty/app.rocksky.charts.getTopArtists/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vegqomyce4ssoqs7zwqvgqty/app.rocksky.charts.getTopArtists/examples)

## Definitions

### `app.rocksky.charts.getTopArtists`

**Type**: `query`

Get top artists

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | The maximum number of artists to return |
| `offset` | `integer` | No | The offset for pagination |
| `endDate` | `string` (datetime) | No | The end date to filter artists to (ISO 8601 format) |
| `startDate` | `string` (datetime) | No | The start date to filter artists from (ISO 8601 format) |

#### Output

**Encoding**: `application/json`

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

## Raw Schema

```json
{
  "id": "app.rocksky.charts.getTopArtists",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "artists": {
              "type": "array",
              "items": {
                "ref": "app.rocksky.artist.defs#artistViewBasic",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "description": "The maximum number of artists to return"
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "The offset for pagination"
          },
          "endDate": {
            "type": "string",
            "format": "datetime",
            "description": "The end date to filter artists to (ISO 8601 format)"
          },
          "startDate": {
            "type": "string",
            "format": "datetime",
            "description": "The start date to filter artists from (ISO 8601 format)"
          }
        }
      },
      "description": "Get top artists"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
