> ## Documentation Index
> Fetch the complete documentation index at: https://chart-spec.enchor.us/llms.txt
> Use this file to discover all available pages before exploring further.

# songMetadata()

```ts theme={null}
function songMetadata(song, options?): SongMetadata;
```

The metadata of a song document, from its song.ini as edited and its `.chart` `[Song]` section.

## Parameters

| Parameter | Type |
| - | - |
| `song` | [`SongDocument`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/SongDocument) |
| `options?` | [`SongMetadataOptions`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/SongMetadataOptions) |

## Returns

[`SongMetadata`](https://chart-spec.enchor.us/scan-chart/api/index/type-aliases/SongMetadata)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.