{"id":24718075,"url":"https://github.com/eldment/csharp-music-api","last_synced_at":"2025-03-22T10:29:53.071Z","repository":{"id":274094262,"uuid":"921862496","full_name":"ELDment/CSharp-Music-API","owner":"ELDment","description":"🍰NET平台 强大的音乐接口🎵支持网易云音乐、QQ音乐 | 🍰Powerful music API under .NET🎵Support NetEase music, Tencent Music","archived":false,"fork":false,"pushed_at":"2025-01-24T20:26:55.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T21:23:30.699Z","etag":null,"topics":["api","csharp","library","music-api","netcore","netease-cloud-music","tencent-music"],"latest_commit_sha":null,"homepage":"https://github.com/ELDment/CSharp-Music-API","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ELDment.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-24T18:57:30.000Z","updated_at":"2025-01-24T20:29:57.000Z","dependencies_parsed_at":"2025-01-24T21:33:45.468Z","dependency_job_id":null,"html_url":"https://github.com/ELDment/CSharp-Music-API","commit_stats":null,"previous_names":["eldment/csharp-music-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ELDment%2FCSharp-Music-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ELDment%2FCSharp-Music-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ELDment%2FCSharp-Music-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ELDment%2FCSharp-Music-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ELDment","download_url":"https://codeload.github.com/ELDment/CSharp-Music-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244943288,"owners_count":20536199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","csharp","library","music-api","netcore","netease-cloud-music","tencent-music"],"created_at":"2025-01-27T10:13:17.808Z","updated_at":"2025-03-22T10:29:53.041Z","avatar_url":"https://github.com/ELDment.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\n\u003cimg alt=\"Author\" src=\"https://img.shields.io/badge/Author-ELDment-blue.svg?style=flat-square\" height=\"20\"/\u003e\n\u003cimg alt=\"Star\" src=\"https://img.shields.io/github/stars/ELDment/CSharp-Music-API?style=for-the-badge\u0026logo=github\" height=\"20\"\u003e\n\n\u003c/p\u003e\n\n \u003e 🍰 .NET平台强大的音乐API框架，支持网易云音乐、QQ音乐\n \u003e\n \u003e ✨ Wow, such a powerful .NET music API framework, Support Netease Music, Tencent(QQ) Music.\n\n## Introduction\n\n一个强大的音乐平台API框架，他会助力您的开发❤️\n + **🍰优雅** - 使用简单, 为全平台构造了统一数据结构\n + **🙀强大** - 支持主流音乐平台, 包含：网易云音乐、QQ音乐\n + **🤩免费** - 使用GPLv3协议\n\n## Requirement\n[Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json)\n\u003e **📍Note:** 测试开发时使用NetCore8.0\n\n## Building\n**克隆项目库**\n```powershell\ngit clone https://github.com/ELDment/CSharp-Music-API.git\n```\n**通过以下指令构建库:**\n```powershell\ncd CSharp-Music-API\n\ndotnet clean\n\ndotnet build -c Release\n```\n**或者**直接运行测试模块:\n```powershell\ncd CSharp-Music-API\n\ndotnet test\n```\n\n\u003e **📍Note:** 编译时库要求 [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json)\n\n\n## Quick Start\n```csharp\n//using MusicAPI;\n\npublic class Program {\n\tstatic async Task Main(string[] args) {\n\t\t//声明平台API实例\n\t\tvar api = new NeteaseAPI();\n\t\t//var api = new TencentAPI();\n\n\t\t//设置Headers\n\t\tapi.Headers = new Dictionary\u003cstring, string\u003e { { \"Addition\", \"12345\" } /*, { \"Cookie\", \"Yours\" }*/ };\n\n\t\t//搜索歌曲\n\t\tvar search = await api.Search(\"Avid\", limit: 5);\n\t\tvar song = search[0]!;\n\t\tConsole.WriteLine(song);\n\n\t\t//获取歌曲信息\n\t\tvar songInfo = await api.GetSong(song!.Id);\n\t\tConsole.WriteLine(songInfo);\n\n\t\t//获取歌曲资源\n\t\tvar songResource = await api.GetSongResource(song!.Id);\n\t\tConsole.WriteLine(songResource);\n\n\t\t//获取歌词\n\t\tvar songLyric = await api.GetLyric(song!.Id);\n\t\tConsole.WriteLine(songLyric);\n\n\t\t//获取歌曲头图\n\t\tvar songPicture = await api.GetPicture(song!.Id, 520);\n\t\tConsole.WriteLine(songPicture);\n\n\t\treturn;\n\t}\n}\n```\n\n## More usage\n - [网易云的Headers设置](https://github.com/metowolf/Meting/wiki/special-for-netease)\n\n## Related Projects\n - [metowolf/Meting](https://github.com/metowolf/Meting)\n - [ELDment/Meting-MusicApi-Fixed](https://github.com/ELDment/Meting-MusicApi-Fixed)\n\n## Contribution\n- **samyycX** 项目发起者之一 😋 重构并制定了代码标准\n- （欢迎大家提交高质量PR🤓👍）","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldment%2Fcsharp-music-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldment%2Fcsharp-music-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldment%2Fcsharp-music-api/lists"}