TheDocumentation Index
Fetch the complete documentation index at: https://docs.royaltyport.com/llms.txt
Use this file to discover all available pages before exploring further.
search() method lives on the Royaltyport client directly (not on a resource accessor). It searches across recordings, compositions, contracts, entities, artists, and writers in a single request.
search()
Signature
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | The project to search within |
query | string | Yes | The search term |
Example
Response
The result contains arrays of matches grouped by resource type:recordings, compositions, contracts, entities, artists, and writers.
Each match includes:
| Field | Type | Description |
|---|---|---|
id | number | The resource ID |
name | string | The resource name |
matched_keywords | string[] | Keywords from the query that matched |
is_metadata_match | boolean | Whether the match was found in metadata |
rank | number | Relevance ranking score |