Music Tagging API: BPM, Key, Mood, Genre and Similar Songs avatar

Music Tagging API: BPM, Key, Mood, Genre and Similar Songs

Pricing

from $10.00 / 1,000 tagged track with a finished audio analyses

Go to Apify Store
Music Tagging API: BPM, Key, Mood, Genre and Similar Songs

Music Tagging API: BPM, Key, Mood, Genre and Similar Songs

Music tagging API for your audio library and Spotify tracks: genre, mood, BPM, key, instruments, voice and energy tags, similar song search with BPM and key filters, and free text music search, through the Cyanite API. Bring your own key.

Pricing

from $10.00 / 1,000 tagged track with a finished audio analyses

Rating

0.0

(0)

Developer

Nabeel Hassan

Nabeel Hassan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

24 days ago

Last modified

Features

Limited permissions

Share

Get AI music tagging (genre, subgenre, mood, BPM, key, instruments, voice, energy and a text caption) for your audio library and Spotify tracks, similar song search with BPM and key filters, and free text music search from the Cyanite API with your own access token, as clean rows you can export to CSV, Excel or JSON.

Cyanite (elceedee UG, Mannheim) is an AI music analysis service used by music publishers, production music libraries, sync agencies, streaming and music tech companies to tag and search catalogues. This actor wraps the documented read operations of the Cyanite GraphQL API: the analysis results of your library tracks, the analysis of Spotify tracks, similarity search and free text search. Use it for catalogue tagging and metadata cleanup, playlist building, DJ set and sync briefs, music recommendation, BI pipelines and spreadsheets. Bring your own API key.

BYOK, not live tested: every operation, argument and field comes from Cyanite's own API documentation and GraphQL schema reference (api-docs.cyanite.ai), and every GraphQL document this actor sends was checked against the live schema on 2026-11-02 with an invalid token (the API validates documents before it checks the key). The actor has not been run against a live token.

What it does

  • Library track tagging: every track in your Cyanite library, newest first, 50 per request, with its full audio analysis. Filter by title, by the SHA256 hash of the audio file (duplicate check) or by your external ID.
  • Library tracks by ID: the analysis of specific library tracks, for example after a webhook told you an analysis finished.
  • Spotify track tagging: the Cyanite analysis of Spotify tracks by ID, URI or link. Optionally ask Cyanite to analyse a track it has not analysed yet.
  • Similar tracks: ranked similar songs for library or Spotify seed tracks, from your library, one crate or the Spotify catalogue, with up to 100 matches per seed.
  • Similarity filters: keep matches within 6 percent of the seed BPM or in a custom BPM range, in the same key or a Camelot compatible key, in the same genre or with the same voice, and compare the complete track, its most representative part or a custom interval.
  • Free text music search: describe the music in plain English ("uplifting acoustic folk for a travel video") and get ranked tracks from your library, a crate or Spotify.
  • Flat analysis columns: BPM with confidence, key with confidence, time signature, genre and subgenre tags (both Cyanite taxonomies), free genre tags, mood and advanced mood tags, character and movement tags, instrument tags, voice tags, energy level and dynamics, emotional profile, valence, arousal, musical era, voiceover detection and the auto generated caption.
  • Pay only for results: unfinished analyses, empty answers and refused lookups become a free row that says why.

How to get your own key

  1. Register at app.cyanite.ai and verify your email address.
  2. Open the Integrations section and create a new integration. The webhook URL is required by the form; any public endpoint you control works.
  3. Copy the access token shown once after creating the integration.
  4. Paste it into the Cyanite integration access token field, or set the DATA_API_KEY environment secret. The actor sends it as Authorization: Bearer <token>, as documented.
  5. Upload some tracks to your library in the web app (or through the API) so the library modes have something to read. Similarity and free text search may need to be enabled for your account by Cyanite.

Input

