Skip to content

Lincb522/NeteaseCloudMusicAPI-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeteaseCloudMusicAPI-Swift

基于 NeteaseCloudMusicApi 封装的原生 Swift SDK


特性

  • 🎵 362+ 个 API — 搜索、歌曲、歌单、用户、歌手、专辑、评论、MV、电台、排行榜、推荐、VIP、私信、云盘、解灰等
  • 🔐 四种加密模式 — WeAPI / EAPI / LinuxAPI / 明文
  • 🍎 Apple 全系平台 — iOS 15+ / macOS 12+ / tvOS 15+ / watchOS 8+
  • 📦 零外部依赖 — 仅 Foundation + CommonCrypto
  • 🔓 多音源解灰 — 协议化架构,支持导入第三方 JS 音源和自定义地址,可自定义扩展
  • 🎯 Swift 原生 — async/await、强类型枚举、完整中文注释

安装

// Package.swift
dependencies: [
    .package(url: "https://github.com/Lincb522/NeteaseCloudMusicAPI-Swift.git", from: "1.0.0")
]

或 Xcode:FileAdd Package Dependencies → 输入仓库地址。


文档

接口用法、参数说明、解灰配置、架构设计等详见在线文档:

👉 https://lincb522.github.io/NeteaseCloudMusicAPI-Swift/


示例应用

Example/ 包含完整的 iOS SwiftUI 示例应用,14 个测试页面覆盖 SDK 全部模块。

cd Example && open NCMDemo.xcodeproj

致谢

许可证

MIT License

About

网易云音乐 API 原生 Swift SDK — 362 个接口 · 四种加密 · 零依赖 · 全平台

Resources

Stars

Watchers

Forks

Packages