# app.rocksky.song.getSongs

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

## Definitions

### `app.rocksky.song.getSongs`

**Type**: `query`

Get songs

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `isrc` | `string` | No | Filter songs by International Standard Recording Code (ISRC) |
| `mbid` | `string` | No | Filter songs by MusicBrainz ID |
| `genre` | `string` | No | The genre to filter artists by |
| `limit` | `integer` | No | The maximum number of songs to return |
| `offset` | `integer` | No | The offset for pagination |
| `spotifyId` | `string` | No | Filter songs by Spotify track ID (resolved internally to the Spotify track URL) |

#### Output

**Encoding**: `application/json`

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

## Raw Schema

```json
{
  "id": "app.rocksky.song.getSongs",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "songs": {
              "type": "array",
              "items": {
                "ref": "app.rocksky.song.defs#songViewBasic",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "isrc": {
            "type": "string",
            "description": "Filter songs by International Standard Recording Code (ISRC)"
          },
          "mbid": {
            "type": "string",
            "description": "Filter songs by MusicBrainz ID"
          },
          "genre": {
            "type": "string",
            "description": "The genre to filter artists by"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "description": "The maximum number of songs to return"
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "The offset for pagination"
          },
          "spotifyId": {
            "type": "string",
            "description": "Filter songs by Spotify track ID (resolved internally to the Spotify track URL)"
          }
        }
      },
      "description": "Get songs"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
