max_idstring
Pagination cursor, omit for first request
https://api.sandbase.ai/v1/api/instagram/v1/music-postsReturns Reels and posts associated with a specific audio track using either an audio ID or URL. Supports cursor pagination to browse results.
您的输出将显示在这里
完成输入,然后点击运行。
Returns Reels that use a given Instagram audio track, plus details about the track itself. You pass either music_id or music_url, and you can page through results with max_id.
media_count.clips_count or formatted_media_count.spotify_track_metadata.curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/music-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"music_id": "564058920086577", "music_url": "https://www.instagram.com/reels/audio/564058920086577"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
max_id | string | No | Pagination cursor, omit for first request |
music_id | string | No | Music ID (alternative to music_url) |
music_url | string | No | Music URL, ID will be extracted automatically (alternative to music_id) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"attempts": "67",
"audio_page_reporting_id": "18404542084110335",
"audio_page_segments": [],
"audio_ranking_info": {
"best_audio_cluster_id": "25883770477923057"
},
"auto_created_reels_preview_metadata": [],
"available_tabs": [
"clips"
],
"formatted_media_count": "389K reels",
"is_music_page_restricted": false,
"items": [
{
"media": {
"are_remixes_crosspostable": true,
"boost_unavailable_identifier": null,
"boost_unavailable_reason": null,
"boost_unavailable_reason_v2": null,
"can_see_insights_as_brand": false,
"can_view_more_preview_comments": false,
"can_viewer_reshare": true,
"can_viewer_save": true
}
}
],
"media_count": {
"clips_count": 389789,
"photos_count": 0
},
"metadata": {
"additional_audio_info": null,
"music_info": {
"music_asset_info": {
"allows_saving": true,
"artist_id": "545138078499840",
"audio_asset_id": "2111814179306968",
"audio_cluster_id": "564058920086577",
"cover_artwork_thumbnail_uri": "https://instagram.fbcn2-1.fna.fbcdn.net/v/t39.30808-6/649199056_71060828927069_1…",
"cover_artwork_uri": "https://instagram.fbcn2-1.fna.fbcdn.net/v/t39.30808-6/649199056_71060828927069_1…",
"dark_message": null,
"dash_manifest": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011…"
},
"music_canonical_id": 18404542084110335,
"music_consumption_info": {
"allow_media_creation_with_music": true,
"audio_asset_start_time_in_ms": 2500,
"audio_filter_infos": [],
"audio_muting_info": {
"allow_audio_editing": false,
"mute_audio": false,
"mute_reason_str": "",
"show_muted_audio_toast": false
},
"contains_lyrics": null,
"derived_content_id": null,
"display_labels": null,
"formatted_clips_media_count": "389K reels"
}
},
"original_sound_info": null
},
"music_canonical_id": "18404542084110335"
}
| Field | Meaning |
|---|---|
items[].media | One Reel or post that uses the audio. The trimmed sample shows flags such as can_viewer_reshare and can_viewer_save inside each media object. |
media_count.clips_count / media_count.photos_count | Number of Reels and photo posts that use the audio. In this response the Reel count is 389789 and the photo count is 0. |
formatted_media_count | Reel count as a short display string, for example 389K reels. |
metadata.music_info.music_asset_info.audio_cluster_id | ID of the audio cluster. It matches the music_id sent in this request. |
metadata.music_info.music_asset_info.cover_artwork_uri | URL of the cover artwork image for the track. |
metadata.music_info.music_consumption_info.allow_media_creation_with_music | Whether new media can be created with this audio. |
spotify_track_metadata.spotify_track_id / spotify_track_metadata.spotify_listen_uri | Spotify track ID and a link to listen to the track on Spotify. |
is_music_page_restricted | true if the music page is restricted. It is false in this response. |
paging_info.max_id | Cursor for the next page. Send it as max_id in the next request. |
paging_info.more_available | true when more results can be fetched with the cursor. |
music_id or music_url. The ID is the number at the end of a URL like https://www.instagram.com/reels/audio/564058920086577.max_id on the first request. For the next page, copy paging_info.max_id into max_id and repeat until paging_info.more_available is false.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/music-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"music_id": "564058920086577",
"music_url": "https://www.instagram.com/reels/audio/564058920086577"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
max_idstringPagination cursor, omit for first request
music_idstringMusic ID (alternative to music_url)
music_urlstringMusic URL, ID will be extracted automatically (alternative to music_id)
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Instagram | $0.001 每次调用 | JSON |
Instagram | $0.001 每次调用 | JSON |
Instagram | $0.001 每次调用 | JSON |
Instagram | $0.001 每次调用 | JSON |
Instagram | $0.001 每次调用 | JSON |
Instagram | $0.001 每次调用 | JSON |
指南:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
问题
向 https://api.sandbase.ai/v1/api/instagram/v1/music-posts 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.001。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 SandBase APIs;超过后,每次调用将按此价格从您的 SandBase 余额中扣费。无需订阅。
无需参数。 可选:max_id (string), music_id (string) 和 music_url (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Instagram Music Posts (V1) 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Instagram API 访问权限。