---
title: "Search the Instagram audio catalog or list trending tracks"
description: "PubNio API integrations.searchInstagramAudio: search the Instagram audio catalog or list trending tracks. 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.

# Search the Instagram audio catalog or list trending tracks

Search the Instagram audio catalog or list trending tracks with [`GET /api/v1/integrations/accounts/{accountId}/instagram/audio`](https://pubnio.com/api/v1/docs#tag/integrations/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](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const results = await workspace.accounts.searchInstagramAudio(instagramId, {
  audioType: "music",
  q: "lofi",
});
```

### Python

```python
results = workspace.accounts.search_instagram_audio(
    account_id,
    audio_type="music",
)
```

### cURL

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

### CLI

```sh
pnio integrations instagram-audio "$INSTAGRAM_ID" --type music --query lofi
```

### MCP execute

```js
async () => {
  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](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-search-instagram-audio/index.mdx
