Skip to content

Commit d774ebe

Browse files
committed
Merge branch 'main' of https://github.com/IcySnex/GeniusAPI
2 parents 5eac45f + 669d451 commit d774ebe

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# GeniusAPI
2+
This Genius API wrapper allows you to easily search for tracks on Genius. It also provides lyrics fetching using web scraping.
3+
4+
---
5+
6+
## How to use?
7+
Search for tracks on Genius:
8+
```cs
9+
using GeniusAPI;
10+
using GeniusAPI.Models;
11+
12+
LyricsClient client = new("<GENIUS ACCESS TOKEN>");
13+
IEnumerable<LyricsTrack> tracks = await client.SearchTracksAsync("<SEARCH QUERRY>");
14+
```
15+
16+
Fetch lyrics of a track:
17+
```cs
18+
using GeniusAPI;
19+
using GeniusAPI.Models;
20+
21+
LyricsClient client = new("<YOUR GENIUS ACCESS TOKEN>");
22+
string lyrics = await client.FetchLyricsAsync("<GENIUS TRACK URL>");
23+
```
24+
25+
---
26+
27+
## How to get an acces token?
28+
You can learn how to get a free access token on the offical Genius API documentation: https://genius.com/api-clients

0 commit comments

Comments
 (0)