Originally created by: endernoke
Is your feature request related to a problem? Please describe.
It's cool to expand the analytics feature to deep dive into chats. This way we can have a better understanding of Instagram usage and connections with other people.
Describe the solution you'd like
We can have a GitHub-styled "conversation grid" showing the frequency of messages exchanged as a whole, and allow filtering by a specific user, close friends, gender etc.
We can also have something like Spotify Wrapped style summary which shows you key analytics.
Optionally also add feature to export a more visual summary (e.g. rendering a image, video, pdf or html for LinkedIn bragging lmao)
as well as option to export raw chat data in formats like CSV or JSON for users who want to do their own further analysis.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Originally posted by: endernoke
Might also want to expand Wrapped to posts once we implement post-related features
Originally posted by: supreme-gg-gg
@endernoke do you remember if instagrapi has these data endpoints? If so this would be a pretty beginner-friendly issue for first timers -- plus, as we approach the end of year, getting this shipped before Dec would be really good for the community who might want to aura farm with this feature
I worry that these analytics are internal to instagram and not exposed by the service GraphQL API, we would not be able to implement this feature if that's the case
Originally posted by: endernoke
Agreed. I remember instagrapi has an insights mixin which may offer these endpoints, but it probably would require heavy scrutiny of its source code lmao
We could also cross reference the endpoints with typescript api...
Originally posted by: supreme-gg-gg
let me quickly triage this issue and decide if we should track it or close it
Originally posted by: endernoke
thanks, if it's not very straightforward then maybe assign to me i could try to aura farm 😂
Originally posted by: supreme-gg-gg
@endernoke unfortunately instagrapi doesn't seem to support this, their insights endpoint is only for business accounts and for the "reach, like, comments" sort of analytics for posts and media (so cluely lmao): https://github.com/subzeroid/instagrapi/blob/d95f448cb0e045689b3b98e2cd9dc4f90569de8e/instagrapi/mixins/insights.py
I also checked out "collections", but it only returns media in your collections created like saved or liked (the latter we already use for brainrot history by filtering reels, maybe we can just bump up that?)
I believe that on the phone app only like history is available as well (or other action like comments etc.)? So probably other analytics are not even exposed by meta as I suspected, typescript api should behave the same then