FieldModesNotes
modealllibraryTracks, libraryTrack, spotifyTrack, similarTracks, freeTextSearch
apiKeyallyour integration access token; falls back to the DATA_API_KEY secret
titleFilter, sha256, externalIdlibraryTracksat most one; title substring, audio file SHA256 or exact external ID
libraryTrackIdslibraryTrack, similarTracksone library track ID per line
spotifyTrackIdsspotifyTrack, similarTracksone Spotify ID, spotify:track: URI or open.spotify.com link per line
enqueueMissingspotifyTrackask Cyanite to analyse Spotify tracks with no analysis yet (off by default)
searchTextsfreeTextSearchone English description per line
target, crateIdsimilarTracks, freeTextSearchlibrary, crate (with crate ID) or spotify
similarCountsimilarTracks, freeTextSearchmatches per seed or description, 1 to 100 (default 10)
includeAnalysissimilarTracks, freeTextSearchadd the tags to each match (default on)
searchMode, intervalStart, intervalEndsimilarTracksdefault, mostRepresentative, complete or interval in seconds
bpmFilter, bpmMin, bpmMaxsimilarTracksnone, input (seed BPM plus or minus 6 percent) or range
keyFiltersimilarTracksnone, matching (seed key) or camelot (compatible keys)
genreFilter, voiceFiltersimilarTrackskeep matches with the seed track's genre or voice
maxResultsallstop after this many rows (default 1,000)

Output

A tagged library track:

{
"mode": "libraryTracks",
"recordType": "track",
"query": "library",
"found": true,
"trackSource": "library",
"trackId": "1681618",
"title": "Morning Hue",
"externalId": "cat-00412",
"analysisStatus": "finished",
"bpm": 92,
"bpmConfidence": 0.81,
"key": "dMajor",
"keyConfidence": 0.67,
"timeSignature": "4/4",
"advancedGenreTags": ["ambient", "electronicDance"],
"advancedSubgenreTags": ["minimal"],
"moodTags": ["calm", "chilled", "ethereal"],
"characterTags": ["ethereal", "sparse"],
"advancedInstrumentTags": ["synth", "piano"],
"voiceTags": ["instrumental"],
"energyLevel": "low",
"valence": 0.31,
"arousal": -0.42,
"transformerCaption": "A calm ambient piece with soft synth pads and sparse piano."
}

A similar track match:

{
"mode": "similarTracks",
"recordType": "match",
"query": "spotify:4cOdK2wGLETKBW3PvgPWqT",
"found": true,
"rank": 1,
"seedSource": "spotify",
"seedTrackId": "4cOdK2wGLETKBW3PvgPWqT",
"trackSource": "spotify",
"trackId": "5P8KKoAiwhzZkwcBuyhdUi",
"title": "Example Song",
"spotifyUrl": "https://open.spotify.com/track/5P8KKoAiwhzZkwcBuyhdUi",
"analysisStatus": "finished",
"bpm": 124,
"key": "aMinor"
}

Track rows also carry genreTags, subgenreTags, freeGenreTags, moodAdvancedTags, movementTags, advancedInstrumentTagsExtended, instrumentTags, classicalEpochTags, musicalEraTag, energyDynamics, emotionalProfile, emotionalDynamics, predominantVoiceGender, voicePresenceProfile, voiceoverExists, voiceoverDegree, bpmRangeAdjusted and, for library tracks, customTags. A track whose analysis is not finished has analysisStatus set to notStarted, enqueued, processing, failed or notAuthorized and an analysisNote. The values above are illustrative.

Pricing

Pay per event, only for rows with data:

EventPrice
Tagged track with a finished analysis (tagging modes, or a search match with tags)$0.01
Similar track or free text search match without tags$0.005
Unfinished analyses, empty answers, refused lookupsfree

Your Cyanite plan is billed separately by Cyanite. Requesting analysis of a Spotify track uses your Cyanite analysis allowance.

FAQ

What is the Cyanite API?

