Retrieve a song’s score

November 14, 2026 (December 1, 2026)

Table of contents

  1. Request Headers
  2. Query Parameters
  3. Responses
  4. Model
  5. Examples
  6. Try It

Get the score of a finished song in ABC notation, a plain-text music format. It holds the vocal melody, an instrumental line, the chords and the sections. Any ABC tool turns it into sheet music or MIDI. It works on every ACE Music plan, Free included.

ACE Music writes the score on the first request and keeps it with the song. ACE Music v1.1 Preview songs already have their score, because that model writes one before the audio. For an ACE-Step v1.5 XL song, the first read costs 1 credit. ACE Music v1 songs cost nothing in our tests. We wait up to a minute for the score. After that you get 202, so call again a minute later.

ACE Music v1.1 Preview follows a song’s melody from its score. When you cover or mash up an ACE Music v1 song that has no score yet, POST /music gets the score first, for free. We don’t do this for ACE-Step songs. If a cover or mashup of one fails with ref_no_melody, call this endpoint on the song first. It costs 1 credit. Then send the request again.

On a paid plan, the same score downloads as MusicXML with GET /music/download and format=musicxml.

https://api.useapi.net/v1/acemusic/music/score?songId=songId

Request Headers
Authorization: Bearer {API token}
Query Parameters
  • songId is required. A finished song’s songId, URL-encoded.
