···11+---
22+title: Yandex Music
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import JsonConfig from '!!raw-loader!@site/../config/ymbridge.json.example';
1111+1212+Monitor your [**Yandex Music**](https://music.yandex.com) listening activity in real-time.
1313+1414+This Source requires a third party docker container to communicate with Yandex Music, [`yandex-music-bridge`](https://github.com/Druidblack/yandex-music-bridge).
1515+1616+<details>
1717+1818+<summary>Example Docker Compose with `yandex-music-bridge`</summary>
1919+2020+```yaml title="~/msData/docker-compose.yml"
2121+services:
2222+ multi-scrobbler:
2323+ image: foxxmd/multi-scrobbler
2424+ container_name: multi-scrobbler
2525+ environment:
2626+ - TZ=Etc/GMT
2727+ # ...your other sources/clients here
2828+2929+ # add for yandex music
3030+ // highlight-start
3131+ - YMBRIDGE_URL=http://yandex-music-bridge:9980
3232+ - YMBRIDGE_API_KEY=change-me
3333+ // highlight-end
3434+3535+ volumes:
3636+ - "./config:/config"
3737+ ports:
3838+ - "9078:9078"
3939+ restart: unless-stopped
4040+4141+ // highlight-start
4242+ yandex-music-bridge:
4343+ image: ghcr.io/druidblack/yandex-music-bridge:latest
4444+ environment:
4545+ - TZ=Europe/Moscow
4646+ - YM_TOKEN=AgAAAAACO3_345345
4747+ - YM_API_KEY=change-me
4848+ - YM_PORT=9980
4949+ - YM_LANGUAGE=ru
5050+ - YM_ENABLE_YNISON=true
5151+ - YM_PUSH_TTL=45
5252+ - YM_QUEUE_CACHE_TTL=15
5353+ - YM_LOG_LEVEL=INFO
5454+ ports:
5555+ - "9980:9980"
5656+ restart: unless-stopped
5757+ // highlight-end
5858+```
5959+6060+You will need to acquire your own token for `YM_TOKEN` used in [`yandex-music-bridge`](https://github.com/Druidblack/yandex-music-bridge) using the instructions provided there.
6161+6262+</details>
6363+6464+<DetailsAdmo type="tip" summary="Need Help?">
6565+6666+If your issue is specifically related to [`yandex-music-bridge`](https://github.com/Druidblack/yandex-music-bridge) (errors in the container, usage instructions, general Yandex setup like token etc...) please open an issue on **that repository** instead of Multi-Scrobbler's.
6767+6868+If you have issues specifically with the MS Source please mention [**Druidblack**](https://github.com/Druidblack) (`@Druidblack`) when opening an [issue](https://github.com/FoxxMD/multi-scrobbler/issues/new/choose) or [discussion](https://github.com/FoxxMD/multi-scrobbler/discussions/new/choose). Yandex Music is [not available](https://en.wikipedia.org/wiki/Yandex_Music) in the country of the main Multi-Scrobbler developer (FoxxMD) so they can only help troubleshooting general MS issues related to Yandex Music.
6969+7070+</DetailsAdmo>
7171+7272+## Configuration
7373+7474+<Config config="YandexMusicBridgeSourceConfig" fileContent={JsonConfig} name="ymbridge">
7575+ | Environmental Variable | Required? | Default | Description |
7676+ | :--------------------- | :-------- | ------- | :------------------------------------------------------------------------ |
7777+ | `YMBRIDGE_URL` | Yes | | `http://URL:PORT` for the `yandex-music-bridge` container |
7878+ | `YMBRIDGE_API_KEY` | No | | The same key used for `YM_API_KEY` on the `yandex-music-bridge` container |
7979+</Config>