Get Stories
Retrieve user(s) stories by user id(s).
You can retrieve up to 4 user ids per request.
Params
Name | Type | Default | Description |
---|---|---|---|
ids (required) | list | – | User id(s) |
Usage
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_user_stories(12281817))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->getUserStories(12281817));
curl --request POST \
--url https://v1.rocketapi.io/instagram/user/get_stories \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"ids": [ 12281817 ]
}'
Response example
Loading...