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