File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments