YandexMusicResolver 7.3.0
dotnet add package YandexMusicResolver --version 7.3.0
NuGet\Install-Package YandexMusicResolver -Version 7.3.0
<PackageReference Include="YandexMusicResolver" Version="7.3.0" />
<PackageVersion Include="YandexMusicResolver" Version="7.3.0" />
<PackageReference Include="YandexMusicResolver" />
paket add YandexMusicResolver --version 7.3.0
#r "nuget: YandexMusicResolver, 7.3.0"
#:package YandexMusicResolver@7.3.0
#addin nuget:?package=YandexMusicResolver&version=7.3.0
#tool nuget:?package=YandexMusicResolver&version=7.3.0
YandexMusicResolver
A library aimed at searching, resolving and getting direct links to tracks, playlists or albums in Yandex.Music.
Can work without authorization.
Getting started
Add nuget package to your project:
dotnet add package YandexMusicResolverYou need somehow to instantiate
YandexMusicMainResolver.- If you are using dependency injection, use
.AddYandexMusicResolver()to yourIServiceCollection. E.g.:var serviceCollection = new ServiceCollection(); serviceCollection.AddYandexMusicResolver(); var serviceProvider = serviceCollection.BuildServiceProvider(); // Resolve the IYandexMusicMainResolver var yandexMusicMainResolver = serviceProvider.GetRequiredService<IYandexMusicMainResolver>(); - Or instantiate it as usually:
Create auth service instance (
YandexMusicAuthServicethis is the default implementation):var authService = YandexMusicAuthService.Create(httpClient); // or var authService = new YandexMusicAuthService(httpClientFactory);Actually, preferred way is to use
IHttpClientFactoryto pass it to all services. If you useIHttpClientFactorydefault HttpClient name isYandexMusic.Create credentials provider instance (
YandexCredentialsProviderthis is the default implementation):var credentialProvider = YandexCredentialsProvider.Create(authService, "Login", "Pass");Create an instance of
YandexMusicMainResolverand pass config to itvar yandexMusicMainResolver = YandexMusicMainResolver.Create(credentialProvider, httpClient);
var httpClient = new HttpClient(); var authService = YandexMusicAuthService.Create(httpClient); var credentialProvider = YandexCredentialsProvider.Create(authService, "Login", "Pass"); var yandexMusicMainResolver = YandexMusicMainResolver.Create(credentialProvider, httpClient);
- If you are using dependency injection, use
After that you can use different methods and properties of
IYandexMusicMainResolver. Example code for getting direct track download url:var directUrl = await yandexMusicMainResolver.DirectUrlLoader.GetDirectUrl("55561798"); Console.WriteLine(directUrl);Yandex will return a link to a 30-seconds track if you do not log in (do not use a config with a valid token).
You can take a look at unit test project for additional examples.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Http (>= 8.0.0)
- System.Text.Json (>= 8.0.6)
-
net9.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Http (>= 8.0.0)
- System.Text.Json (>= 8.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.3.0 | 296 | 8/12/2025 |
| 7.2.1 | 216 | 8/8/2025 |
| 7.2.0 | 232 | 8/8/2025 |
| 7.1.2 | 377 | 7/20/2025 |
| 7.1.1 | 231 | 6/22/2025 |
| 7.1.0 | 210 | 6/22/2025 |
| 7.0.0 | 550 | 8/23/2024 |
| 6.0.0 | 185 | 8/9/2024 |
| 6.0.0-preview1 | 179 | 8/9/2024 |
| 5.1.0 | 444 | 3/5/2023 |
| 5.0.1 | 336 | 3/5/2023 |
| 5.0.0 | 339 | 3/5/2023 |
| 4.0.0 | 693 | 3/14/2021 |
| 3.3.1 | 565 | 3/7/2021 |
| 3.3.0 | 580 | 3/7/2021 |
| 3.2.0 | 478 | 2/19/2021 |
| 3.1.1 | 472 | 2/19/2021 |
| 3.1.0 | 501 | 2/19/2021 |
| 3.0.0 | 511 | 2/3/2021 |
| 2.2.1 | 509 | 1/28/2021 |
| 2.1.0 | 503 | 1/15/2021 |
| 2.0.0 | 515 | 1/10/2021 |
| 1.0.0 | 968 | 1/9/2021 |
## What's Changed
* Unify all regex parsers into one regex by @SKProCH in https://github.com/SKProCH/YandexMusicResolver/pull/17
* Add support for track id only urls by @SKProCH in https://github.com/SKProCH/YandexMusicResolver/pull/18
**Full Changelog**: https://github.com/SKProCH/YandexMusicResolver/compare/v7.2.1...v7.3.0