GetLyrics
curl --request GET \
--url https://sdk.anghami.com/v1/music/songs/{song_id}/lyricsimport requests
url = "https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics")
.asString();require 'uri'
require 'net/http'
url = URI("https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"lyrics": {
"lines": [
"<string>"
]
},
"syncedLyrics": {
"lines": [
{
"text": "<string>",
"startTimeMs": "<string>"
}
]
}
}{
"violations": [
{
"field": "<string>",
"description": "<string>"
}
]
}{
"message": "<string>"
}MusicCatalogService
GetLyrics
GetLyrics retrieves the lyrics for a specific song. Returns time-synchronized lyrics when available, otherwise plain text.
GET
/
v1
/
music
/
songs
/
{song_id}
/
lyrics
GetLyrics
curl --request GET \
--url https://sdk.anghami.com/v1/music/songs/{song_id}/lyricsimport requests
url = "https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics")
.asString();require 'uri'
require 'net/http'
url = URI("https://sdk.anghami.com/v1/music/songs/{song_id}/lyrics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"lyrics": {
"lines": [
"<string>"
]
},
"syncedLyrics": {
"lines": [
{
"text": "<string>",
"startTimeMs": "<string>"
}
]
}
}{
"violations": [
{
"field": "<string>",
"description": "<string>"
}
]
}{
"message": "<string>"
}Headers
OAuth 2.0 Bearer token for user-authenticated requests. Format: Bearer <access_token>. Optional if x-api-key is provided.
Example:
"Bearer eyJhbGciOiJSUzI1NiIs..."
API key for server-to-server access without user context. Optional if Authorization is provided.
Example:
"ang_live_..."
Preferred locale for localized content (BCP 47). Determines which language variant is returned for LocalizedString fields.
Example:
"ar"
Path Parameters
Unique identifier of the song whose lyrics to retrieve.
Response
Successful response
GetLyricsResponse is the response message containing the song's lyrics. Returns either plain-text or time-synchronized lyrics depending on availability.