https://github.com/ppalone/ncs
🎵 Unofficial Go client for NoCopyrightSounds (NCS Music)
https://github.com/ppalone/ncs
Last synced: about 1 month ago
JSON representation
🎵 Unofficial Go client for NoCopyrightSounds (NCS Music)
- Host: GitHub
- URL: https://github.com/ppalone/ncs
- Owner: ppalone
- Created: 2024-12-05T19:22:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-11T11:26:24.000Z (12 months ago)
- Last Synced: 2025-10-07T22:44:42.564Z (9 months ago)
- Language: Go
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NCS
Unofficial NCS (Nocopyrightsounds) Go client
## Installation
```bash
go get github.com/ppalone/ncs
```
## Usage
Search song
```go
// create a new client
c := ncs.NewClient(nil)
// search songs by "Tobu"
// query string can be any Song / Artist
q := "Tobu"
res, err := c.Search(context.Background(), q)
if err != nil {
panic(err)
}
// get all songs res.Songs
fmt.Println(res.Songs)
// by default song results are paginated
// you can know if further results are available or not by res.HasNext bool
if (res.HasNext) {
nextRes, err := res.Next(context.Background())
if err != nil {
panic(err)
}
// access further song search results
fmt.Println(nextRes.Songs)
}
```
## Author
Pranjal