{ "status": "success", "audioId": "17901234567890123", "title": "Summer Nights", "displayArtist": "The Example Band", "durationMs": 32000, "thumbnailUrl": "https://scontent.example.com/cover.jpg", "audioType": "music", "isAdsEligible": true}
{ "status": "error", "code": 517, "action": "post", "message": "The selected audio track is unavailable. It may be an invalid audio id, restricted in your region, or not licensed for this use. Please choose a different track using the Instagram audio search endpoint and try again.", "platform": "instagram"}
{ "status": "success", "audioId": "17901234567890123", "title": "Summer Nights", "displayArtist": "The Example Band", "durationMs": 32000, "thumbnailUrl": "https://scontent.example.com/cover.jpg", "audioType": "music", "isAdsEligible": true}
{ "status": "error", "code": 517, "action": "post", "message": "The selected audio track is unavailable. It may be an invalid audio id, restricted in your region, or not licensed for this use. Please choose a different track using the Instagram audio search endpoint and try again.", "platform": "instagram"}
以 audioId 擷取單一音訊曲目的詳細資料。可用來確認先前儲存的 id 是否仍然有效,或在發布前顯示曲目的標題與封面圖。
Requires Instagram linked through Facebook Login. Instagram's Audio API is only available to accounts connected via Facebook Login, which needs a Facebook Page connected to the Instagram account. Accounts connected with Instagram Login (the Ayrshare default) cannot search, look up, or attach audio, and every audio request returns code: 514.
This is a Meta restriction, not an Ayrshare one. Meta's documentation states the Audio API "is only available on the Instagram API with Facebook Login. It is not supported on the Instagram API with Instagram Login." No permission or plan upgrade changes it.
Three things are required: 1. An Instagram Business or Creator account 2. A Facebook Page connected to that Instagram account 3. Instagram linked to Ayrshare with Instagram Login disabled, so the Facebook Login flow is used
{ "status": "success", "audioId": "17901234567890123", "title": "Summer Nights", "displayArtist": "The Example Band", "durationMs": 32000, "thumbnailUrl": "https://scontent.example.com/cover.jpg", "audioType": "music", "isAdsEligible": true}
{ "status": "error", "code": 517, "action": "post", "message": "The selected audio track is unavailable. It may be an invalid audio id, restricted in your region, or not licensed for this use. Please choose a different track using the Instagram audio search endpoint and try again.", "platform": "instagram"}