tagspy is a stealthy Instagram story mention extractor built with Puppeteer.
Wanna see whoโs tagged in someoneโs Insta story or highlight? Just drop the link and let tagspy sniff out the mentions for you โ fast and easy.
- โ Extracts full names and usernames of mentioned users from any public Instagram story
- ๐ฅท Uses
puppeteer-extrawith stealth plugin to bypass bot detection - ๐ Session-based login via
.env(no scraping without auth) - ๐งช Outputs clean
mentions.jsonfile
git clone https://github.com/milancodess/tagspy.git
cd tagspy
npm installCreate a .env file in the root folder and add your Instagram session ID:
IG_SESSION_ID=your_instagram_sessionid_hereNote: You must be logged in on your browser, open Instagram, and copy the
sessionidcookie manually.
- Edit the
storyUrlin the script:
const storyUrl = 'PASTE_YOUR_INSTAGRAM_STORY_URL_HERE';- Run the script:
node index.js- Your mentions will be saved in:
mentions.json
Example output:
[
{
"full_name": "Milan Bhandari",
"username": "_milanbhandari_"
},
{
"full_name": "Jeevan R. Magar",
"username": "jeevan00magar"
}
]- Log in to Instagram in your browser.
- Open DevTools (Right click โ Inspect or press
F12). - Go to the Application tab โ Cookies โ
https://www.instagram.com. - Find and copy the value of the
sessionidcookie. - Paste it into your
.envfile like this:
IG_SESSION_ID=your_session_id_here- This tool is intended for educational and personal use only.
- Respect privacy. Do not use it for unethical surveillance.
- Use at your own risk. Instagram may update their structure/API anytime.