GuidesSearch by reference
Search by reference
Send a song by another artist, as a YouTube, Spotify, Apple Music or Deezer link or as artist - title, and get AINSOF tracks in that spirit.
MCP toolsearch_by_referenceRESTaction: "search"
Try it
curl https://mcp.ainsof.io/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $AINSOF_API_KEY" \
-d '{"action": "search", "link": "Hans Zimmer - Time", "musical_styles": ["cinematic"]}'What you send
linkrequiredstring
Reference link, or
artist - title.musical_descriptionstring
Known style, groove and instrumentation of the reference. Adds a second, text-based candidate search whose ranking is fused with the reference match. Negatives in it are enforced as in
search. Translated when written in a non-Latin script.musical_stylesstring[]
Known English genre labels for the reference (e.g.
disco, funk). Results are restricted to cues whose style tags match at least one label.top_kinteger
Number of results.
Good to know
- Same action as
search, withlinkinstead ofbrief. If both are sent, the search runs onlink. - Accepted references: a YouTube, Spotify, Apple Music or Deezer link, or
artist - title. SoundCloud and TikTok links are not supported; send the artist and title instead. - Results are ranked candidates, not verified sound-alikes;
reference_match.similarity_verifiedis alwaysfalse. - The first reply may be
202 still_running; send the identical request again to continue the same search. - A link that cannot be resolved fails with
503 search_failed. Sending the same link again will not help; sendartist - titleinstead.
Every field it returns, and its errors, in the API Reference
