Instagram Music Search
Search Instagram audio by song or artist — title, artist, duration, cover art, preview URL and the music id for Music Posts — as JSON. 2 credits.
POST/api/v1/instagram/search/music
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonkeywordstringrequiredSong or artist name.
Example: espresso
Notes
Credits. Typically 2 credits. A request can cost up to 10 credits when it needs extra work to answer; credits_used in the response is always the exact charge.
Next step. Tracks are in data.items. Pass a track's id as music_id to Music Posts to list the Reels that use it.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.instagram.search_music(keyword="espresso")
print(results)Response
},
"response_time": 3502,
"credits_used": 2,
"credits_remaining": 4727
}