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

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Read current Instagram audio metadata and refresh its preview URL

Read current Instagram audio metadata and refresh its preview URL with [`GET /api/v1/integrations/accounts/{accountId}/instagram/audio/{audioId}`](https://pubnio.com/api/v1/docs#tag/integrations/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](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const audio = await workspace.accounts.getInstagramAudio(instagramId, audioId);
```

### Python

```python
audio = workspace.accounts.get_instagram_audio(account_id, audio_id)
```

### cURL

```sh
curl "https://pubnio.com/api/v1/integrations/accounts/$ACCOUNT_ID/instagram/audio/$AUDIO_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio integrations get-instagram-audio "$INSTAGRAM_ID" "$AUDIO_ID"
```

Also: `pnio integrations instagram-audio-info`.

### MCP execute

```js
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](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

None needed: a read is safe to retry.

## Limits

- Field lengths and ranges are in the [OpenAPI document](https://pubnio.com/api/v1/openapi).

## Related

- [Connected accounts operations](https://pubnio.com/docs/reference/#connected-accounts)
- [Accounts and connections](https://pubnio.com/docs/accounts/)

Source: https://pubnio.com/docs/reference/integrations-get-instagram-audio/index.mdx