Responses
  • 200 OK

    The song’s score in ABC notation.

    A score in ABC notation

    {
      "songId": "user:[email protected]:so_4e7b2c9d0a5f4183b6d8e2c7",
      "abc": "X:1\nT:\nM:4/4\nL:1/16\nQ:1/4=142\nV: Vocal clef=treble name=\"Vocal Melody\" snm=\"Vocal\"\nV: Ins clef=treble name=\"Ins Melody\" snm=\"Inst.\"\nK:G\n% intro\nV: Vocal\nz8\"G\"z8|\"G\"z16|\"G\"z16|\"G\"z16|\nV: Ins\nZ|z2GABGDGcGDBGGAG|BGGAGGBGcGGBGGAG|g3a3b2c'3b3g2|\n% verse\nV: Vocal\n\"G\"b8z2a2b2c'2|\"C\"c'8e6d2|\"G\"d16|\"G\"z8g4a4|\n…",
      "musicxml": "GET /music/download?songId=user%3A12345-example%40example.com-song%3Aso_4e7b2c9d0a5f4183b6d8e2c7&format=musicxml (paid plans)"
    }
    

    A score in ABC notation, with musicxml as a download call

    {
      "songId": "user:[email protected]:so_000000000000000000000001",
      "abc": "X:1\nT:\nM:4/4\nL:1/16\nQ:1/4=132\nV: Vocal clef=treble name=\"Vocal Melody\" snm=\"Vocal\"\nV: Ins clef=treble name=\"Ins Melody\" snm=\"Inst.\"\nK:D\n% intro\nV: Vocal\n\"D\"z16|\"D\"z16|\"D\"z12\"A6\"z4|\"Bm\"z16|\nV: Ins\nd8a8|d2z4d2e2A2g2A2|f2A2A2e2d2A2c2A2|d2B2B2c2B2B2e2B2|\nV: Vocal\n\"Bm\"z8d'4\"A\"z4|\"G\"bz12z3|\"G\"d'12z2f'2|\"A\"e'16-|\nV: Ins\nf2B2B2e'2z8|Z3|\nV: Vocal\n\"A\"e'16|\nV: Ins\nZ|\n% verse\nV: Vocal\n\"D\"z8f4f2f2-|\"D\"f4e2d2\"A…",
      "musicxml": "GET /music/download?songId=user%3A12345-example%40example.com-song%3Aso_000000000000000000000001&format=musicxml (paid plans)"
    }
    
  • 202 Accepted

    ACE Music is still writing the score. Call again in a minute.

    {
      "songId": "user:[email protected]:so_4e7b2c9d0a5f4183b6d8e2c7",
      "status": "processing",
      "message": "ACE Music is still reading the score: call again in a minute"
    }
    
  • 400 Bad Request

    The request itself is wrong. Fix what the text names, then send it again.

    The body could not be read. It is not valid JSON, or a multipart upload was sent without its boundary.

    {
      "error": "Invalid JSON: Unexpected token 'o', \"not json\" is not valid JSON",
      "code": 400
    }
    
    The error text of each parameter check
    • Parameter songId is required
    • Parameter songId is not a valid songId (user:<id>-<email>-song:so_…)
  • 401 Unauthorized

    The useapi.net API token is missing or wrong.

    {
      "error": "useapi.net ⁝ Unauthorized",
      "code": 401
    }
    
  • 402 Payment Required

    The useapi.net subscription is not active.

    {
      "error": "useapi.net ⁝ Your account has no subscription, please subscribe to our services before submitting requests",
      "code": 402
    }
    
  • 403 Forbidden

    The song belongs to another useapi.net user.

    {
      "error": "Song user:[email protected]:so_8b1d5e0a47c92f63d1a8b5c0 is not yours",
      "code": 403
    }
    
  • 404 Not Found

    The account is not connected (never added, or removed).

    The song was deleted at ACE Music.

    ACE Music no longer lists the song. It was deleted.

    {
      "error": "Account [email protected] is not configured",
      "code": 404
    }
    
    {
      "error": "Song user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7 not found (deleted on acemusic.ai?)",
      "code": 404
    }
    
  • 409 Conflict

    The song is not finished, or it failed, so there is no score to read.

    {
      "error": "Song user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7 is running: no score yet",
      "code": 409
    }
    
  • 412 Precondition Failed

    The account that holds the song has too few ACE Music credits for this request. cost is the number of credits the request needs. It is missing when ACE Music does not say. Add credits to the account.

    {
      "error": "Reading the score: Not enough credits",
      "code": 412
    }
    
  • 422 Unprocessable Content

    ACE Music could not write a score for this song. Do not retry the same request.

    {
      "error": "ACE Music could not read a score from song user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7",
      "code": 422
    }
    
  • 429 Too Many Requests

    ACE Music is limiting requests right now. The text gives its reason.

    Wait the seconds in the Retry-After header, or 30 seconds if there isn’t one, then send the request again.

    {
      "error": "Reading the score: HTTP 429",
      "code": 429
    }
    
  • 500 Internal Server Error

    Something failed on our side.

    {
      "error": "Something went wrong on our side, please retry",
      "code": 500
    }
    
    {
      "error": "Reading the songs: ACE Music refused the call (HTTP 403). This is unexpected, please report it to support",
      "code": 500
    }
    
  • 502 Bad Gateway

    ACE Music may have started writing the score, and charged its credit, but we didn’t get a usable answer. Call again. A score already written, or being written, costs nothing.

    {
      "error": "Reading the score: ACE Music could not be reached: fetch failed. ACE Music may already have charged its credit. A score already read, or being read, costs nothing, so call again",
      "code": 502
    }
    
  • 503 Service Unavailable

    ACE Music couldn’t take the request right now, or the account’s session is being renewed. This happens before any step that charges, so nothing was charged.

    Wait the seconds in the Retry-After header, or 10 seconds if there isn’t one, then send the request again.

    {
      "error": "ACE Music sign-in for [email protected] failed moments ago, please retry shortly",
      "code": 503
    }
    
    {
      "error": "ACE Music sign-in for [email protected] failed (ACE Music did not answer within 30 s), please retry shortly",
      "code": 503
    }
    
    {
      "error": "ACE Music session renewal for [email protected] failed (HTTP 503), please retry shortly",
      "code": 503
    }
    
    {
      "error": "ACE Music session renewal for [email protected] is in progress, please retry shortly",
      "code": 503
    }
    
    {
      "error": "ACE Music sign-in for [email protected] is in progress, please retry shortly",
      "code": 503
    }
    
    {
      "error": "ACE Music refused the session for [email protected] right after a fresh sign-in, please retry shortly",
      "code": 503
    }
    
    {
      "error": "Reading the song: ACE Music did not answer within 30 s, please retry shortly",
      "code": 503
    }
    
    {
      "error": "Reading the songs: ACE Music's answer could not be read (HTTP 200), please retry shortly",
      "code": 503
    }
    
    {
      "error": "Reading the songs: ACE Music answered a song without its id, please retry shortly",
      "code": 503
    }
    
  • 504 Gateway Timeout

    ACE Music may have started writing the score, and charged its credit, but we didn’t get a usable answer. Call again. A score already written, or being written, costs nothing.

    {
      "error": "Reading the score: ACE Music did not answer within 30 s. ACE Music may already have charged its credit. A score already read, or being read, costs nothing, so call again",
      "code": 504
    }
    
  • 596 Account Error

    ACE Music refused the account’s stored email and password. Add the account again with the current password (POST /accounts).

    {
      "error": "Account [email protected]: ACE Music refused the stored email and password. Update the password with POST /accounts to resume using this account",
      "code": 596
    }
    
Model

The song’s score in ABC notation, or a 202 answer while ACE Music is still writing it.

The score
{ // TypeScript, fields marked ? may be absent
  songId: string  // the song you asked for
  abc?: string  // the score in ABC notation. It has a header, a Vocal and an Ins voice, chords in quotes, and sections marked with %
  musicxml?: string  // how to get the same score as MusicXML (paid plans)
  status?: "processing"  // only on 202: ACE Music is still writing the score
  message?: string  // only on 202: the score is still being written. Call again in a minute
}
Examples
  • curl "https://api.useapi.net/v1/acemusic/music/score?songId=user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7" \
         -H "Authorization: Bearer YOUR_API_TOKEN"
    
  • const response = await fetch('https://api.useapi.net/v1/acemusic/music/score?songId=user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7', {
      headers: {
        'Authorization': 'Bearer YOUR_API_TOKEN'
      }
    })
    console.log(response.status, await response.json())
    
  • import requests
    
    response = requests.get(
        'https://api.useapi.net/v1/acemusic/music/score',
        params={
            'songId': 'user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7'
        },
        headers={'Authorization': 'Bearer YOUR_API_TOKEN'},
    )
    print(response.status_code, response.json())
    
Try It