# app.rocksky.song.getSong

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

## Definitions

### `app.rocksky.song.getSong`

**Type**: `query`

Get a song by its uri, MusicBrainz ID, or ISRC

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | No | The AT-URI of the song to retrieve |
| `isrc` | `string` | No | The International Standard Recording Code (ISRC) of the song to retrieve |
| `mbid` | `string` | No | The MusicBrainz ID of the song to retrieve |
| `spotifyId` | `string` | No | The Spotify track ID of the song to retrieve (resolved internally to the Spotify track URL) |

#### Output

**Encoding**: `application/json`

## Raw Schema

```json
{
  "id": "app.rocksky.song.getSong",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "ref": "app.rocksky.song.defs#songViewDetailed",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "The AT-URI of the song to retrieve"
          },
          "isrc": {
            "type": "string",
            "description": "The International Standard Recording Code (ISRC) of the song to retrieve"
          },
          "mbid": {
            "type": "string",
            "description": "The MusicBrainz ID of the song to retrieve"
          },
          "spotifyId": {
            "type": "string",
            "description": "The Spotify track ID of the song to retrieve (resolved internally to the Spotify track URL)"
          }
        }
      },
      "description": "Get a song by its uri, MusicBrainz ID, or ISRC"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
