Search Instagram audio

Search Instagram songs and original sounds by keyword to get audio ids.

GET/v2/instagram/audio/search
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
querystringrequiredquery

Song or sound to search for.

min 1 chars · max 512 chars

Response fields
20

Endpoint-specific response payload.

Audio matching the query, in Instagram's ranking. Licensed music and original sounds are mixed. Instagram returns one ranked set per query, so there are no further pages. Instagram matches loosely, so an unrelated query can still return results. Each `id` works as `audioId` on the audio endpoints.

dataaudio[]id
string

Audio id. The audio endpoints take it as `audioId`, and it matches `audio.id` on a Reel.

pattern: ^\d+$

dataaudio[]assetId
stringnullable

A second id Instagram gives some audio, set only when it differs from `id`. If `GET /v2/instagram/audio/{audioId}` answers not_found for an `id` from search, try `assetId`. Null when none.

pattern: ^\d+$

dataaudio[]title
stringnullable

Song or sound title.

dataaudio[]artist
stringnullable

Artist name.

dataaudio[]artistHandle
stringnullable

Username of the account behind the audio: the creator of original audio, or the artist's account for licensed music when Instagram links one. Null when none or not reported.

dataaudio[]durationMs
integernullable

Length in milliseconds.

≥ 0

dataaudio[]isOriginal
booleannullable

Whether it is original audio rather than licensed music.

dataaudio[]isExplicit
booleannullable

Whether it is marked explicit.

dataaudio[]reelCount
integernullable

Reels using it, as an exact count. Null when Instagram only gives a rounded figure (such as 2.5M).

≥ 0

dataaudio[]isTrending
booleannullable

Whether Instagram marks it trending.

dataaudio[]coverUrl
stringnullable

Cover art. Null for original audio. Instagram CDN URL; it expires after a while.

dataaudio[]previewUrl
stringnullable

Short audio clip of the track. Null for original audio and when Instagram gives none. Instagram CDN URL; it expires after a while.

dataaudio[]spotifyUrl
stringnullable

Spotify page of the track. Null for original audio and when Instagram links none.

dataaudio[]hasLyrics
booleannullable

Whether Instagram has lyrics for the track. Null for original audio and when not reported.

Metadata about the API response.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v2

Code example

curl "https://api.socialfetch.dev/v2/instagram/audio/search?query=espresso" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Audio matching the query.