339r

Javascript instagram story get mention JSON

Dec 1st, 2020 (edited)
2,042
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var story_data = `*JSON*`;
  2. JSON.parse(story_data).data.reels_media[0].items.forEach((el1) => {el1.tappable_objects.forEach((el) => {if(el.__typename == "GraphTappableMention"){
  3. console.log("https://www.instagram.com/stories/" + `${JSON.parse(story_data).data.reels_media[0].user.username}/${el1.id}` + " - " + el.username)
  4. }})})
RAW Paste Data