Instagram Fetch Music Posts
## Purpose Retrieve Reels and posts that use a specific music track or audio. ## Inputs - `music_id`: The music ID. Use this or `music_url`. - `music_url`: The music or audio URL; the ID can be extracted automatically. Use this or `music_id`. - `max_id`: Optional pagination cursor. Omit it for the first request and use the next-page cursor for subsequent requests. ## Returns The response contains matching post items, music metadata, and pagination information.
Pricing
| Condition | Charge |
|---|---|
| Each call | 2.07 credits/call |
2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.
Fetching the next page with a pagination cursor is billed as a new call.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
max_id | string | No | 分页游标,用于获取下一页/Pagination cursor for next page | — |
music_id | string | No | 音乐ID/Music ID | — |
music_url | string | No | 音乐URL(与music_id二选一)/Music URL (alternative to music_id) | — |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_instagram_fetch_music_posts' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {}
}'No response example available yet.

