> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arjex.team/llms.txt
> Use this file to discover all available pages before exploring further.

# Spotify and player settings in Arjex Music 1.0.0

> Configure Spotify credentials, market and result limits, player identification, search engine, and outbound download protection for 1.0.0.

You are reading the docs for Arjex Music 1.0.0. The latest version is 1.1.0. [Read the 1.1.0 docs](https://docs.arjex.team/music.md).

Spotify, player, and outbound-fetch settings apply to every Arjex Music 1.0.0 bot unless a field's timing says otherwise.

## Spotify

| Key | Type and constraints | Default | Applies |
| - | - | - | - |
| `spotify.clientId` | string | Empty with `clientSecret` to disable Spotify | Live. Set with its matching secret. |
| `spotify.clientSecret` | string | Empty with `clientId` to disable Spotify | Live. Keep it private. |
| `spotify.searchMarket` | Two uppercase letters | `US` | Live. |
| `spotify.playlistPageLimit` | Integer, at least 1 | `1` | Live. |
| `spotify.albumPageLimit` | Integer, at least 1 | `1` | Live. |
| `spotify.searchLimit` | Integer, at least 1 | `10` | Live. |

The client ID and secret must either both be set or both be empty.

## Player

| Key | Type | Default | Applies |
| - | - | - | - |
| `player.userAgent` | Non-empty string | `MusicBot` | Needs restart. |
| `player.defaultSearchEngine` | Non-empty string | `ytmsearch` | Needs restart. The source lists `ytmsearch` for YouTube Music and `ytsearch` for YouTube. |

## Outbound download protection

| Key | Type | Default | Applies |
| - | - | - | - |
| `safeFetch.allowHosts` | Array of non-empty host strings | `[]` | Live. |

Remote downloads for local audio and images are blocked when they resolve to private, loopback, or reserved addresses unless the host is explicitly allowed. Redirects are checked again, and the connection is pinned to the validated address. Lavalink connections are not affected by `safeFetch`.

> [card] [Playback behavior](https://docs.arjex.team/music/v1/concepts/playback.md)
>
> See supported sources and fallback behavior.

> [card] [Security](https://docs.arjex.team/music/v1/ops/security.md)
>
> Protect credentials and configure safe downloads.


## Related topics

- [Bot settings for Arjex Music 1.0.0](https://docs.arjex.team/music/v1/reference/configuration/bots.md)
- [Storage settings for Arjex Music 1.0.0](https://docs.arjex.team/music/v1/reference/configuration/storage.md)
- [Global settings for Arjex Music 1.0.0](https://docs.arjex.team/music/v1/reference/configuration/global.md)
- [Live configuration in Arjex Music 1.0.0](https://docs.arjex.team/music/v1/concepts/live-config.md)
- [Security for Arjex Music 1.0.0](https://docs.arjex.team/music/v1/ops/security.md)


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