Skip to content

Read current Instagram audio metadata and refresh its preview URL

PubNio API integrations.getInstagramAudio: read current Instagram audio metadata and refresh its preview URL. Request fields, examples in five clients, errors, and idempotency.

Read current Instagram audio metadata and refresh its preview URL with GET /api/v1/integrations/accounts/{accountId}/instagram/audio/{audioId}. Requires an API key with the read scope or a signed-in workspace member.

Request

Parameter In Type Required
accountId path UUID Yes
audioId path string Yes
workspaceId query UUID Yes

Response

  • HTTP 200: InstagramAudio with audioId, audioType, title, durationMs, artist, creator, previewUrl, coverUrl, instagramPreviewUrl.
    • audioType: music, original_sound

The OpenAPI document has each field’s type.

Examples

const audio = await workspace.accounts.getInstagramAudio(instagramId, audioId);
audio = workspace.accounts.get_instagram_audio(account_id, audio_id)
curl "https://pubnio.com/api/v1/integrations/accounts/$ACCOUNT_ID/instagram/audio/$AUDIO_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
pnio integrations get-instagram-audio "$INSTAGRAM_ID" "$AUDIO_ID"

Also: pnio integrations instagram-audio-info.

async () => {
  const accountId = "<accountId>";
  const audioId = "<audioId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/integrations/accounts/${accountId}/instagram/audio/${audioId}`,
    query: { workspaceId: codemode.workspaceId },
  });
  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

Type to search…

↑↓ navigate↵ selectEsc close