Skip to content

Commit 3662a2c

Browse files
committed
add readme
1 parent dcabd45 commit 3662a2c

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Lyrics API — v2
2+
3+
**Lyrics API v2** is a Java-based API that fetches and serves song lyrics from multiple sources.
4+
5+
## ✨ Features
6+
- **Multiple Sources**:
7+
- YouTube
8+
- Musixmatch
9+
- **Fast & Lightweight**: Fully implemented in Java for speed and stability.
10+
- **Easy Integration**: Simple REST endpoints for quick adoption into any app or service.
11+
12+
## 📦 Installation & Setup
13+
1. **Download the Latest Release**
14+
- Go to the [Releases](../../releases) page.
15+
- Download the latest `LyricsApi.jar` file.
16+
17+
2. **Run the API**
18+
```bash
19+
java -jar LyricsApi.jar
20+
```
21+
22+
> **Note:** The API currently runs on port `8888` and cannot be changed.
23+
24+
## 📡 Endpoints
25+
26+
### **Get Lyrics**
27+
```http
28+
GET http://localhost:8888/api/v2/lyrics?platform={platform}&title={title}&artist={artist}
29+
```
30+
31+
**Parameters**:
32+
33+
| Name | Type | Required | Description |
34+
|------------|--------|----------|-------------|
35+
| `platform` | String | ✅ Yes | Platform to fetch from (`youtube` or `musixmatch`) |
36+
| `title` | String | ✅ Yes | Title of the song |
37+
| `artist` | String | ❌ No | Artist name |
38+
39+
**Example**:
40+
```http
41+
GET http://localhost:8888/api/v2/lyrics?platform=youtube&title=back to friends&artist=sombr
42+
```
43+
44+
**Sample Response**:
45+
```json
46+
{
47+
"data": {
48+
"artistName": "Sombr",
49+
"trackName": "Back to Friends",
50+
"trackId": "dbEY-JVHJWg",
51+
"searchEngine": "YouTube",
52+
"artworkUrl": "https://example.com/art.jpg",
53+
"lyrics": "Touch my body tender\n'Cause the feeling makes me weak..."
54+
},
55+
"metadata": {
56+
"apiVersion": "2.0"
57+
}
58+
}
59+
```

0 commit comments

Comments
 (0)