An open API service indexing awesome lists of open source software.

https://github.com/tsirysndr/go-genius

Go library for accessing the Genius API
https://github.com/tsirysndr/go-genius

genius-api genius-lyrics genius-rap golang lyrics

Last synced: 6 months ago
JSON representation

Go library for accessing the Genius API

Awesome Lists containing this project

README

          

Welcome to go-genius 👋 *** Work In Progress ***






GitHub code size in bytes
GitHub go.mod Go version

GitHub closed pull requests


GitHub pull requests


GitHub issues


GitHub contributors


License: BSD


Twitter: tsiry_sndr

go-genius is a Go client library for accessing the [Genius API](https://docs.genius.com/)

## 🚚 Install

```sh
go get github.com/tsirysndr/go-genius
```

## 🚀 Usage

Import the package into your project.

```Go
import "github.com/tsirysndr/go-genius"
```

Construct a new Genius client, then use the various services on the client to access different parts of the Genius API. For example:

```Go
client := genius.NewClient("")
res, _ := client.Search.Get("Kendrick Lamar")
hits, _ := json.Marshal(res)
fmt.Println(string(hits))
```

## Coverage

Currently the following services are supported:

- [x] Search
- [x] Get artist
- [ ] Get documents (songs) for the artist specified
- [x] Get referents
- [x] Get annotation
- [x] Get song
- [ ] Web Pages

## Author

👤 **Tsiry Sandratraina**

* Twitter: [@tsiry_sndr](https://twitter.com/tsiry_sndr)
* Github: [@tsirysndr](https://github.com/tsirysndr)

## Show your support

Give a ⭐️ if this project helped you!