Distribution API
Get Specific Artist
This endpoint retrieves a specific artist.
HTTP Request
- Production:
GET https://api.even.biz/api/v1/distribution/artists/:artist_id - Stage:
GET https://api-staging.even.biz/api/v1/distribution/artists/:artist_id
URL Parameters
| Parameter | Description | Required |
|---|---|---|
| ID | The ID of the artist to retrieve | Yes |
Example Request
require 'net/http'
require 'json'
uri = URI("https://api-staging.even.biz/api/v1/distribution/artists/1")
# Prepare HTTP request
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
# Generate required headers
date = Time.now.utc.httpdate
signed_auth_header = sign_headers(method: :get, endpoint: uri.path, date: date)
# Set custom headers
request['Authorization'] = signed_auth_header
request['Date'] = date
# Send request
response = http.request(request)
# Handle response
if response.is_a?(Net::HTTPSuccess)
puts "Success: #{response.body}"
else
puts "Error: #{response.code} #{response.message}"
endThe above command returns JSON structured like this:
{
"data": {
"id": "1",
"type": "artist",
"attributes": {
"id": 1,
"name": "Jane Doe",
"slug": "jane-doe",
"username": "artist-53f58fa7-4cc4-4925-b261-0ecd16e85c0b",
"external_link": null,
"bio": null,
"about": null,
"links": null,
"published": true,
"country": null,
"city": null,
"private": true,
"hidden": true,
"verified": false,
"onboarded": false,
"external_id": "123456",
"created_at": "2024-10-07T05:59:46.957Z",
"updated_at": "2024-10-07T05:59:46.957Z",
"upload_status": "approved"
},
"relationships": {
"releases": {
"data": []
}
}
},
"included": []
}