curl --request POST \
--url https://sdk.anghami.com/v1/music/artists:batchGet \
--header 'Content-Type: application/json' \
--data '
{
"artistIdList": [
{
"value": "<string>"
}
]
}
'import requests
url = "https://sdk.anghami.com/v1/music/artists:batchGet"
payload = { "artistIdList": [{ "value": "<string>" }] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({artistIdList: [{value: '<string>'}]})
};
fetch('https://sdk.anghami.com/v1/music/artists:batchGet', 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/artists:batchGet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'artistIdList' => [
[
'value' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sdk.anghami.com/v1/music/artists:batchGet"
payload := strings.NewReader("{\n \"artistIdList\": [\n {\n \"value\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sdk.anghami.com/v1/music/artists:batchGet")
.header("Content-Type", "application/json")
.body("{\n \"artistIdList\": [\n {\n \"value\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sdk.anghami.com/v1/music/artists:batchGet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"artistIdList\": [\n {\n \"value\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": {}
}{
"violations": [
{
"field": "<string>",
"description": "<string>"
}
]
}{
"message": "<string>"
}BatchGetArtists
BatchGetArtists retrieves multiple artists by their unique identifiers. Returns a map of ID to result, where each result is either the artist or an error.
curl --request POST \
--url https://sdk.anghami.com/v1/music/artists:batchGet \
--header 'Content-Type: application/json' \
--data '
{
"artistIdList": [
{
"value": "<string>"
}
]
}
'import requests
url = "https://sdk.anghami.com/v1/music/artists:batchGet"
payload = { "artistIdList": [{ "value": "<string>" }] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({artistIdList: [{value: '<string>'}]})
};
fetch('https://sdk.anghami.com/v1/music/artists:batchGet', 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/artists:batchGet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'artistIdList' => [
[
'value' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sdk.anghami.com/v1/music/artists:batchGet"
payload := strings.NewReader("{\n \"artistIdList\": [\n {\n \"value\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sdk.anghami.com/v1/music/artists:batchGet")
.header("Content-Type", "application/json")
.body("{\n \"artistIdList\": [\n {\n \"value\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sdk.anghami.com/v1/music/artists:batchGet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"artistIdList\": [\n {\n \"value\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": {}
}{
"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.
"Bearer eyJhbGciOiJSUzI1NiIs..."
API key for server-to-server access without user context. Optional if Authorization is provided.
"ang_live_..."
Preferred locale for localized content (BCP 47). Determines which language variant is returned for LocalizedString fields.
"ar"
Body
BatchGetArtistsRequest is the request message for retrieving multiple artists by ID.
1 - 100 elementsShow child attributes
Show child attributes
Response
Successful response
BatchGetArtistsResponse is the response message containing the requested artists.
Map of artist ID to result. Every requested ID appears in this map. Value is either the artist or an error explaining why it could not be retrieved.
Show child attributes
Show child attributes