Platforms · Instagram

Instagram Search Music Scraper API

Searches Instagram's audio (music) library by keyword. Returns matching tracks, each with artist and title, audio and cover-artwork URLs, duration, and usage metadata. Page through with cursor.

GET /api/v1/data/instagram/search-music · 5 credits per page · The same call repeated within 6 hours may get the same answer, so data can be up to 6 hours old.

Inputs

  • query (required): Search keyword or phrase to find Instagram audio tracks.
  • cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].metadata (object): How the viewing account can use the track.
  • items[].metadata.allow_media_creation_with_music (boolean): Whether a new post or reel can use the track.
  • items[].metadata.is_bookmarked (boolean): Whether the viewing account saved the track.
  • items[].metadata.is_trending_in_clips (boolean): Whether the track is trending in reels.
  • items[].track (object): The track.
  • items[].track.allows_saving (boolean): Whether the track can be saved.
  • items[].track.artist_id (string): The artist's id.
  • items[].track.audio_asset_id (string): The id of the audio file.
  • items[].track.audio_cluster_id (string): The id of the group of posts that use this audio.
  • items[].track.cover_artwork_thumbnail_uri (string): A link to a small version of the cover art.
  • items[].track.cover_artwork_uri (string): A link to the cover art.
  • items[].track.dark_message (string): A notice Instagram shows on the track, or null.
  • items[].track.dash_manifest (string): The streaming manifest for the track, as XML text.
  • items[].track.display_artist (string): The artist name as Instagram shows it.
  • items[].track.duration_in_ms (number): The track length in milliseconds.
  • items[].track.duration_seconds (number): The track length in seconds.
  • items[].track.fast_start_progressive_download_url (string): A link to the audio file that starts playing sooner. The link expires.
  • items[].track.has_lyrics (boolean): Whether the track has lyrics.
  • items[].track.highlight_start_times_in_ms (array): Where the track's best sections start, in milliseconds.
  • items[].track.id (string): The track id.
  • items[].track.ig_username (string): The artist's Instagram handle, when the artist has an account.
  • items[].track.is_eligible_for_audio_effects (boolean): Whether audio effects can be applied to the track.
  • items[].track.is_eligible_for_vinyl_sticker (boolean): Whether the track can be used on a vinyl sticker.
  • items[].track.is_explicit (boolean): Whether the track is marked explicit.
  • items[].track.licensed_music_subtype (string): The kind of licence the track is under, such as `DEFAULT`.
  • items[].track.progressive_download_url (string): A link to the audio file. The link expires.
  • items[].track.reactive_audio_download_url (string): A link to the audio file used for reactive effects, or null when there is none.
  • items[].track.related_audios (array): Tracks related to this one.
  • items[].track.sanitized_title (string): The title with explicit words masked, or null.
  • items[].track.song_monetization_info (string): How the track earns money for the rights holder, such as `REVSHARE`.
  • items[].track.subtitle (string): A secondary line shown under the title. Often empty.
  • items[].track.title (string): The track title.
  • items[].track.web_30s_preview_download_url (string): A link to a 30 second preview. The link expires.
  • next_cursor (string): Send it as cursor to get the next page; null when there is none.
  • has_more (boolean): Whether there is another page.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each page costs 5 credits. A call that finds nothing, or fails, is free.
  • Each call returns one page of about 30 rows. To get the next page, send next_cursor from the answer as cursor.
  • The same call repeated within 6 hours may get the same answer, so data can be up to 6 hours old.

Example call

GET /api/v1/data/instagram/search-music?query=beyonce

Questions

How much does the Instagram Search Music API cost?

Each page costs 5 credits. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send query. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How do I get the next page?

Each call returns one page of about 30 rows. The answer carries next_cursor: send it back as cursor to get the page after. Each page is charged on its own, and an empty page is free.

How fresh is the data?

The same call repeated within 6 hours may get the same answer, so data can be up to 6 hours old.

Do I need an Instagram account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related Instagram endpoints

  • Search: Search Instagram accounts, hashtags, and places. 1 credit a call
  • Search Hashtag: Instagram Search hashtag. 1 credit a page
  • Search Location: Search Instagram locations. 5 credits a call
  • Search Mentions: Search Instagram posts that tag or mention an account. 1 credit a page
  • Search Popular: Search popular Instagram posts. 1 credit a page
  • Search Profiles: Search Instagram profiles by keyword. 1 credit a page

More Instagram scraper APIs