Catalog relationships empty for /me/library/albums. How to reconcile ?

For some library records, the catalog relationships is empty in the response to request:

/v1/me/library/albums?include=catalog

The json will look like that:

        "catalog": {
          "href": "/v1/me/library/albums/l.mbhaBBs/catalog",
          "data": []
        }

The catalog relationship url (/v1/me/library/albums/l.mbhaBBs/catalog) will give:

{
    "errors": [
        {
            "id": "YS7BUVCTXA3QWDVX3YQQSCPEUY",
            "title": "No related resources",
            "detail": "No related resources found for catalog",
            "status": "404",
            "code": "40403"
        }
    ]
}

I am talking about an album that was added from the catalog in the first place. When it happens, removing the album from the library and adding it again using the Apple Music app, resolves the issue.

Is there another way to force the library-album to reconcile with the catalog-album using the API itself ?

Replies

Note that when it happens, the "Share albums..." feature in the Apple Music app may not work (which is a shame): it will send an empty email for instance, instead of the share url.

In other cases, the share link works, and it contains the CatalogId.

When the share link works, you can retrieve the album catalogId by using the first song of the song of the album which will contain its catalogId in the playparams struct. Querying the song will then gives you the album catalogId.

When the share links does not work, the catalogId of the songs does not work.

For instance this catalogId does not work for me (storefront "fr"):

            "playParams": {
                "id": "i.AWPK6FLXMqL4",
                "kind": "song",
                "isLibrary": true,
                "reporting": true,
                "catalogId": "392108251",
                "reportingId": "392108251"
            }