Skip to main content
GET
/
catalog-import
/
search
Search for an artist on the primary catalog provider
curl --request GET \
  --url https://api.royalti.io/catalog-import/search \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.royalti.io/catalog-import/search"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.royalti.io/catalog-import/search', 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://api.royalti.io/catalog-import/search",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$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://api.royalti.io/catalog-import/search"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.royalti.io/catalog-import/search")
  .header("Authorization", "Bearer <token>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.royalti.io/catalog-import/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "status": "success",
  "data": {
    "artists": [
      {
        "name": "<string>",
        "externalIds": {},
        "urls": {},
        "followers": 123,
        "genres": [
          "<string>"
        ]
      }
    ]
  }
}
{
  "status": "error",
  "message": "Query parameter \"q\" is required"
}
{
  "status": "error",
  "message": "<string>",
  "code": "<string>",
  "details": {}
}
{
  "status": "error",
  "message": "Insufficient permissions. Admin access required."
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

GET /catalog-import/search Description: Free-text artist search against the active provider that supports searchArtist (the primary catalog provider is preferred). Used to resolve a human-readable artist name to the artistExternalId required by POST /fetch. If q looks like an ISRC, it is resolved to the recording’s credited artists first, then those names are searched (identifier-shaped free-text queries otherwise return unrelated results). If q looks like a UPC/barcode, an empty result is returned — barcodes have no artist identity. Authorization:
  • Required role: admin or higher
Method: GET

Code Examples

const response = await fetch('https://api.royalti.io/catalog-import/search', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);
import requests

response = requests.get(
  'https://api.royalti.io/catalog-import/search',
  headers={
    'Authorization': f'Bearer {token}'
  },
)

data = response.json()
print(data)
curl -X GET https://api.royalti.io/catalog-import/search \
  -H "Authorization: Bearer YOUR_TOKEN" \

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Query Parameters

q
string
required

Artist name, or an ISRC to resolve to its credited artists.

limit
integer
default:10

Maximum results to return (capped at 25).

Required range: 1 <= x <= 25

Response

Matching artists retrieved

status
string
Example:

"success"

data
object