# Instagram Music Posts (V1) API

> Returns Reels and posts associated with a specific audio track using either an audio ID or URL. Supports cursor pagination to browse results.

Source: https://www.sandbase.ai/model/instagram/v1/music-posts
API reference: https://www.sandbase.ai/model/instagram/v1/music-posts/docs

## Facts

- Provider: Instagram
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/instagram/v1/music-posts`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, instagram
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/instagram/v1/music-posts` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `max_id` | string | no |  |
| `music_id` | string | no |  |
| `music_url` | string | no |  |

## FAQ

### How do I use the Instagram Music Posts (V1) API?

Send a POST request to https://api.sandbase.ai/v1/api/instagram/v1/music-posts with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Instagram Music Posts (V1) API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Instagram Music Posts (V1) API accept?

No parameters are required. Optional: max_id (string), music_id (string) and music_url (string). The Parameters table and the Playground on this page list every field.

### What does the Instagram Music Posts (V1) API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Instagram developer account or API key?

No. Instagram Music Posts (V1) runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Instagram API access separately.

## README

### Instagram Music Posts (V1) API

Retrieve posts and Reels featuring a chosen audio track by providing either `music_id` or `music_url`. You can paginate through subsequent pages using `max_id`.

#### Use cases

- Discover trending Reels that incorporate a specific audio clip.
- Monitor content engagement driven by a targeted music track.
- Analyze how creators use a particular sound in their posts.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/music-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `max_id` | string | No | Pagination cursor, omit for first request |
| `music_id` | string | No | Music ID (alternative to music_url) |
| `music_url` | string | No | Music URL, ID will be extracted automatically (alternative to music_id) |

#### Notes

- Provide either `music_id` or `music_url` to identify the audio track.
- Pass `max_id` as the cursor to paginate through subsequent results.

#### Related APIs

- [Instagram Cities by Country](/model/instagram/v1/cities): Returns a list of Instagram cities and regions for a specified country code.
- [Instagram Hashtag Posts (V1)](/model/instagram/v1/hashtag-posts): Returns public Instagram posts associated with a specific hashtag.
- [Instagram Location Details (V1)](/model/instagram/v1/location-info): Returns detailed metadata and profile information for a specified Instagram location using its unique identifier.
