Skip to content
AINSOFAPI Get API key

GuidesBrowse a category

Browse a category

Open a genre, mood, instrument or use selected by the user. Receive the website’s ordered selection, with more pages when available.

MCP toolbrowse_tagRESTaction: "browse_tag"

Try it

curl https://mcp.ainsof.io/ \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $AINSOF_API_KEY" \
  -d '{"action": "browse_tag", "tag": "House", "facet": "genre", "scope": "music", "page_size": 20}'

Continue through the results

Keep the returned order. When has_more is true, pass the returned cursor with the same selection and page_size. Stop when has_more is false and cursor is null. Alternate versions are separate rows and can make a page longer than its primary-recording page size.

curl https://mcp.ainsof.io/ \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $AINSOF_API_KEY" \
  -d '{"action": "browse_tag", "tag": "House", "facet": "genre", "scope": "music", "page_size": 20, "cursor": "<cursor from the previous response>"}'

What you send

tagrequired
string
Exact category/tag text, for example House, Explosive or Piano.
1 to 120 characters after trimming.
facetrequired
string
The field selected by the user: genre, mood, instrument or use.
Allowed: genre, mood, inst, use
scoperequired
string
Choose music or sound effects explicitly.
Allowed: music, sfx
page_size
integer
Primary recordings per page; alternate version rows may add results.
Default: 20
1 to 40 primary recordings.
cursor
string
Pass the returned value unchanged to continue this same selection.
At most 12000 characters.

Good to know

  • Use this operation for an explicit category selection. For a written creative brief or a reference recording, use search.
  • Keep the order returned by the service. Equally suitable tracks can come from different albums; do not shuffle a page on refresh.
  • page_size measures primary recordings. Alternate versions remain separate rows and may make results longer than page_size; preserve the version on each row when requesting playback.
  • When has_more is true, send the returned opaque cursor with the same selection and page size. You can omit page_size on continuation to reuse the saved size. Never edit, decode or fabricate a cursor. Continue until has_more is false and cursor is null.
  • Cursors expire after 24 hours. If a continuation returns a changed-library error, discard that cursor and start the selection again; do not append a restarted first page to the old list.
  • An empty successful results array is an empty selection. A 503 is a temporary failure and must not be displayed as no matching music.
  • Calls use the existing API allowance. This operation does not initiate a license purchase or grant publication rights.

Every field it returns, and its errors, in the API Reference