Instagram User Stories
Get an Instagram user's active stories by username or user_id — media type, image and video URLs, posting and expiry time — as JSON. 2 credits.
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/jsonusernamestringInstagram username (without @). Provide this or user_id.
Example: natgeo
user_idstringNumeric user id. Provide this or username.
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.
Fields. Each story carries taken_at and expiring_at (unix seconds; stories expire 24 hours after posting). Photo stories carry the image in thumbnail_url, videos in video_url.
No live stories. An account with no live stories returns an empty items list and is still billed. Saved stories live in Highlights.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.instagram.user_stories(username="natgeo")
print(results)Response