The Cyanite API is a GraphQL API from Cyanite (elceedee UG, Mannheim, Germany) for AI music analysis. It tags audio with genre, mood, BPM, key, instruments, voice and energy, finds similar tracks in a library or on Spotify, and searches music by free text descriptions.

Do I need my own Cyanite access token?

Yes. This actor is bring your own key: your integration access token, your plan and your analysis and search allowance. Create the token in the Integrations section of app.cyanite.ai.

Can this actor upload or analyse my own audio files?

No. Uploading audio is a multi step file upload flow, so this actor reads the analysis of tracks already in your Cyanite library (uploaded in the web app or through the API) and of Spotify tracks. The only write it can make is the optional request to analyse a Spotify track you named.

How do I get BPM and key for a Spotify track?

Use the Spotify track tagging mode with the track's ID or open.spotify.com link. If Cyanite has analysed it, the row has bpm, key and the tags. Cyanite analyses Spotify tracks mainly as similarity search input, so some tags may be empty; turn on the analysis request option for tracks not analysed yet and run again later.

How does similar song search work?

Give library track IDs or Spotify track IDs as seeds and pick where to search: your library, one crate or Spotify. Cyanite compares the audio of the seed with the catalogue and returns ranked matches, which you can narrow by BPM, key (same or Camelot compatible), genre and voice.

Why did my run stop with "not on your plan"?

Cyanite enables similarity and free text search per account. When it answers notEligible, the run ends cleanly and tells you to ask Cyanite (sales@cyanite.ai) to enable the feature. A brand new library can also answer indexNotFound for up to 24 hours while Cyanite builds the search index.

What do I pay?

$0.01 per track with a finished analysis and $0.005 per search match without tags. Unfinished analyses, empty answers and refused lookups are free.

Keyword map

music tagging API, AI music tagging, BPM detection API, key detection, song mood detection, music genre classification, audio analysis API, similar songs API, music similarity search, free text music search, Spotify track analysis, Camelot key matching, Cyanite API, production music metadata.

Routes and verification

ModeOperationProbe with an invalid 191 character token
Library tracksquery libraryTracks(first, after, filter)200 JSON ERR_NOT_AUTHORIZED "Not authorized!", data null (twice)
Library tracks by IDquery libraryTrack(id)200 JSON ERR_NOT_AUTHORIZED
Spotify tracksquery spotifyTrack(id)200 JSON ERR_NOT_AUTHORIZED
Spotify analysis requestmutation spotifyTrackEnqueue(input)200 JSON ERR_NOT_AUTHORIZED
Similar trackslibraryTrack / spotifyTrack { similarTracks(first, target, searchMode, experimental_filter) }200 JSON ERR_NOT_AUTHORIZED
Free text searchquery freeTextSearch(searchText, target, first)200 JSON ERR_NOT_AUTHORIZED
Invented field controllibraryTracks { edges { node { inventedFieldZ } } }400 JSON "Cannot query field"
Invented route controlPOST /graphql-tracks404 text/plain Not Found (twice)

All operations go to POST https://api.cyanite.ai/graphql with the token in the Authorization: Bearer header, never in a URL or a log line. Every caller value is sent as a GraphQL variable.

Licensing and data use

This actor works only with your own Cyanite token, and your agreement with Cyanite applies: the General Terms of Service (cyanite.ai/agb) and the Order for your subscription, which sets your scope of use. The terms grant a non exclusive, non transferable, non sublicensable right to use the services for your authorised Users (which include your employees, contractors and agents), and forbid making the services available to anyone else, for example as a service bureau, and using them to build a competing product. They set no cache or retention limit on analysis results. Use the tags and search results in your own catalogue, products and workflows, do not resell access to the Cyanite service, and check your Order for any further limits. Spotify track IDs and titles in the results come from Spotify's catalogue. This actor is not affiliated with or endorsed by Cyanite or Spotify.