Search the Instagram audio catalog or list trending tracks with GET /api/v1/integrations/accounts/{accountId}/instagram/audio. Requires an API key with the read scope or a signed-in workspace member.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | UUID | Yes |
workspaceId |
query | UUID | Yes |
audioType |
query | "music", "original_sound" |
Yes |
q |
query | string | No |
Response
- HTTP 200: an object with
audio.
The OpenAPI document has each field’s type.
Examples
const results = await workspace.accounts.searchInstagramAudio(instagramId, {
audioType: "music",
q: "lofi",
});results = workspace.accounts.search_instagram_audio(
account_id,
audio_type="music",
)curl "https://pubnio.com/api/v1/integrations/accounts/$ACCOUNT_ID/instagram/audio?workspaceId=$WORKSPACE_ID&audioType=music" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio integrations instagram-audio "$INSTAGRAM_ID" --type music --query lofiasync () => {
const accountId = "<accountId>";
const response = await codemode.request({
method: "GET",
path: `/api/v1/integrations/accounts/${accountId}/instagram/audio`,
query: { workspaceId: codemode.workspaceId, audioType: "music" },
});
return response.data;
};Errors
It declares no problem of its own.
It declares the problems most operations declare.
Idempotency
None needed: a read is safe to retry.
Limits
- Field lengths and ranges are in the OpenAPI document.