Instagram Story & Mentions Fetcher avatar

Instagram Story & Mentions Fetcher

Under maintenance

Pricing

from $4.00 / 1,000 results

Go to Apify Store
Instagram Story & Mentions Fetcher

Instagram Story & Mentions Fetcher

Under maintenance

Fetches active Instagram stories and @mention stickers for one or more usernames. Returns story media URLs, metadata, and mention details.

Pricing

from $4.00 / 1,000 results

Rating

0.0

(0)

Developer

Ghost Rider

Ghost Rider

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

7 days ago

Last modified

Categories

Share

Apify actor that fetches active Instagram stories and @mention stickers for one or more usernames.

Features

  • Fetch active stories for multiple Instagram usernames in one run
  • Extract @mention stickers with username, user ID, full name, and profile picture
  • Return image/video URLs in multiple resolutions
  • Handle accounts with no active stories gracefully

Input

FieldRequiredDescription
usernamesYesArray of Instagram usernames (without @)
sessionIdYesInstagram sessionid cookie
csrfTokenYesInstagram csrftoken cookie
proxyConfigurationNoDefaults to Apify residential proxy, India (IN)
requestDelayMsNoDelay between accounts in ms (default: 1500)

How to get Instagram cookies

  1. Log in to instagram.com in Chrome
  2. Press F12Application tab → Cookieshttps://www.instagram.com
  3. Copy sessionid and csrftoken values
  4. Use a test account — not your main personal account

Default cookies on Apify

After apify push, open the actor in Apify Console → Input tab → paste your sessionId and csrfToken → click Save & Start once. Apify remembers them as the default input for future runs.

For local runs, copy INPUT.json.example to INPUT.json and fill in your cookies there (INPUT.json is gitignored).

Schemas

FilePurpose
.actor/input_schema.jsonApify input form with sample usernames, cookies, and India residential proxy
.actor/output_schema.jsonLinks run output to the dataset in Apify Console
.actor/dataset_schema.jsonDocuments every output field with examples

Output

Each dataset item is either a full story record or a minimal "no stories" record.

Story with mentions

{
"storyId": "3912892102384725364",
"userId": "3054343568",
"username": "arya_jain_",
"mediaType": "video",
"imageUrl": "https://...",
"videoUrl": "https://...",
"storyBloksStickersCount": 1,
"storyBloksStickers": [
{
"stickerType": "mention",
"mentionUsername": "magnetomall",
"mentionAccountId": "6282740940",
"mentionFullName": "Magneto Mall",
"mentionProfilePicUrl": "https://..."
}
]
}

No active stories

{
"username": "explorewithsparsh",
"mediaType": "none",
"storiesCount": 0,
"takenAtFormatted": "No active stories",
"success": true
}

Local development

$npm install

Create INPUT.json in the project root:

{
"usernames": ["natgeo"],
"sessionId": "YOUR_SESSION_ID",
"csrfToken": "YOUR_CSRF_TOKEN"
}

Run locally with Apify CLI:

$apify run

Deploy to Apify

$apify push

Limitations

  • Requires valid Instagram session cookies (expire every few weeks)
  • Private accounts only work if the logged-in user follows them
  • Instagram may rate-limit or block requests — use Apify proxy
  • Scraping Instagram is against their Terms of Service — use at your own risk